LPIC-1 Linux Installation and Package Management Practice Question
An administrator needs to install a Debian package file named custom-app.deb that was downloaded from a vendor website. The package has dependencies that are available in the configured repositories. Which command will install the package along with its dependencies?
⚠ Common exam trap
The trap here is assuming that dpkg can resolve dependencies, or that apt can install a local file without specifying the path.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
apt install ./custom-app.deb
The apt command, when given a local .deb file path (e.g., ./custom-app.deb), will install the package and automatically download and install any missing dependencies from configured repositories. This is the preferred method for installing local Debian packages that have dependencies available in repositories. dpkg alone does not handle dependencies.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
dpkg --install --resolve custom-app.deb
Why it's wrong here
The dpkg command does not have a --resolve option. While dpkg can install local packages, it cannot resolve dependencies from repositories. The correct tool for dependency resolution is apt or apt-get. Using dpkg alone would leave missing dependencies uninstalled, requiring a subsequent apt-get install -f to fix.
- ✗
dpkg -i custom-app.deb
Why it's wrong here
The dpkg -i command installs a local .deb file but does not resolve or install dependencies from repositories. If dependencies are missing, the package will be left in an unconfigured state. While it installs the package, it does not automatically fetch required dependencies, so it does not meet the requirement of installing the package along with its dependencies.
- ✗
apt-get install custom-app
Why it's wrong here
This command attempts to install a package named custom-app from the repositories, not the local file. Since the package is not in any configured repository, apt-get will fail to locate it. The local .deb file must be specified with a path, such as ./custom-app.deb, to be installed from the local filesystem.
- ✓
apt install ./custom-app.deb
Why this is correct
The apt command can install local .deb files if the path includes a slash or ./ prefix. When given a local package file, apt will resolve and download any missing dependencies from the configured repositories, then install both the package and its dependencies. This is the recommended method for installing a local .deb with dependency resolution.
Go deeper
Related to this question
About these practice questions
One of 402 original LPIC-1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official LPI exam blueprint
This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.