cancel
Showing results for 
Search instead for 
Did you mean: 
TudorRaduta
Community Manager
Community Manager
  • 253 Views

The "Why can't I find this package?" Friday Challenge

The Software Hunt (Easy & Hard Mode)

Happy Friday, everyone! 

Let’s wrap up the week with a practical, two-part challenge. This scenario tests a core admin skill from the RHCSA objectives: “Manage software” and “Configure access to RPM repositories.”

There’s a warm-up for anyone learning RHEL and a deeper task for those who want an extra challenge.

The Scenario:

A developer on your team needs two tools installed on their new RHEL 9 server. Your job is to get them both running.

  • Tool 1 (Warm-Up): They need htop, an interactive process viewer.
  • Tool 2 (The Real Test): They need the nginx web server. You run dnf install nginx and get: No match for argument: nginx. It is not in the default RHEL repositories.

Your Challenge:

Post the commands you would use for both parts.

Part 1: The Beginner Challenge (Installing htop)

  1. What command would you run to search for the htop package to make sure it is available?
  2. What is the one-line command to install it?

Part 2: The Expert Challenge (Installing nginx)

Goal: Add an additional repository and use it to install nginx.

  1. What is the full path and filename of the new repository file you need to create?
  2. What would be the complete contents of this new .repo file? (Include a section name, name, baseurl, gpgcheck, and enabled.)
  3. After creating the file, what command should you run so the system is aware of the new repository metadata?
  4. What is the final command to install nginx?
  • Bonus Question: A developer hands you a file named my-tool-1.0.rpm. What dnf command would you use to install this local RPM file and automatically resolve its dependencies?

Let’s see your software-management skills in action. Have a great weekend!

3 Replies
Chetan_Tiwary_
Community Manager
Community Manager
  • 94 Views

A very important concept builder challenge which will be very useful :

1. dnf search htop 

2. dnf install -y htop 

3. vim /etc/yum.repos.d/nginx.repo

4. 

[nginx]
name=nginx repo
baseurl=<url/$basearch/>
gpgcheck=1
enabled=1
gpgkey=<url/key>

5. dnf repolist all && dnf update -y

6. dnf install -y nginx

7. dnf install -y /<path>/my-tool-1.0.rpm

 

 

Chetan_Tiwary_
Community Manager
Community Manager
  • 94 Views

for those who wants an official doc for reference : 

 https://www.redhat.com/en/blog/nginx-based-yum-dnf-repo 

0 Kudos
djay49
Cadet
Cadet
  • 72 Views

5. dnf repolist all && dnf update -y

It seems to me that just the command ‘dnf clean all && dnf makecache’ is sufficient to update repository infos and metadata

Join the discussion
You must log in to join this conversation.