Sign inSign up free

1380. Point dnf at the Offline Repositories

medium 20 XP ~7 minHands-on lab

This Rocky Linux 9 server was cloned from a machine on another network, and dnf can't install anything. Packages for this site are on an internal mirror:

  • http://repo.lab:7080/BaseOS
  • http://repo.lab:7080/AppStream

Both are signed with the key at http://repo.lab:7080/RPM-GPG-KEY-Rocky-9.

Task

  • Configure both repositories so they are enabled and dnf checks package signatures for them (gpgcheck).
  • dnf must read every enabled repository without errors.
  • Install the package ksh.

About this machine

Rocky Linux 9 (binary-compatible with RHEL 9) with no internet access. You are student with passwordless sudo. firewalld, chronyd, tuned, crond, atd and sshd really run, and dnf installs from the offline mirror at http://repo.lab:7080/. The machine never reboots: the grader checks its final state and what the next boot would do (enabled services, permanent firewall rules, the default target), not the commands you typed.

Part of Prepare for the RHCSA. Next step: Publish a Web Page Through the Firewall

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.