package managers in linux shell

Package managers are used to package and distribute the Linux applications. In Linux, there are mainly 2 types of package managers.
  • Yum and RPM for Red Hat and CentOS
  • 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>

Web development and Automation testing

solutions delivered!!