yum – old (up to CentOS 7)
dnf – new (since CentOS 8)
dnf
dnf update
dnf upgrade
dnf install <package name>
dnf remove <package name>
dnf list
<package name>
dnf module list <module name>
dnf module reset <module name>
dnf module enable <module name>
dnf repolist
dnf config-manager –add-repo <repository url>
dnf config-manager –set-enabled <repository name>
dnf config-manager –set-disabled <repository name>
rpm (from here)
These tools work together with dnf or yum. DNF handles dependency solving, finding files on the network, repository management, and so on. RPM handles the lower-level part of actually putting the files on the system.
In most cases as an end user, DNF is all you need to interact with. You might use RPM commands for lower-level troubleshooting, but in most cases DNF provides all the functionality in a more friendly manner.
list all rpm packages in a kind brutal manner (usually apply | grep “something” to find desired package)
rpm -qa