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.
- Use the
- 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-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.
- Use the
- 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