dnf repository
A source of RPM packages that dnf reads, defined by a section of a .repo file in /etc/yum.repos.d.
In more detail
Each section has an ID in square brackets, a name, a baseurl or metalink, and gpgcheck and enabled settings. dnf repolist shows the enabled ones, and dnf install fails until at least one reachable repository offers the package.
Example
[exam-baseos]
baseurl=http://content.example.com/rhel10/x86_64/dnf/BaseOSRelated terms
- package manager — A tool that installs, updates and removes software together with what it depends on, such as apt on Debian, apk on Alpine or Homebrew on macOS.
- RPM — The package format of RHEL and the low-level tool that installs and queries packages without resolving dependencies.
Taught in
- Exam-Style Scripts: Arguments, Output And Exit Codes — Red Hat Certified System Administrator (EX200) Exam Prep
- Repositories You Configure By File — Red Hat Certified System Administrator (EX200) Exam Prep
- Drill: People, Packages And Time — Red Hat Certified System Administrator (EX200) Exam Prep
- Mock Exam, Part 1: Eighteen Tasks, One Reboot — Red Hat Certified System Administrator (EX200) Exam Prep
- Packages And Repositories: yum_repository And dnf — RHCE in Ansible (EX294): Automate Red Hat Systems
- Drill: A Web Node From A Ticket — RHCE in Ansible (EX294): Automate Red Hat Systems