Skip to main content

Day 8 Task: Understanding package manager and systemctl

Updated 2 min readMarkdown
Day 8 Task: Understanding package manager and systemctl

What is Package Manager?

There are multiple package managers available in Linux that vary depending on the distribution being used. Here are some of the most widely used package managers.

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

APT (Advanced Package Tool) - Used in Debian, Ubuntu, and other Debian-based distributions.

YUM (Yellowdog Updater, Modified) - Used in CentOS, Fedora, and other Red Hat-based distributions.

DNF (Dandified YUM) - Used in newer versions of Fedora and other Red Hat-based distributions.

Pacman - Used in Arch Linux and other Arch-based distributions.

Zypper - Used in SUSE and other SUSE-based distributions.

Task-You have to install docker and Jenkins in your system from your terminal using package managers.

Installing Docker

To check the status of the docker service

To stop the docker service

Systemctl VS Systemd

systemctl is a command-line utility used to control the systemd system and service manager. systemd is a system and service manager that is widely used in modern Linux operating systems. It provides a number of features, including process tracking, logging, and resource management.

Some examples of systemctl commands include:

systemctl start <service>: Start a service

systemctl stop <service>: Stop a service

systemctl enable <service>: Enable a service to start automatically at boot

systemctl disable <service>: Disable a service from starting automatically at boot systemctl status <service>: Check the status of a service

Thanks for Reading
Happy learning

#90daysdevops

No comments yet. Be the first to comment.

More from this blog