How To Install rpmorphan on CentOS 7
Introduction
In this tutorial we learn how to install rpmorphan
on CentOS 7.
What is rpmorphan
rpmorphan finds “orphaned”[1] packages on your system. It determines which packages have no other packages depending on their installation, and shows you a list of these packages. It intends to be clone of deborphan Debian tools for rpm packages. It will try to help you to remove unused packages, for example * after a distribution upgrade * when you want to suppress packages after some tests Several tools are also provided * rpmusage - display rpm packages last use date * rpmdep - display the full dependency of an installed rpm package * rpmduplicates - find programs with several version installed Yum offers a program called ‘package-cleanup’ which you can use to carry out similar tasks. [1] Note that orphan is used in the sense of Debian’s deborphan, and is NOT the same as Fedora orphaned packages which are packages that have no current maintainer.
We can use yum
or dnf
to install rpmorphan
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install rpmorphan.
Install rpmorphan on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install rpmorphan
using yum
by running the following command:
sudo yum -y install rpmorphan
Install rpmorphan on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
sudo dnf makecache
After updating yum database, We can install rpmorphan
using dnf
by running the following command:
sudo dnf -y install rpmorphan
How To Uninstall rpmorphan on CentOS 7
To uninstall only the rpmorphan
package we can use the following command:
sudo dnf remove rpmorphan
References
Summary
In this tutorial we learn how to install rpmorphan
on CentOS 7 using yum
and dnf
.