Managing Packages with RPM

15 minutes
  • 2 Learning Objectives

About this Hands-on Lab

The Red Hat Package Manager (RPM) was the main mechanism for installing and interacting with packages on Red Hat-based hosts prior to the adoption of more robust tools like YUM and DNF. Although YUM and DNF provide more functionality, they still use the RPM utility to manage packages on the backend. In this hands-on lab, you will be tasked with using RPM to install, upgrade, and remove packages on a Linux host.

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

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Remove RPM Packages
  • Remove the nmap and telnet packages.
  • Remove the mysql package and all of its dependencies. This includes the following packages: mysql, mariadb-connector-c-config, and mysql-common.
Install and Upgrade RPM Packages
  • Install the following RPM packages: htop-3.2.1-1.el8.x86_64.rpm and mtr-0.92-3.el8.x86_64.rpm.
  • Upgrade the wget package from version 1.19.5 release 7 (wget-1.19.5-7.el8) to version 1.19.5 release 10 (wget-1.19.5-10.el8).
  • Install the nginx package and all its dependencies. The RPM files are located in /home/cloud_user/nginx. This should be done using a wildcard.

Additional Resources

You work as a Linux administrator and have been tasked with modifying a server to make specific RPM packages available. The host was serving as a MySQL database server but needs to be repurposed as an Nginx server. To accomplish this task, you will need to remove the mysql package, including dependencies, as well as a few ancillary packages that are no longer needed. Then, you will need to install the nginx package, including dependencies, and install or upgrade some packages that will be needed on the Nginx server.

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?