CompTIA Linux+ Linux Installation and 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 CompTIA Linux+ Linux Installation and Package Management flashcards as text
Which command would a sysadmin use to find which RPM package owns the file /usr/bin/ssh?
Answer: rpm -qf /usr/bin/ssh
`rpm -qf` (query file) reports which installed package owns the specified file path.
In the context of Linux package management, what does 'dependency hell' refer to?
Answer: Conflicts where installing package A requires version X of B, but another package needs version Y of B
Dependency hell occurs when packages require mutually incompatible versions of the same library, making installation or upgrades difficult.
Which Flatpak command installs an application from the Flathub remote repository?
Answer: flatpak install flathub
`flatpak install flathub ` installs the specified application from the Flathub remote, which must be previously added.
Which file must an administrator edit to permanently disable a dnf/yum repository without deleting it?
Answer: Set enabled=0 in the .repo file
Setting `enabled=0` inside the repository's .repo file disables it while preserving the configuration for future use.
A snap package runs in a confined sandbox. Which command grants a snap additional permissions (interfaces)?
Answer: snap connect : :
`snap connect` links a snap's plug to a slot, granting access to system interfaces like camera, network, or removable media.
Which command shows the transaction history of dnf, listing past installs, upgrades, and removals?
Answer: dnf history
`dnf history` displays a numbered list of past dnf transactions and allows administrators to undo or redo them.
When using `make` to compile software, what file does `make` read by default to determine build instructions?
Answer: Makefile
`make` reads a file named `Makefile` (or `makefile`) in the current directory by default to find build targets and rules.