Red Hat Certified System Administration 8



Exercise: Working with Modules

  1. Type yum module list. You’ll see a list of all modules that are available.

  2. Type yum module provides httpd. This will show you that the httpd package is a part of the httpd module. As this module has just one stream, we’ll have a look at the PHP module in the next steps in this exercise.

  3. Type yum module info php to get information about the php module. This gives information about the default PHP application stream.

  4. To investigate packages in the application stream for PHP 7.1, type yum module info --profile 7.1.

  5. Type yum module install php:7.1/devel. This will install PHP from the PHP 7.1 application stream, using the developer profile. Notice that by installing it from this specific stream, you’ll also enable the 7.1 application stream.

  6. Type yum module install php:7.2 to switch to the newer version of the PHP module.

  7. To ensure that all dependent packages are updated as well, type yum distro-sync.

Eninam BAGNABANA     |         |     bagnadavid@outlook.fr     |