How To Install rpmlint on Rocky Linux 8

In this tutorial we learn how to install rpmlint on Rocky Linux 8. rpmlint is Tool for checking common errors in RPM packages

Introduction

In this tutorial we learn how to install rpmlint on Rocky Linux 8.

What is rpmlint

rpmlint is a tool for checking common errors in RPM packages. Binary and source packages as well as spec files can be checked.

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

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

sudo dnf -y install rpmlint

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

sudo yum -y install rpmlint

How To Uninstall rpmlint on Rocky Linux 8

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

sudo dnf remove rpmlint

rpmlint Package Contents on Rocky Linux 8

/etc/rpmlint
/etc/rpmlint/config
/usr/bin/el4-rpmlint
/usr/bin/el5-rpmlint
/usr/bin/rpmdiff
/usr/bin/rpmlint
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/rpmdiff
/usr/share/bash-completion/completions/rpmlint
/usr/share/doc/rpmlint
/usr/share/doc/rpmlint/README.md
/usr/share/doc/rpmlint/config.example
/usr/share/licenses/rpmlint
/usr/share/licenses/rpmlint/COPYING
/usr/share/man/man1/rpmdiff.1.gz
/usr/share/man/man1/rpmlint.1.gz
/usr/share/rpmlint
/usr/share/rpmlint/AbstractCheck.py
/usr/share/rpmlint/AppDataCheck.py
/usr/share/rpmlint/BinariesCheck.py
/usr/share/rpmlint/Config.py
/usr/share/rpmlint/ConfigCheck.py
/usr/share/rpmlint/DistributionCheck.py
/usr/share/rpmlint/DocFilesCheck.py
/usr/share/rpmlint/FHSCheck.py
/usr/share/rpmlint/FilesCheck.py
/usr/share/rpmlint/Filter.py
/usr/share/rpmlint/I18NCheck.py
/usr/share/rpmlint/InitScriptCheck.py
/usr/share/rpmlint/LSBCheck.py
/usr/share/rpmlint/MenuCheck.py
/usr/share/rpmlint/MenuXDGCheck.py
/usr/share/rpmlint/NamingPolicyCheck.py
/usr/share/rpmlint/PamCheck.py
/usr/share/rpmlint/Pkg.py
/usr/share/rpmlint/PostCheck.py
/usr/share/rpmlint/RpmFileCheck.py
/usr/share/rpmlint/SCLCheck.py
/usr/share/rpmlint/SignatureCheck.py
/usr/share/rpmlint/SourceCheck.py
/usr/share/rpmlint/SpecCheck.py
/usr/share/rpmlint/TagsCheck.py
/usr/share/rpmlint/ZipCheck.py
/usr/share/rpmlint/__isocodes__.py
/usr/share/rpmlint/__pycache__
/usr/share/rpmlint/__pycache__/AbstractCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/AppDataCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/BinariesCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/Config.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/ConfigCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/DistributionCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/DocFilesCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/FHSCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/FilesCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/Filter.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/I18NCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/InitScriptCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/LSBCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/MenuCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/MenuXDGCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/NamingPolicyCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/PamCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/Pkg.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/PostCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/RpmFileCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/SCLCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/SignatureCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/SourceCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/SpecCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/TagsCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/ZipCheck.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/__isocodes__.cpython-36.opt-1.pyc
/usr/share/rpmlint/__pycache__/__version__.cpython-36.opt-1.pyc
/usr/share/rpmlint/__version__.py
/usr/share/rpmlint/config
/usr/share/rpmlint/config.el4
/usr/share/rpmlint/config.el5

References

Summary

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