Understanding package manager and systemctl
What is a package manager in Linux?
A package manager in Linux is a tool or software that automates the process of installing, updating, configuring, and removing software packages on a Linux system. It simplifies the management of software by handling dependencies, ensuring that all required libraries and components are installed for a particular piece of software to function correctly.
Features of package manager
Repository Management: Package managers interact with repositories, which are centralized collections of software packages. Repositories contain information about available packages and their dependencies.
Package managers in Linux are tools that help you install, update, and manage software on your system
Debian-based Systems (e.g., Ubuntu):
Package Manager: APT (Advanced Package Tool)
Commands:
Red Hat-based Systems (e.g., CentOS, Fedora):
Package Manager: YUM (Yellowdog Updater, Modified) or DNF (Dandified YUM)
Commands:
Recommended by LinkedIn
Arch Linux and Derivatives:
Package Manager: Pacman
Commands:
systemctl is a command-line utility and the primary interface for interacting with the systemd system and service manager on Linux systems. It allows users to query and control the state of the systemd system and its services.
systemctl start [service]
Start a service.
systemctl stop [service]
Stop a service.
systemctl restart [service]
Restart a service.
systemctl reload [service]
Reload configuration of a service without stopping it.
systemctl status [service]
Display the status of a service.
systemd
`systemd` is a system and service manager for Linux operating systems. It is designed to replace the traditional SysV init system and bring several benefits, including parallelisation of system startup processes, on-demand starting of daemons, and better management of system and service states. systemd has become the default init system for many major Linux distributions.
https://medium.com/@danielgurus1/understanding-package-manager-and-systemctl-537d8a6a788a