Skip to main content

Installing and Managing Packages on Red Hat/CentOS Systems

Hands-On Lab


Photo of Terrence Cox

Terrence Cox

Senior Vice President of Content





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 and installation utilities yum and rpm to manage packages on Red Hat/CentOS Linux distributions.

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 and Managing Packages on Red Hat/CentOS Systems

  1. Log in to the cloud server using the credentials provided in the hands-on lab page.

  2. Attempt to install the RPM to determine what dependencies are required:

    sudo rpm -i /home/cloud_user/Downloads/elinks-0.12-0.37.pre6.el7.0.1.x86_64.rpm
  3. Use the package manager to determine which packages provide the dependencies:

    sudo yum provides <PACKAGE_NAME>
  4. Install the packages that provide those dependencies:

    sudo yum install <PACKAGE_NAME>
  5. Once the dependencies have been installed, attempt to install the RPM again. If any other dependencies are needed, repeat steps 3 and 4 to resolve that dependency issue.

    sudo rpm -i /home/cloud_user/Downloads/elinks-0.12-0.37.pre6.el7.0.1.x86_64.rpm
  6. Once the RPM is installed successfully, run elinks to ensure the application is working properly:

  7. If the dependency issues have been resolved and the application is working properly, you have completed this hands-on lab. Great job!