RPM is a command-line utility for managing packages on Unix/Linux systems. It allows you to install, query, update, verify and remove RPM packages.
It is the default package manager for Red Hat based systems and only works with the .rpm format. You can install such packages using the rpm or the yum command.
The package management tool YUM has been set default on RHEL/CentOS 7.
The package management tool DNF (Dandified YUM) has been set default on RHEL/CentOS 8.
However, [yum] command is also located as a link to [dnf], so it’s possible to use [yum] or [dnf] with the same usage.
RPM Commands: ### Install Package [root@testos ~]# rpm -ivh ntp-4.2.6p5-29.el7_8.2.x86_64.rpm ### Remove Package [root@testos ~]# rpm -e ntp-4.2.6p5-29.el7_8.2.x86_64.rpm ### Update a Package [root@testos ~]# rpm -Uvh ntp-4.8.6-33.el7_8.2.x86_64.rpm ### List and find Installed rpm package [root@testos ~]# rpm -qa [root@testos ~]# rpm -qa |grep -i ntp ### Find installed files and location rpm -ql ntp-4.2.6p5-29.el7_8.2.x86_64.rpm
YUM / DNF Package Manager Commands: RHEL/CentOS 7: ### Install Package [root@testos ~]# yum install named ### Remove Package [root@testos ~]# yum remove named ### Search for a package [root@testos ~]# yum search named ### Update a package [root@testos ~]# yum update named ### Upgrade OS [root@testos ~]# yum update [root@testos ~]# yum upgrade RHEL/CentOS 8: ### Install Package [root@testos ~]# dnf install named ### Remove Package [root@testos ~]# dnf remove named ### Search for a package [root@testos ~]# dnf search named ### Update a package [root@testos ~]# dnf update named ### Upgrade OS [root@testos ~]# dnf update [root@testos ~]# dnf upgrade