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.
A developer on your team needs two tools installed on their new RHEL 9 server. Your job is to get them both running.
htop, an interactive process viewer.nginx web server. You run dnf install nginx and get: No match for argument: nginx. It is not in the default RHEL repositories.Post the commands you would use for both parts.
htop)htop package to make sure it is available?nginx)Goal: Add an additional repository and use it to install nginx.
.repo file? (Include a section name, name, baseurl, gpgcheck, and enabled.)nginx?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!
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
for those who wants an official doc for reference :
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
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.