Skip to main content

Installing an RPM Package

Hands-On Lab


Photo of Michael Christian

Michael Christian

Course Development Director in Content





In this hands-on lab, we will install an RPM package on a CentOS7 system. On rpm-based Linux distributions, we can install rpm packages using the rpm command. This gives us the hands on experience of installing and removing rpm packages directly, without the use of a more comprehensive package manager like yum.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Installing an RPM Package


In this hands-on lab, we will install an RPM package on a CentOS7 system.

Connecting to the Lab

  1. Open your terminal application, and run the following command (remember to replace <PUBLIC_IP> with the public IP you were provided on the lab instructions page):
    ssh cloud_user@<PUBLIC_IP>
  2. Enter yes at the prompt.
  3. Enter your cloud_user password at the prompt.

Install the htop RPM Package

  1. List the contents of the current directory.
  2. Run the following command to elevate permissions and install the RPM package:
    sudo rpm -i htop-2.2.0-3.el7.x86_64.rpm
  3. Enter your password at the prompt.

Run the htop Application

  1. Run the following command:
  2. Press Q to exit the application.

Remove the htop Package

  1. Run the following command:
    sudo rpm -e htop


Congratulations, you've successfully completed this hands-on lab!