Day 7 - Understanding package manager and systemctl

💡What is a package manager in Linux?
In simpler words, a package manager is a tool that allows users to install, remove, upgrade, configure, and manage software packages on an operating system. The package manager can be a graphical application like a software center or a command lines tool like apt-get or Pacman.
You’ll often find me using the term ‘package’ in tutorials and articles, To understand package manager, you must understand what a package is.
💡What is a package?
A package is usually referred to as an application but it could be a GUI application, command line tool, or a software library (required by other software programs). A package is essentially an archive file containing the binary executable, configuration file, and sometimes information about the dependencies.
💡Different kinds of package managers
Package Managers differ based on the packaging system but the same packaging system may have more than one package manager.
For example, RPM has Yum and DNF package managers. For DEB, you have apt-get, aptitude command line-based package managers.
🔨Tasks
- You have to install docker and check the status of the docker service in your system
◼️Installation of Docker on Ubuntu

- ◼️Check the status of docker service in your system

- ◼️Check the version of the docker

- You have to install Jenkins in your system from your terminal using package managers stop the service Jenkins and post before and after screenshots
◼️Update Package List
sudo apt update #Update Package List◼️Install Java Development Kit (JDK): Jenkins requires Java to run.
sudo apt install -y openjdk-11-jdk #Install Java 11◼️For Installing the Jenkins.
sudo wget -O /usr/share/keyrings/jenkins-keyring.asc \ https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \ https://pkg.jenkins.io/debian-stable binary/ | sudo tee \ /etc/apt/sources.list.d/jenkins.list > /dev/null sudo apt-get update sudo apt-get install jenkins◼️Check the status of Jenkins
sudo systemctl status jenkins
◼️Stop the Jenkins service

💡systemctl and systemd
systemctl is used to examine and control the state of “systemd” system and service manager. systemd is a system and service manager for Unix-like operating systems(most of the distributions, not all).
📚 Happy Learning :)😊





