Investigating Packages with RPM

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

The Red Hat Package Manager (RPM) handles the backend operation for the high-level package manager DNF. Although DNF provides all the functionality of RPM and more, you can still use RPM to gain information about software packages. In this hands-on lab, you will be tasked with querying and verifying RPM packages using the `rpm` command.

*This lab is not approved or sponsored by Red Hat.*

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Query Installed Packages
  • Use the rpm command to list all installed packages.
  • Use the rpm command to find out which package owns the /usr/bin/iostat command.
    • Display information about the package discovered.
    • List the configuration files provided by the package discovered.
    • View the changelog information about the package discovered.
  • Use the rpm command to find out which package owns the /var/lib/dav file.
    • Display information about the package.
    • List the documentation files for the package.
    • List the scripts that are used as part of the install and uninstall process package.
Query Uninstalled Packages
  • Use the rpm command to display information about the nginx-1.14.1-9.module+el8.0.0+4108+af250afe.x86_64.rpm file located in /home/cloud_user/rpms.
    • List the dependencies for the package.
    • List the configuration files for the package.
    • View the changelog information for the package.
  • Use the rpm command to display information about the vsftpd-3.0.3-35.el8.x86_64.rpm file located in /home/cloud_user/rpms.
    • List all the files provided by the package.
    • List the documentation files for the package.
    • List the scripts that are used as part of the install and uninstall process for the package.
Verify Packages
  • Use the rpm command to verify the nmap and mtr packages.
  • Use the rpm command to verify the sysstat package, but do not include group ownership in the verification.
  • Use the rpm command to verify the httpd package, but do not include dependencies/capabilities and major/minor devices in the verification.

Additional Resources

You work as a Linux administrator and have been tasked with doing some investigation and analysis of some packages on one of the hosts you administer. This will involve using the rpm command to gain information about specific packages. You will aso need to query some RPM packages and validate the information you receive prior to installing these packages. Finally, you will need to perform verification checks on several packages that are not functioning properly to see if you can identify any discrepancies.

Note:

  • All RPMs can be found in the /home/cloud_user/rpms directory unless otherwise specified.
  • All tasks should be performed as the cloud_user.
  • The cloud_user has been given sudo access to perform the required tasks.

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?