How To Install dcrpm on Rocky Linux 8

In this tutorial we learn how to install dcrpm on Rocky Linux 8. dcrpm is A tool to detect and correct common issues around RPM database corruption

Introduction

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

What is dcrpm

dcrpm is a tool to detect and correct common issues around RPM database corruption.

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

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

sudo dnf -y install dcrpm

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

sudo yum -y install dcrpm

How To Uninstall dcrpm on Rocky Linux 8

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

sudo dnf remove dcrpm

dcrpm Package Contents on Rocky Linux 8

/usr/bin/dcrpm
/usr/lib/python3.6/site-packages/dcrpm
/usr/lib/python3.6/site-packages/dcrpm-0.6.2-py3.6.egg-info
/usr/lib/python3.6/site-packages/dcrpm-0.6.2-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/dcrpm-0.6.2-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/dcrpm-0.6.2-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/dcrpm-0.6.2-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/dcrpm-0.6.2-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/dcrpm-0.6.2-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/dcrpm/__init__.py
/usr/lib/python3.6/site-packages/dcrpm/__pycache__
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/__version__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/__version__.cpython-36.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/dcrpm.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/dcrpm.cpython-36.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/forensic_logger.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/forensic_logger.cpython-36.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/main.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/main.cpython-36.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/pidutil.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/pidutil.cpython-36.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/rpmutil.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/rpmutil.cpython-36.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/util.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/util.cpython-36.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/yum.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/dcrpm/__pycache__/yum.cpython-36.pyc
/usr/lib/python3.6/site-packages/dcrpm/__version__.py
/usr/lib/python3.6/site-packages/dcrpm/dcrpm.py
/usr/lib/python3.6/site-packages/dcrpm/forensic_logger.py
/usr/lib/python3.6/site-packages/dcrpm/main.py
/usr/lib/python3.6/site-packages/dcrpm/pidutil.py
/usr/lib/python3.6/site-packages/dcrpm/rpmutil.py
/usr/lib/python3.6/site-packages/dcrpm/util.py
/usr/lib/python3.6/site-packages/dcrpm/yum.py
/usr/share/doc/dcrpm
/usr/share/doc/dcrpm/CODE_OF_CONDUCT.md
/usr/share/doc/dcrpm/CONTRIBUTING.md
/usr/share/doc/dcrpm/HISTORY.md
/usr/share/doc/dcrpm/MANUAL_RPM_CLEANUP.md
/usr/share/doc/dcrpm/README.md
/usr/share/licenses/dcrpm
/usr/share/licenses/dcrpm/LICENSE

References

Summary

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