How To Install rpmdevtools on AlmaLinux 8

In this tutorial we learn how to install rpmdevtools in AlmaLinux 8. rpmdevtools is RPM Development Tools

Introduction

In this tutorial we learn how to install rpmdevtools on AlmaLinux 8.

What is rpmdevtools

This package contains scripts and (X)Emacs support files to aid in development of RPM packages. rpmdev-setuptree Create RPM build tree within user’s home directory rpmdev-diff Diff contents of two archives rpmdev-newspec Creates new .spec from template rpmdev-rmdevelrpms Find (and optionally remove) “development” RPMs rpmdev-checksig Check package signatures using alternate RPM keyring rpminfo Print information about executables and libraries rpmdev-md5/sha* Display checksums of all files in an archive file rpmdev-vercmp RPM version comparison checker spectool Expand and download sources and patches in specfiles rpmdev-wipetree Erase all files within dirs created by rpmdev-setuptree rpmdev-extract Extract various archives, “tar xvf” style rpmdev-bumpspec Bump revision in specfile …and many more.

We can use yum or dnf to install rpmdevtools on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rpmdevtools.

Install rpmdevtools on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install rpmdevtools

Install rpmdevtools on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install rpmdevtools

How To Uninstall rpmdevtools on AlmaLinux 8

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

sudo dnf remove rpmdevtools

References

Summary

In this tutorial we learn how to install rpmdevtools on AlmaLinux 8 using yum and dnf.