Troubleshooting RPM issues

1 hour
  • 2 Learning Objectives

About this Hands-on Lab

In this exercise, you will need to install `telnet` and install `Apache`.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install telnet.

First, let’s become root:

sudo -i

Install the telnet package:

yum install -y telnet

Verify the integrity of the RPM database:

cd /var/lib/rpm/
/usr/lib/rpm/rpmdb_verify Packages

Move Packages to Packages.bad and create a new RPM database from Packages.bad:

mv Packages Packages.bad
/usr/lib/rpm/rpmdb_dump Packages.bad | /usr/lib/rpm/rpmdb_load Packages

Verify the integrity of the new RPM database:

/usr/lib/rpm/rpmdb_verify Packages

Query installed packages for errors:

rpm -qa > /dev/null

Rebuild the RPM database:

rpm -vv --rebuilddb

Install telnet:

yum install -y telnet
Install Apache.

Install Apache:

yum install -y httpd

Edit /etc/yum.conf to remove the exclusion for httpd:

vim /etc/yum.conf

Now, try to install Apache:

yum install -y httpd

Additional Resources

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.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

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