How To Install rpmdevtools on Rocky Linux 8

In this tutorial we learn how to install rpmdevtools on Rocky Linux 8. rpmdevtools is RPM Development Tools

Introduction

In this tutorial we learn how to install rpmdevtools on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rpmdevtools.

Install rpmdevtools on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove rpmdevtools

rpmdevtools Package Contents on Rocky Linux 8

/etc/rpmdevtools
/etc/rpmdevtools/curlrc
/etc/rpmdevtools/newspec.conf
/etc/rpmdevtools/rmdevelrpms.conf
/etc/rpmdevtools/spectemplate-R.spec
/etc/rpmdevtools/spectemplate-dummy.spec
/etc/rpmdevtools/spectemplate-lib.spec
/etc/rpmdevtools/spectemplate-minimal.spec
/etc/rpmdevtools/spectemplate-ocaml.spec
/etc/rpmdevtools/spectemplate-perl.spec
/etc/rpmdevtools/spectemplate-php-pear.spec
/etc/rpmdevtools/spectemplate-python.spec
/etc/rpmdevtools/spectemplate-ruby.spec
/etc/rpmdevtools/template.init
/usr/bin/rpmdev-bumpspec
/usr/bin/rpmdev-checksig
/usr/bin/rpmdev-cksum
/usr/bin/rpmdev-diff
/usr/bin/rpmdev-extract
/usr/bin/rpmdev-md5
/usr/bin/rpmdev-newinit
/usr/bin/rpmdev-newspec
/usr/bin/rpmdev-packager
/usr/bin/rpmdev-rmdevelrpms
/usr/bin/rpmdev-setuptree
/usr/bin/rpmdev-sha1
/usr/bin/rpmdev-sha224
/usr/bin/rpmdev-sha256
/usr/bin/rpmdev-sha384
/usr/bin/rpmdev-sha512
/usr/bin/rpmdev-sort
/usr/bin/rpmdev-sum
/usr/bin/rpmdev-vercmp
/usr/bin/rpmdev-wipetree
/usr/bin/rpminfo
/usr/bin/rpmls
/usr/bin/spectool
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/rpmdev-bumpspec
/usr/share/bash-completion/completions/rpmdev-checksig
/usr/share/bash-completion/completions/rpmdev-cksum
/usr/share/bash-completion/completions/rpmdev-diff
/usr/share/bash-completion/completions/rpmdev-extract
/usr/share/bash-completion/completions/rpmdev-md5
/usr/share/bash-completion/completions/rpmdev-newspec
/usr/share/bash-completion/completions/rpmdev-rmdevelrpms
/usr/share/bash-completion/completions/rpmdev-setuptree
/usr/share/bash-completion/completions/rpmdev-sha1
/usr/share/bash-completion/completions/rpmdev-sha224
/usr/share/bash-completion/completions/rpmdev-sha256
/usr/share/bash-completion/completions/rpmdev-sha384
/usr/share/bash-completion/completions/rpmdev-sha512
/usr/share/bash-completion/completions/rpmdev-sum
/usr/share/bash-completion/completions/rpmdev-vercmp
/usr/share/bash-completion/completions/rpminfo
/usr/share/bash-completion/completions/rpmls
/usr/share/bash-completion/completions/spectool
/usr/share/doc/rpmdevtools
/usr/share/doc/rpmdevtools/NEWS
/usr/share/emacs/site-lisp/site-start.d/rpmdev-init.el
/usr/share/emacs/site-lisp/site-start.d/rpmdev-init.elc
/usr/share/licenses/rpmdevtools
/usr/share/licenses/rpmdevtools/COPYING
/usr/share/man/man1/rpmdev-bumpspec.1.gz
/usr/share/man/man1/rpmdev-diff.1.gz
/usr/share/man/man1/rpmdev-extract.1.gz
/usr/share/man/man1/rpmdev-newinit.1.gz
/usr/share/man/man1/rpmdev-newspec.1.gz
/usr/share/man/man1/rpmdev-packager.1.gz
/usr/share/man/man1/spectool.1.gz
/usr/share/man/man8/rpmdev-rmdevelrpms.8.gz
/usr/share/rpmdevtools
/usr/share/rpmdevtools/rpmdev-init.el

References

Summary

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