20+ practice questions focused on Linux Installation and Package Management — one of the most tested topics on the Linux Professional Institute Certification Level 1 LPIC-1 exam. Each question includes a detailed explanation so you learn why the right answer is correct.
Start Linux Installation and Package Management PracticeA company maintains a private Debian repository for internal packages. A new package 'internal-tool' version 2.0 has been added to the repository, but when users run 'apt-get update && apt-get install internal-tool', the old version 1.0 is still being offered. What is the most likely cause?
Explanation: The most likely cause is that the repository's Release file has not been regenerated after adding the new package. APT relies on the Release file (and its associated InRelease or Release.gpg) to obtain the current package metadata, including version information. If the Release file is not updated to reflect the new package version 2.0, APT will still see the old metadata and offer version 1.0, even though the package file exists in the repository.
Which TWO of the following commands can be used to list all installed packages on a Debian-based system?
Explanation: Option B, `apt list --installed`, is correct because the APT front-end's `list` subcommand with the `--installed` filter queries the local dpkg status database and prints every package currently installed on a Debian-based system. Option D, `dpkg -l`, is correct because the low-level dpkg tool's `-l` (list) action reads /var/lib/dpkg/status and outputs all known packages with their install state, showing installed ones with the `ii` flag. Option A, `apt-get check`, only verifies dependency consistency and does not enumerate packages. Option C, `apt-cache showpkg`, displays dependency and reverse-dependency information for a specified package name rather than listing all installed packages. Option E, `dpkg --get-selections`, prints the selection state of packages (e.g., install, deinstall) and is not the standard command for listing installed packages, so it is not among the two marked answers.
Which THREE of the following are valid methods to install a package from a local .deb file?
Explanation: Option C (gdebi package.deb) is correct because gdebi is a Debian tool specifically designed to install local .deb files while automatically resolving and installing their dependencies from configured repositories. Option D (dpkg -i package.deb) is correct because dpkg is the low-level Debian package manager whose -i (install) flag directly installs a local .deb archive, though it does not resolve dependencies on its own. Option E (apt-get install ./package.deb) is correct because modern APT accepts a path to a local .deb file (the ./ prefix signals a file path rather than a repository package name) and installs it while resolving dependencies. Option A (alien -i package.deb) is not a valid method here because alien converts between package formats (e.g., .rpm to .deb) and is not the standard way to install a native .deb file. Option B (rpm -i package.deb) is incorrect because rpm is the Red Hat package manager and cannot install Debian .deb packages.
Based on the exhibit, what does the 'rc' status for the package 'apache2-bin' indicate?
Explanation: In Debian-based package management (dpkg/APT), the 'rc' status code means the package was marked for removal ('r') but its configuration files were left behind ('c'). This occurs when using 'apt-get remove' or 'dpkg -r' without the --purge option, leaving residual config files in /etc or other locations.
You are a Linux administrator for a company that uses a custom RPM-based distribution. The development team has built a new version of the internal tool 'monitor-app' (version 2.0) and placed the RPM package in a local YUM repository located at http://internal.repo/monitor-app-2.0.el7.x86_64.rpm. The repository metadata has been updated using 'createrepo'. On a test server running CentOS 7, you run 'yum update monitor-app' but the system reports 'No packages marked for update'. The currently installed version is 1.0. You verify that the repository is enabled and accessible via 'yum repolist'. What is the most likely cause and the correct course of action?
Explanation: The most likely cause is that the package name in the repository differs from the installed package name (e.g., 'monitor-app' vs. 'monitor-app-2.0'). Running 'yum list available | grep monitor' will reveal the exact package name in the repository, allowing you to install it with the correct name. This is a common scenario when package naming conventions change between versions or when the repository uses a different naming scheme than the installed package.
+15 more Linux Installation and Package Management questions available
Practice all Linux Installation and Package Management questions1. Baseline your knowledge
Start with 10 questions to gauge your current understanding of Linux Installation and Package Management. This tells you whether you need a concept refresher or just practice.
2. Review every explanation
For each question — right or wrong — read the full explanation. Understanding why an answer is correct is more valuable than knowing the answer itself.
3. Focus on exam traps
Linux Installation and Package Management questions on the LPIC-1 frequently use trap wording. Look for subtle differences in answers that test your precision, not just general knowledge.
4. Reach 80% consistently
Do repeated sessions until you score 80%+ three times in a row. Then move to mixed-mode practice to test cross-topic recall under realistic conditions.
The exact number varies per candidate. Linux Installation and Package Management is tested as part of the Linux Professional Institute Certification Level 1 LPIC-1 blueprint. Practicing with targeted Linux Installation and Package Management questions ensures you can handle any format or difficulty that appears.
Yes. Courseiva provides free LPIC-1 practice questions across all exam topics and domains. The platform includes topic-based practice, mock exams, missed-question review, bookmarked questions, and readiness tracking — no account required.
Difficulty is subjective, but Linux Installation and Package Management is a high-priority exam concept tested in multiple ways — direct recall, scenario analysis, and command-output interpretation. Consistent practice is the best way to build confidence.
Launch a full Linux Installation and Package Management practice session with instant scoring and detailed explanations.
Start Linux Installation and Package Management Practice →