LPIC-1 Linux Installation and Package Management Practice Question
Which TWO commands are used to install packages on a Debian-based system? (Choose two.)
⚠ Common exam trap
Candidates often confuse package managers across distributions, mistakenly associating `rpm` or `yum` with Debian systems due to superficial familiarity with Linux package management.
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-get install
B is correct because `apt-get install` is the standard command-line tool for installing packages from Debian repositories, handling dependencies automatically. C is correct because `dpkg -i` installs a local `.deb` package file directly, though it does not resolve 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.
- ✗
pacman -S
Why it's wrong here
This is for Arch Linux.
- ✓
apt-get install
Why this is correct
This installs packages from repositories.
- ✓
dpkg -i
Why this is correct
This installs .deb files.
- ✗
rpm -i
Why it's wrong here
This is for RPM-based systems.
- ✗
yum install
Why it's wrong here
This is for RPM-based systems.
Visual reference
Go deeper
Related to this question
About these practice questions
One of 527 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 by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.