Bookmark this page

Guided Exercise: Performing Package Management with Yum

In this exercise, you will manage software packages and module streams using Yum.

Outcomes

You should be able to manage installed software versions using Yum.

Log in as the student user with student as the password on workstation. Use SSH to log in to the servera system as the root user.

[student@workstation ~]$ ssh root@servera
  1. Yum v4 retains previous functionality, and adds new features.

    1. Use yum install postgresql to install the default PostgreSQL 10 package and dependencies.

      [root@servera ~]# yum install postgresql
    2. Use yum remove postgresql to remove the default PostgreSQL 10 package and dependencies that were added.

      [root@servera ~]# yum remove postgresql
  2. Yum v4 now provides module and stream functions to install and modify groups of packages.

    1. Use yum module list to list available modules and streams.

      [root@servera ~]# yum module list
    2. Use yum module reset postgresql to reset the enabled PostgreSQL module stream.

      [root@servera ~]# yum module reset postgresql
    3. Use yum module install postgresql:9.6 to install the PostgreSQL module and specific stream.

      [root@servera ~]# yum module install postgresql:9.6
    4. Use yum module remove postgresql:9.6 to remove the Postgresql 9.6 module stream.

      [root@servera ~]# yum module remove postgresql:9.6

This concludes the guided exercise.

Revision: rh354-8.0-0e36520