How To Install rpmorphan on Fedora 34

rpmorphan is List packages that have no dependencies (like deborphan)

Introduction

In this tutorial we learn how to install rpmorphan on Fedora 34.

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install rpmorphan.

Install rpmorphan on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install rpmorphan using dnf by running the following command:

sudo dnf -y install rpmorphan

Install rpmorphan on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install rpmorphan using yum by running the following command:

sudo yum -y install rpmorphan

How To Uninstall rpmorphan on Fedora 34

To uninstall only the rpmorphan package we can use the following command:

sudo dnf remove rpmorphan

rpmorphan Package Contents on Fedora 34

/etc/logrotate.d/rpmorphan
/etc/rpmorphanrc
/usr/bin/grpmorphan
/usr/bin/rpmdep
/usr/bin/rpmdep.pl
/usr/bin/rpmduplicates
/usr/bin/rpmduplicates.pl
/usr/bin/rpmextra
/usr/bin/rpmextra.pl
/usr/bin/rpmorphan
/usr/bin/rpmorphan.pl
/usr/bin/rpmusage
/usr/bin/rpmusage.pl
/usr/share/doc/rpmorphan
/usr/share/doc/rpmorphan/Authors
/usr/share/doc/rpmorphan/COPYING
/usr/share/doc/rpmorphan/Changelog
/usr/share/doc/rpmorphan/NEWS
/usr/share/doc/rpmorphan/Readme
/usr/share/doc/rpmorphan/Todo
/usr/share/doc/rpmorphan/rpmorphan.lsm
/usr/share/doc/rpmorphan/rpmorphanrc.sample
/usr/share/man/man1/rpmdep.1.gz
/usr/share/man/man1/rpmduplicates.1.gz
/usr/share/man/man1/rpmextra.1.gz
/usr/share/man/man1/rpmorphan.1.gz
/usr/share/man/man1/rpmusage.1.gz
/usr/share/rpmorphan
/usr/share/rpmorphan/Tk
/usr/share/rpmorphan/Tk/MListbox.pm
/usr/share/rpmorphan/locale
/usr/share/rpmorphan/locale/en
/usr/share/rpmorphan/locale/en/rpmorphan_trans.pl
/usr/share/rpmorphan/locale/fr_FR
/usr/share/rpmorphan/locale/fr_FR/rpmorphan_trans.pl
/usr/share/rpmorphan/rpmorphan-curses-lib.pl
/usr/share/rpmorphan/rpmorphan-lib.pl
/usr/share/rpmorphan/rpmorphan-tk-lib.pl
/var/lib/rpmorphan
/var/lib/rpmorphan/keep
/var/log/rpmorphan.log

References

Summary

In this tutorial we learn how to install rpmorphan on Fedora 34 using yum and dnf.