Package Management Flashcards
7 cards from real Linux practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Package Management flashcards as text
Which command shows the installation history of packages on an RPM-based system?
Answer: yum history
`yum history` displays a list of all past yum transactions including installs, updates, and removals.
On a Debian system, which file lists the configured APT repositories?
Answer: /etc/apt/sources.list
`/etc/apt/sources.list` (and files in `/etc/apt/sources.list.d/`) define where APT looks for packages.
What does `rpm -V package-name` do?
Answer: Checks installed files against the RPM database
`rpm -V` (verify) compares the installed files of a package against metadata stored in the RPM database to detect changes.
Which `dnf` command would you use to find which package provides the `/usr/bin/python3` binary?
Answer: dnf provides /usr/bin/python3
`dnf provides ` queries which package owns or provides a given file or capability.
What is a key purpose of the `dpkg --get-selections` command?
Answer: Export the list of installed packages
`dpkg --get-selections` outputs all package selections (installed, deinstalled, etc.), commonly used to backup and restore package lists.
Which option makes `apt-get` automatically remove packages that were installed as dependencies but are no longer needed?
Answer: apt-get autoremove
`apt-get autoremove` removes orphaned dependency packages that are no longer required by any installed package.
What does the `zypper` package manager's `dup` subcommand do?
Answer: Performs a distribution upgrade
`zypper dup` (distribution upgrade) upgrades all packages to match the currently enabled repositories, used in openSUSE Tumbleweed rolling releases.