Lesson 5.3: Package management on Red Hat systems: dnf
The same ideas on Rocky Linux (a Red Hat Enterprise Linux clone): dnf instead of apt, rpm instead of dpkg, .rpm packages, repositories in /etc/yum.repos.d and the extra EPEL repository.
14 min
You will learn to
- Recognise a Red Hat family system
- Search, install and remove with dnf
- Query installed packages with rpm -q, -qi, -qf
- Explain EPEL and enable it
Key terms
- RHEL and its clones
- Red Hat Enterprise Linux is a commercial distribution with long support; Rocky Linux and AlmaLinux rebuild it from the same sources for free; Fedora is its fast-moving upstream.
- dnf (and yum)
- The Red Hat family's high-level package manager, the counterpart of apt. yum is its older name and still works as an alias.
- rpm
- The low-level tool and package format (.rpm), the counterpart of dpkg: -q query, -qi info, -ql files, -qf which package owns a file, -qa all.
- EPEL
- Extra Packages for Enterprise Linux: a repository maintained by the Fedora project with packages RHEL doesn't ship.
← Package management on Debian and Ubuntu: apt · All lessons · Installing software by hand →