How To Install rpmlint on Fedora 34

rpmlint is Tool for checking common errors in RPM packages

Introduction

In this tutorial we learn how to install rpmlint on Fedora 34.

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install rpmlint.

Install rpmlint on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install rpmlint

Install rpmlint on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove rpmlint

rpmlint Package Contents on Fedora 34

/etc/rpmlint
/etc/rpmlint/config
/usr/bin/rpmdiff
/usr/bin/rpmlint
/usr/share/bash-completion
/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-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/AppDataCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/BinariesCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/Config.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/ConfigCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/DistributionCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/DocFilesCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/FHSCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/FilesCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/Filter.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/I18NCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/InitScriptCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/LSBCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/MenuCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/MenuXDGCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/NamingPolicyCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/PamCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/Pkg.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/PostCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/RpmFileCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/SCLCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/SignatureCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/SourceCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/SpecCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/TagsCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/ZipCheck.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/__isocodes__.cpython-39.opt-1.pyc
/usr/share/rpmlint/__pycache__/__version__.cpython-39.opt-1.pyc
/usr/share/rpmlint/__version__.py
/usr/share/rpmlint/config

References

Summary

In this tutorial we learn how to install rpmlint on Fedora 34 using yum and dnf.