Managing Packages with DNF

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

DNF is an improved version of the YUM package manager, which, in addition to resolving dependencies, provides more features and better efficiency than its predecessor. In this hands-on lab, you will use DNF to manage software packages, package groups, and modules.

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

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Manage Software Packages
  • Install sysstat, nmap, and mtr packages.
  • Install the vsftpd package version 3.0.3 release 33.el8.
  • Remove the drbd and htop packages.
  • Remove all packages that were installed as dependencies of user installed packages ("leaf packages") but are no longer needed.
Manage Package Groups
  • Install the Security Tools package group.
  • Remove the System Tools package group.
Manage Modules
  • Remove the nginx module.
  • Enable the postgresql module for stream 13.
  • install the postgresql module.
Update Software Packages
  • Remove all temporary DNF files.
  • Upgrade all the packages on the host with available updates.

Additional Resources

You work as a system administrator for a medium-sized company and have been tasked with using DNF to update the software on one of the servers you administer. This will involve installing new packages and removing packages that are no longer needed. In addition, you will need to make some changes to package groups and modules. Once all the necessary changes have been made, you need to perform a cleanup of all the temporary DNF files and upgrade any packages that have available updates.


  • All tasks should be performed as the cloud_user.
  • The cloud_user has been given sudo access to perform the required tasks.

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?