How To Install rpmbuild-order on Fedora 36

In this tutorial we learn how to install rpmbuild-order in Fedora 36. rpmbuild-order is Sort RPM packages in dependency order

Introduction

In this tutorial we learn how to install rpmbuild-order on Fedora 36.

What is rpmbuild-order

The rpmbuild-order tool sorts source RPM packages by build dependencies, so that they can be built in a correct order. It does this by reading RPM package spec files and then topologically sorts them according to their build dependencies. The code evolved from cabal-sort by Henning Thielemann. It can also order the dependencies or reverse depends of one or more packages among the packages checked out in neighboring directories (which can be useful to see what packages are affected when a low-level package changes). It also has support for setting RPM options for bcond etc, which can affect dependencies. It can also output dependency graphs. Since version 0.4, a library API is also provided.

We can use yum or dnf to install rpmbuild-order on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rpmbuild-order.

Install rpmbuild-order on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install rpmbuild-order

Install rpmbuild-order on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rpmbuild-order using yum by running the following command:

sudo yum -y install rpmbuild-order

How To Uninstall rpmbuild-order on Fedora 36

To uninstall only the rpmbuild-order package we can use the following command:

sudo dnf remove rpmbuild-order

rpmbuild-order Package Contents on Fedora 36

/usr/bin/rpmbuild-order
/usr/lib/.build-id
/usr/lib/.build-id/54
/usr/lib/.build-id/54/4b8a125e0b22617f103cd197a73f69b10e4f5d
/usr/share/bash-completion/completions/rpmbuild-order
/usr/share/doc/rpmbuild-order
/usr/share/doc/rpmbuild-order/ChangeLog.md
/usr/share/doc/rpmbuild-order/README.md
/usr/share/doc/rpmbuild-order/TODO
/usr/share/licenses/rpmbuild-order
/usr/share/licenses/rpmbuild-order/LICENSE
/usr/share/man/man1/rpmbuild-order.1.gz

References

Summary

In this tutorial we learn how to install rpmbuild-order on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).