Package Management
Install, query, pin and remove software with apt and dnf, and keep a server patched without surprises.
5 objectives 6 steps about 125 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Explain packages, repositories, dependencies and signed repository metadata in the Debian/Ubuntu (apt) and Fedora/RHEL (dnf) families, and where universal formats such as Snap and Flatpak fit.
- Install, search, query, hold and remove packages, and find which package owns a given file.
- Plan and apply security updates, including kernel updates, required reboots and rollback options.
- Configure repository sources, serve packages from a local repository to hosts without internet access, and recover from an interrupted or conflicting package transaction.
- Build and install a program from source into /usr/local or /opt without clashing with packaged files, and explain why it then misses the security updates a distribution package would receive.
Lesson plan
6 steps, about 125 min · 0 of 5 lessons available so far
- What a package manager guarantees: dependencies, repositories and signatures Concept · 15 min · coming later
- Lab: the same tasks with apt and dnf, side by side Lab · 25 min · coming later
- Beyond the distribution repository: third-party repositories, pinning, Snap and Flatpak Worked example · 20 min · coming later
- Patch management: security updates, reboots and rolling back Concept · 20 min · coming later
- Lab: an offline repository, a broken transaction to repair and a build from source Lab · 30 min · coming later
- Check: package management scenarios Knowledge check · 10 questions
Practise it
On one Debian/Ubuntu VM and one Fedora/RHEL-family VM, install a service from the distribution repository, find the package that owns its configuration file, hold its version, enable automatic security updates, and write a one-page patch procedure that includes how to roll back. Then point a third VM without internet access at a local repository you built, repair a deliberately interrupted install, and build one small tool from source into /opt with a note on how it will be patched.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.