Installing and Managing Packages on Red Hat/CentOS Systems

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Installation and removal of packages is a core skill for anyone managing Linux distributions. During this activity, the student will work with the package manager utility `yum` and installation utility `rpm` to manage packages on Red Hat/CentOS Linux distributions.

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

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install Available Elinks Application

An elinks RPM file is already downloaded but can’t be installed because of missing dependencies.

In order to install the package successfully, you will need to deal with the dependencies. You can use the package manager to do that for you via the command:

sudo yum install /home/cloud_user/Downloads/elinks-0.12-0.37.pre6.el7.0.1.x86_64.rpm

Optionally, adding -y to the command (sudo yum -y install...) will skip prompting for the dependencies and will just complete the install as though you’d said "yes" to everything.

If you are able to install the application and dependencies successfully, the learning activity can be considered successfully completed.

Note:: The exact version in your activity may be different; this version was current as of the time this activity was created.

Verify Elinks Package RPM Exists

Verify that the application is installed. You can check by doing:

which elinks

This will return the /usr/bin/elinks path. Or simply run the command to view the console browser application itself:


You can exit once you acknowledge the dialog by pressing the ESC key.

Additional Resources

Your development team is working on their new web-based API. During testing, they decided to use a terminal-based web browser to perform tests on a separate system. This way, they won't have to leave their terminal window. They found a terminal browser they like, but the version they need to run is a bit different from the version in the official repository.

They managed to download the appropriate package for their system and architecture but are unable to install it because of several missing dependencies. They have asked you to resolve the issue and have provided you with credentials and connection information to their client testing system.

You will need to successfully install the elinks using the .rpm file that the development team downloaded. You can resolve the unmet dependencies however you choose, but the version that has already been downloaded is the version that you need to install. Once you verify the application is installed and running properly, you can turn the system back over for their use.

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?