Viewing, Installing and Removing Packages Using YUM and RPM

30 minutes
  • 5 Learning Objectives

About this Hands-on Lab

In this hands-on lab, you will be the `yum` and `rpm` commands to manage packages and package modules on a Red Hat 8 system. You will use the `yum` command to check for and install updates, followed by using `yum module` to install the oldest version of a specific module. You will also use `yum` to remove a previously installed package on the system. The final task will be to use `rpm` to check to see if a package is installed and then install an application using a local rpm file.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Check for Available Updates
  • Use yum to check for available updates and review the list.
Review Information for All PostgreSQL Module Stream
  • Using the yum module command, review all available modules.
  • View the information for the oldest PostgreSQL stream.
Install PostgreSQL Using the Oldest Module Stream
  • Use yum module to install the oldest PostgreSQL stream.
  • Review the status of the PostgreSQL service.
Remove an Installed Package from the System
  • Check to see if MariaDB is installed.
  • Use yum to uninstall the MariaDB package.
Use the RPM Command to Install a Local RPM package
  • Check to see if the package for wget is installed.
  • Use rpm to install the wget package located in the cloud_user’s home directory.
  • Confirm wget is installed by checking the version.

Additional Resources

SCENARIO:

The development team needs a new system to perform legacy testing and patching for a previous version of one of the company's solutions. The requested system will need to have the latest system updates applied, an older version of PostgreSQL installed for validation and MariaDB removed from the system if it is installed. Additionally, the developers have provided an rpm file for the wget utility and have asked that it be installed on the system as well.

To complete the request and build the server to meet the team's requirements, you will need to:

  • Check for and install available updates using the yum command.
  • Review information for all PostgreSQL module streams.
  • Install PostgreSQL using the oldest module stream.
  • Remove an installed package from the system.
  • Use the rpm command to install a local rpm package.

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!