Package managers in Linux

Package managers are used to package and distribute the Linux applications.

In Linux, there are mainly 2 types of package managers.

  1. Yum and RPM for Red Hat and CentOS
  2. apt-get for Ubuntu and Debian based systems

Syntax for yum is given below.
yum install <package-name>
yum update <package-name>
yum remove <package-name>

Syntax for rpm is given below.
rpm -ivh <rpm-file>
rpm -uvh <rpm-file>
rpm -ev <package-name>

Syntax for apt-get is given below.
apt-get install <package-name>
apt-get update <package-name>
apt-get remove <package-name>

You may also like...