Content :-
What is a package manager in Linux?
What is a package?
Different kinds of package managers.
Tasks :-
You have to install docker in your system from your terminal using package managers.
check the status of docker service in your system.
What is Package manager in Linux?
A package manager in Linux is a software tool used to automate the process of installing, upgrading, configuring, and removing software packages on a Linux system. It simplifies the management of software by handling dependencies, which are other software packages required for a particular program to function properly.
Package managers typically interact with online repositories that contain precompiled software packages. These repositories are maintained by the distribution's developers or community members. When you use a package manager to install a software package, it automatically fetches the required files from the repository and installs them on your system.
What is a package?
In Linux, a package refers to a compressed archive file containing all the necessary files and metadata required to install and manage a software application or library on a Linux-based operating system. Packages typically include the executable binaries, configuration files, documentation, and other resources needed for the software to function correctly.
Packages are used to distribute and manage software efficiently on Linux systems. They are managed by package managers, which automate the process of installing, upgrading, configuring, and removing software packages while handling dependencies.
Different kinds of package managers
In Linux, there are several types of package managers, each with its own characteristics and usage:
Binary Package Managers:
APT (Advanced Package Tool): Used primarily in Debian-based distributions like Debian and Ubuntu. It works with
.deb
packages and provides tools likeapt-get
andapt
.YUM (Yellowdog Updater Modified): Initially developed for Red Hat-based distributions such as RHEL and CentOS. It operates with
.rpm
packages and has been largely replaced by DNF in newer Fedora releases.DNF (Dandified YUM): A replacement for YUM, used in modern Red Hat-based distributions like Fedora. It also handles
.rpm
packages.
Source Package Managers:
Portage: The package manager for Gentoo Linux. It compiles software from source, allowing for customization and optimization of packages for the system's architecture.
ABS (Arch Build System): Used in Arch Linux, it allows users to compile packages from source code. Although Arch primarily uses binary packages managed by Pacman, ABS is available for building custom packages.
Tasks :-
Installing docker using the in the system using the apt manager.
here we use the sudo apt- get insatll docker command for installing the docker in the local machine.
To Check if docker is install or not we will be using the command :-
sudo docker run hello-world
There in message written that is saying hello from docker which means the docker is successfully installed on our machine.
check the status of docker service in your system.
For checking the status of docker in our system we will use the command :
systemctl status docker
By using this command we get to know that the status of docker in our system is currently showing Running.