Packages, on both families
The package manager is where Debian and Red Hat diverge most, and the exam may put you in front of either. This guide asks the same eight questions - is it installed, what owns this file, what will it drag in, what did remove leave behind - of both families at once, so the pair of commands is learned together instead of twice.
Operations Deployment Guide 11 of 38 Beginner
- PlatformsUbuntu 26.04 LTS + AlmaLinux 10.2
- LVM2.03.31 (Ubuntu) / 2.03.36 (AlmaLinux)
- nftables1.1.6 (Ubuntu) / 1.1.5 (AlmaLinux)
- TimeAbout 20 min
apt 3.2.0 with dpkg 1.23.7 on Ubuntu 26.04; dnf 4.20.0 with rpm 4.19.1.1 on RHEL 10. dnf 5 renames a few subcommands but everything on this page is unchanged. The low-level tool (dpkg, rpm) works on one file and knows nothing about repositories; the high-level one (apt, dnf) resolves dependencies and fetches.
- Firewallufw 0.36.2 enabled but reporting inactive / firewalld active
- Network confignetplan + systemd-networkd / NetworkManager 1.56.0
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| LFCS-A01 | 192.168.0.70 | Ubuntu 26.04 LTS | Primary host - most guides run only here | 2 Core | 4 GB | 50 GB |
| LFCS-C01 | 192.168.0.72 | AlmaLinux 10.2 | The other distribution - dnf, firewalld and NetworkManager | 2 Core | 4 GB | 50 GB |
This guide includes
Use this for the domain where the two families diverge most. This matters because "which package owns this file" is the most useful query in it - and each family answers with a different tool.
- separating four tools across two layers
- asking whether something is installed, and which package owns a given file
- finding a package you do not have yet, by name and by the file you need
- installing, and seeing what came with it
- comparing remove with purge, checking whether anything on disk was changed, and reading the transaction log
Before you start
-
Four tools, two layers
-
Is it installed, and what is it
-
Which package owns this file
-
Finding a package you do not have yet
-
Installing, and what came with it
-
Remove against purge, on a package that shows the difference
-
Has anything on disk been changed
-
What was done to this machine, and when