Skip to content

Package Manager Tour

You'll install, remove, search, update and investigate software from the terminal with apt, dnf or pacman, until the app store feels like the slow way.

About

The package manager is the reason you'll rarely download an installer from a website again. It knows every file on the system and which package put it there, which makes it the best detective tool you have. Apt, dnf, pacman and zypper all do the same six things with different spellings, so learn yours and the others become a lookup table. The trap is pasting a curl-to-bash line from a blog post, which skips all of this and leaves nothing you can remove later.

At a glance

Per requirement
15 XP
Completion bonus
75 XP
Requirements
6
Takes
One evening
Skill level
Beginner (done it a few times)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
On your own

Requirements

  1. 1
    Search for, install and remove one package from the terminal. Pick something small you'd actually use, like htop or a game. Search for it, install it, run it, then remove it and install it again. Check whether the config files come back after remove versus purge (or your distro's equivalent), because that difference is the whole reason both exist. Take a photo of the terminal with the install and the remove both visible. Photo
  2. 2
    Find out which package owns a file and list what's inside a package. Pick a command like ls and ask the package manager which package put it there (dpkg -S, rpm -qf, pacman -Qo). Then list every file that package installed. Take a photo of both outputs. Photo
  3. 3
    Update the whole system and read what changed. Run the full update, then open the package manager's log (/var/log/apt/history.log, /var/log/dnf.log or /var/log/pacman.log) and find the entry for what you just did. Take a photo of the log entry with the date and the number of packages. Photo
  4. 4
    Install one program from Flatpak, Snap or an AppImage, and say why it wasn't in the repos. Some software ships outside the distro, usually because it's newer or proprietary. Install one that way, run it, and find out where it put its files, which won't be where the package manager puts things. Take a photo of the running program and the terminal showing where it lives. Photo
  5. 5
    Clean up orphans and the download cache. Every system collects packages nothing depends on any more. Run the autoremove or orphan command and the cache clean, and note how much disk came back. Take a photo of the cleanup output with df -h below it. Photo
  6. 6
    Hold one package so an update can't touch it. Sometimes a new version breaks something and you need to stay put. Hold the package (apt-mark hold, dnf versionlock, IgnorePkg in pacman.conf), run an update, and show that it stayed. Then release it. Take a photo of the hold in place and the update skipping it. Photo