Software Package Management Flashcards
7 cards from real LFCS Certification practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 7 Software Package Management flashcards as text
Which command lists all files installed by a specific RPM package named 'nginx'?
Answer: rpm -ql nginx
The `rpm -ql` command lists all files that belong to the specified installed package.
On a Debian-based system, which command shows the installation candidate version of a package before installing it?
Answer: apt-cache policy
`apt-cache policy` displays version priorities and the installation candidate from configured repositories.
What does the `yum history undo ` command do?
Answer: Reverts a specific yum transaction by its ID
`yum history undo ` reverses the changes made by the transaction with the specified ID.
Which file in a Debian package contains post-installation scripts?
Answer: postinst
The `postinst` maintainer script runs automatically after a package's files are unpacked.
How do you configure a system to use a local directory as a YUM repository?
Answer: Create a .repo file in /etc/yum.repos.d/ with baseurl=file:///path
A .repo file with a file:// URI in /etc/yum.repos.d/ tells YUM to use the local directory as a package source.
Which dpkg command extracts the contents of a .deb file without installing it?
Answer: dpkg-deb -x package.deb /target
`dpkg-deb -x` extracts the data files from a .deb archive into a target directory without running scripts.
What is the purpose of the `createrepo` command?
Answer: Generates metadata for a directory of RPM packages to make it a YUM repository
`createrepo` creates the repodata/ directory with XML metadata that YUM/DNF requires to use a directory as a repository.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- docs.linuxfoundation.org — Renewal, score release, exam format, passing score · verified Oct 2026
- training.linuxfoundation.org — Test delivery, eligibility, fees, registration deadline, time limit, score validity · verified Oct 2026