Working with yum module on CentOS

15 minutes
  • 2 Learning Objectives

About this Hands-on Lab

Using `yum module` allows much greater flexibility in determining what software can be installed on your servers. It allows you to leave security and bug fix patches up to the CentOS team instead of having to manually compile or build your own RPMs, even for packages that may be out of date. In this lab, we’ll work on understanding how modules can be used.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Install `postgresql` 9.6

First, we need to enable the 9.6 stream of postgresql:

yum module enable postgresql:9.6

Then we can install it:

yum install postgresql

Watch the output, and verify it’s using the 9.6 version.

Install `php` 7.3

First, we need to enable the 7.3 stream of php:

yum module enable php:7.3

Then we can install it:

yum install php

Watch the output, and verify it’s using the 7.3 version.

Additional Resources

You've been tasked with setting a server up to use postgresql 9.6 and php 7.3. Use yum module to ensure you can update them easily.

Note: Please give this lab a few minutes before trying to connect via ssh.

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?