Understanding package manager and systemctl

Understanding package manager and systemctl

·

2 min read

What is a package manager in Linux?

In Linux, a package manager is a tool that helps users install, update, configure, and remove software packages on their system. It automates the process of handling software dependencies, ensuring that required libraries or components are installed along with the desired software. Popular package managers include APT (Advanced Package Tool) used in Debian-based systems like Ubuntu, and YUM (Yellowdog Updater, Modified) used in Red Hat-based systems like Fedora. These package managers simplify software management, making it easier for users to maintain and organize their systems.

What is a package?

A package is usually referred to 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.

There are several package managers used in the software development and system administration fields. Some examples include:

  1. APT (Advanced Package Tool): Commonly used in Debian-based Linux distributions like Ubuntu.

  2. YUM (Yellowdog Updater, Modified): Found in Red Hat-based Linux distributions such as Fedora and CentOS.

  3. Homebrew: Popular on macOS for managing software packages.

  4. npm (Node Package Manager): Used for managing packages in Node.js projects.

  5. pip: The package installer for Python packages.

  6. Chocolatey: A package manager for Windows.

  7. NuGet: Primarily used for managing .NET packages in the Microsoft ecosystem.

  8. RubyGems: Used for managing Ruby libraries and programs.

1 check the status of docker service in your system (make sure you completed above tasks, else docker won't be installed).

steps :-

sudo apt update

sudo apt install docker.io -y

systemctl status docker

2 stop the service jenkins and post before and after screenshots.

command to stop jenkins

sudo service jenkins stop