How To Install rpmdevtools on CentOS 7
Introduction
In this tutorial we learn how to install rpmdevtools on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install rpmdevtools.
Install rpmdevtools on CentOS 7 Using yum
Update yum database with yum using the following command.
sudo yum makecache
After updating yum database, We can install rpmdevtools using yum by running the following command:
sudo yum -y install rpmdevtools
Install rpmdevtools 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 rpmdevtools using dnf by running the following command:
sudo dnf -y install rpmdevtools
How To Uninstall rpmdevtools on CentOS 7
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 CentOS 7 using yum and dnf.