Recover a Corrupted RPM Database

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

The RPM package manager lets us distribute, manage, and update software. It is also an underlying component of other package managers such as `yum` and `dnf`. As such, it’s paramount there are no issues with RPM while working on our Red Hat servers. In the event our RPM database corrupts, there are steps we can take to recover the database and thus repair the issues. This hands-on lab reviews these steps.

_This course is not approved or sponsored by Red Hat._

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Reproduce the Issue

Attempt to run an rpm command.

Repair RPM Database

Use provided RPM tools to restore the RPM database back into a working state.

Verify Fix

Verify that the database repair was successful.

Additional Resources

Any attempts at installing or managing packages via rpm have been failing for the given server. Check the health of the rpm database and then repair any issues.

This course is not approved or sponsored by Red Hat.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?