How To Install rpm-build on Rocky Linux 8

In this tutorial we learn how to install rpm-build on Rocky Linux 8. rpm-build is Scripts and executable programs used to build packages

Introduction

In this tutorial we learn how to install rpm-build on Rocky Linux 8.

What is rpm-build

The rpm-build package contains the scripts and executable programs that are used to build packages using the RPM Package Manager.

We can use yum or dnf to install rpm-build on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install rpm-build.

Install rpm-build 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 rpm-build using dnf by running the following command:

sudo dnf -y install rpm-build

Install rpm-build 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 rpm-build using yum by running the following command:

sudo yum -y install rpm-build

How To Uninstall rpm-build on Rocky Linux 8

To uninstall only the rpm-build package we can use the following command:

sudo dnf remove rpm-build

rpm-build Package Contents on Rocky Linux 8

/usr/bin/gendiff
/usr/bin/rpmbuild
/usr/bin/rpmspec
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/65b40ae94c082ac4adf6310b7c14e6f3fc4f4a
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/65b755f70fca8ff8c0e7f9c0544f1cfbf1ed03
/usr/lib/.build-id/58
/usr/lib/.build-id/58/2736f13845fea1ff2e5d8e4938bfca4622ca52
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/94ead01f0a0aa3b60052476f10a3b3f90db68c
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/4338b94544fbc0a40f80a867394f4c4ffa9e64
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/ae9086942ca3d2985e5020c7625fde5f4ecef8
/usr/lib/rpm/brp-compress
/usr/lib/rpm/brp-java-gcjcompile
/usr/lib/rpm/brp-python-bytecompile
/usr/lib/rpm/brp-python-hardlink
/usr/lib/rpm/brp-strip
/usr/lib/rpm/brp-strip-comment-note
/usr/lib/rpm/brp-strip-shared
/usr/lib/rpm/brp-strip-static-archive
/usr/lib/rpm/check-buildroot
/usr/lib/rpm/check-files
/usr/lib/rpm/check-prereqs
/usr/lib/rpm/check-rpaths
/usr/lib/rpm/check-rpaths-worker
/usr/lib/rpm/config.guess
/usr/lib/rpm/config.sub
/usr/lib/rpm/debugedit
/usr/lib/rpm/debuginfo.prov
/usr/lib/rpm/desktop-file.prov
/usr/lib/rpm/elfdeps
/usr/lib/rpm/fileattrs/debuginfo.attr
/usr/lib/rpm/fileattrs/desktop.attr
/usr/lib/rpm/fileattrs/elf.attr
/usr/lib/rpm/fileattrs/font.attr
/usr/lib/rpm/fileattrs/libtool.attr
/usr/lib/rpm/fileattrs/metainfo.attr
/usr/lib/rpm/fileattrs/mono.attr
/usr/lib/rpm/fileattrs/ocaml.attr
/usr/lib/rpm/fileattrs/pkgconfig.attr
/usr/lib/rpm/fileattrs/script.attr
/usr/lib/rpm/find-debuginfo.sh
/usr/lib/rpm/find-lang.sh
/usr/lib/rpm/find-provides
/usr/lib/rpm/find-requires
/usr/lib/rpm/fontconfig.prov
/usr/lib/rpm/libtooldeps.sh
/usr/lib/rpm/macros.perl
/usr/lib/rpm/macros.php
/usr/lib/rpm/macros.python
/usr/lib/rpm/metainfo.prov
/usr/lib/rpm/mkinstalldirs
/usr/lib/rpm/mono-find-provides
/usr/lib/rpm/mono-find-requires
/usr/lib/rpm/ocaml-find-provides.sh
/usr/lib/rpm/ocaml-find-requires.sh
/usr/lib/rpm/pkgconfigdeps.sh
/usr/lib/rpm/rpmdeps
/usr/lib/rpm/script.req
/usr/lib/rpm/sepdebugcrcfix
/usr/share/man/man1/gendiff.1.gz
/usr/share/man/man8/rpmbuild.8.gz
/usr/share/man/man8/rpmdeps.8.gz
/usr/share/man/man8/rpmspec.8.gz
/usr/bin/gendiff
/usr/bin/rpmbuild
/usr/bin/rpmspec
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/4020a980f21bd4313a5e220cfff866a5fd09f9
/usr/lib/.build-id/25/ee83bcae4f90201c79f81a04ee99a25372f4d2
/usr/lib/.build-id/64
/usr/lib/.build-id/64/fd469fc7d27533f7da468c8aad4f825227d0c3
/usr/lib/.build-id/86
/usr/lib/.build-id/86/fc505dbb3a4fa2a3574c71af12bf4987bec7c3
/usr/lib/.build-id/ab
/usr/lib/.build-id/ab/329ce02ccded759ed84da267d36c29210cf78c
/usr/lib/.build-id/ad/4cd9f193e4b929cefc4f0b7c8f8ffbf6ef97b4
/usr/lib/rpm/brp-compress
/usr/lib/rpm/brp-java-gcjcompile
/usr/lib/rpm/brp-python-bytecompile
/usr/lib/rpm/brp-python-hardlink
/usr/lib/rpm/brp-strip
/usr/lib/rpm/brp-strip-comment-note
/usr/lib/rpm/brp-strip-shared
/usr/lib/rpm/brp-strip-static-archive
/usr/lib/rpm/check-buildroot
/usr/lib/rpm/check-files
/usr/lib/rpm/check-prereqs
/usr/lib/rpm/check-rpaths
/usr/lib/rpm/check-rpaths-worker
/usr/lib/rpm/config.guess
/usr/lib/rpm/config.sub
/usr/lib/rpm/debugedit
/usr/lib/rpm/debuginfo.prov
/usr/lib/rpm/desktop-file.prov
/usr/lib/rpm/elfdeps
/usr/lib/rpm/fileattrs/debuginfo.attr
/usr/lib/rpm/fileattrs/desktop.attr
/usr/lib/rpm/fileattrs/elf.attr
/usr/lib/rpm/fileattrs/font.attr
/usr/lib/rpm/fileattrs/libtool.attr
/usr/lib/rpm/fileattrs/metainfo.attr
/usr/lib/rpm/fileattrs/mono.attr
/usr/lib/rpm/fileattrs/ocaml.attr
/usr/lib/rpm/fileattrs/pkgconfig.attr
/usr/lib/rpm/fileattrs/script.attr
/usr/lib/rpm/find-debuginfo.sh
/usr/lib/rpm/find-lang.sh
/usr/lib/rpm/find-provides
/usr/lib/rpm/find-requires
/usr/lib/rpm/fontconfig.prov
/usr/lib/rpm/libtooldeps.sh
/usr/lib/rpm/macros.perl
/usr/lib/rpm/macros.php
/usr/lib/rpm/macros.python
/usr/lib/rpm/metainfo.prov
/usr/lib/rpm/mkinstalldirs
/usr/lib/rpm/mono-find-provides
/usr/lib/rpm/mono-find-requires
/usr/lib/rpm/ocaml-find-provides.sh
/usr/lib/rpm/ocaml-find-requires.sh
/usr/lib/rpm/pkgconfigdeps.sh
/usr/lib/rpm/rpmdeps
/usr/lib/rpm/script.req
/usr/lib/rpm/sepdebugcrcfix
/usr/share/man/man1/gendiff.1.gz
/usr/share/man/man8/rpmbuild.8.gz
/usr/share/man/man8/rpmdeps.8.gz
/usr/share/man/man8/rpmspec.8.gz

References

Summary

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