Investigating Packages with DNF

30 minutes
  • 3 Learning Objectives

About this Hands-on Lab

The DNF utility provides many options for locating and gaining information about installed and available packages. In this hands-on lab, you will be tasked with finding packages based on specific search criteria and the utilities and files they provide.

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

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Search for Available Packages Based on Specific Criteria
  • Search for an available package that includes a virtualization API.
  • Search for an available package that includes a web server and a reverse proxy server.
  • Search for a package with a utility that combines traceroute and ping.
Find Packages That Provide Specific Utilities
  • Search for a package that provides the nmap utility.
    • Once located, determine whether it’s installed or available, and view additional information about the package.
    • List the files provided by the package
  • Search for a package that provides the netstat utility.
    • Once located, determine whether it’s installed or available, and view additional information about the package.
    • List the files provided by the package.
Find Packages That Provide or Own Specific Files
  • Using the dnf provides command, find a package that provides the smb.conf file.
    • Determine whether or not the package is installed.
    • Use the dnf repoquery command to view more information about the package (should be restricted to installed packages).
  • Using the dnf repoquery command, list the package that owns the /etc/chrony.conf file (it should be restricted to installed packages).
    • Using the same command for listing the package, display detailed information about the package.

Additional Resources

You work as part of a team of Linux administrators and have been tasked with locating some packages that will be used in an upcoming project, as well as evaluating some packages that are already present on the host. First, you will need to search the connected DNF repositories for packages that contain specific keywords. Then, you will need to locate packages that provide specific utilities. Finally, you will need to locate packages that provide or own specific files.

Note:

  • 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?