Sobes.tech
Senior

What package managers are used in Ubuntu and CentOS?

sobes.tech AI

Answer from AI

In Ubuntu, the main package manager is APT (Advanced Package Tool), which works with .deb packages. Commands for installing, updating, and removing packages are:

sudo apt update
sudo apt install package_name
sudo apt upgrade
sudo apt remove package_name

In CentOS (especially versions 7 and 8), YUM (Yellowdog Updater Modified) is used, and in newer versions of CentOS 8 and above — DNF (Dandified YUM), which work with .rpm packages.

Example commands:

sudo yum install package_name
sudo yum update
sudo yum remove package_name

or for DNF:

sudo dnf install package_name
sudo dnf update
sudo dnf remove package_name

Thus, Ubuntu is oriented towards APT and DEB packages, while CentOS focuses on YUM/DNF and RPM packages.

What package managers are used in Ubuntu and CentOS… - sobes.tech