Package Management with dnf
Two objectives, and the install and remove halves take about a minute each. The part worth practising is searching: an exam task tells you to configure something and does not tell you which package provides it, and dnf provides is how you find out on a machine with no internet.
Managing Software Guide 12 of 67 Beginner
- OSRHEL 10.0
- Kernel6.12.0-55.9.1.el10_0
- dnf4.20.0
- Flatpak1.16.0
- TimeAbout 13 min
RHEL 10 ships dnf 4.20.0, not DNF 5 - the binary is /usr/bin/dnf-3. It also has no modularity: there are no AppStream module streams or profiles on this release, so dnf module commands that fill older RHCSA material have nothing to act on. See guide 16.
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| RHCSA-A01 | 192.168.0.31 | RHEL 10.0 | Practice node (graded) - spare /dev/sda | 2 Core | 4 GB | 50 GB + 15 GB |
This guide includes
Use this for two objectives that each take about a minute. This matters because the query actually worth knowing is neither install nor remove - it is finding which package provides a file you already have.
- installing a package, having confirmed it was not there first
- asking which package provides a given file
- searching and inspecting before installing anything
- working with groups and environment groups
- removing cleanly
Before you start
- A sudo-capable account and a working repository.
- The session installs and removes
tree.
-
The machine this guide assumes
-
Installing
-
Which package provides this?
-
Searching and inspecting
-
Groups
-
Removing