- Lab
- A Cloud Guru
Investigating Packages with RPM
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.*
Path Info
Table of Contents
-
Challenge
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.
- Use the
-
Challenge
Query Uninstalled Packages
- Use the
rpm
command to display information about thenginx-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 thevsftpd-3.0.3-36.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.
- Use the
-
Challenge
Verify Packages
- Use the
rpm
command to verify thenmap
andmtr
packages. - Use the
rpm
command to verify thesysstat
package, but do not include group ownership in the verification. - Use the
rpm
command to verify thehttpd
package, but do not include dependencies/capabilities and major/minor devices in the verification.
- Use the
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.