Hands-on Lab·LPIC-1
dpkg and rpm, the low-level tools
Objectives 102.4 and 102.5 examine Debian and RPM package management separately. This guide installs the same package on both hosts and asks each family the same questions - what is this, what does it contain, which of those files are configuration - then removes it two different ways on Debian to show the difference between remove and purge, which RPM has no equivalent of.
101: Installation and Packages Guide 6 of 33 Beginner
- PlatformsUbuntu 26.04 LTS + AlmaLinux 10.2
- TimeAbout 18 min
- RPM packagingrpm 4.19.1.1, dnf 4.20.0
| Server Name | IP Address | OS | Roles | CPU | RAM | HDD |
|---|---|---|---|---|---|---|
| LPIC1-A01 | 192.168.0.76 | Ubuntu 26.04 LTS | Debian-family host - dpkg and apt, which objective 102.4 names | 2 Core | 4 GB | 50 GB |
| LPIC1-B01 | 192.168.0.77 | AlmaLinux 10.2 | RPM-family host - rpm and dnf, which objective 102.5 names | 2 Core | 4 GB | 50 GB |
This guide includes
Use this for the low-level half of both packaging objectives. This matters because remove and purge are two verbs on Debian and one on RPM - which is exactly where the two objectives part company.
- taking an inventory on each machine
- installing, and seeing what the high-level tool adds
- asking each tool what a package is, and which files it owns
- separating remove from purge on Debian
- meeting the RPM side, which has no such distinction
Before you start
- the-lab-and-both-package-families
-
How many packages each machine thinks it has
-
Installing it, and what the high-level tool adds
-
Asking each tool what the package is
-
Which files it owns, and which of those are configuration
-
Remove against purge, which is where the verbs part company
-
The RPM side, which has no such distinction