Table of contents
A package management system or package manager is a group of software tools. It automates the installation process, upgrading process, configuration process, and removing process of the computer programs for an operating system of the computer in an efficient manner.
APT Package manager
The APT package manager is an advanced package management tool. Using its core libraries, it facilitates the process of installation and uninstallation of Linux software packages. It is also used to maintain and upgrade installed packages. The APT package manager depends on repositories. To make the APT package manager work without a hitch, the core libraries are essential. All the data should be kept under one roof to have easy accessibility.
The APT package manager is free software that has handy features for Linux users, which supervises all the maintenance and grunt work. From installation and uninstallation to upgrading or removing the software on Ubuntu, Debian, and similar Linux distributions
APT commands
$sudo apt update
To get the latest updates:
$sudo apt upgrade -y
To upgrade all the packages,we will run the upgrade using the APT package manager
$sudo apt list
To list down all the packages available on the operating system
$sudo apt list --installed
To list down only installed packages
To search for a specific package
$sudo apt search vim
Install Docker packages on Ubuntu using APT package manager
UBUNTU
To install Docker and check the state of the service:
$sudo apt install docker.io -y
$sudo systemctl status docker
service commands
$sudo service docker start
$sudo service docker stop
$sudo service docker restart
$sudo service docker status
systemctl Command
We could enable the Docker service so that it is automatically started on system.do that,we use the systemctl enable command:
$sudo systemctl enable docker
On the other hand,to remove it from the startup process list,we use the systemctl disable command:
sudo systemctl disable docker
Thanks for Reading!!