LFCS · Question #747
LFCS Question #747: Real Exam Question with Answer & Explanation
The correct answer is A: dpkg -C. The dpkg -C (or dpkg --audit) command is used in Debian-based systems to check the integrity of the installed packages and identify any that are partially installed, providing suggestions for resolution.
Question
Which of the following Debian package system commands will list all partially installed packages and suggest how to get them correctly installed?
Options
- Adpkg -C
- Bapt-get -u
- Cdpkg -Dh
- Ddpkg -l
- Eapt-get -y
Explanation
The dpkg -C (or dpkg --audit) command is used in Debian-based systems to check the integrity of the installed packages and identify any that are partially installed, providing suggestions for resolution.
Common mistakes.
- B.
apt-get -uis used to upgrade packages and does not specifically list partially installed ones or provide fix suggestions. - C.
dpkg -Dhis not a validdpkgoption for listing partially installed packages;-Dis for debugging,-hfor help. - D.
dpkg -llists all installed packages, regardless of their installation status, and doesn't audit for issues. - E.
apt-get -yautomatically answers 'yes' to prompts during package operations, but doesn't list partially installed packages.
Concept tested. Debian package management (dpkg audit)
Reference. https://learn.microsoft.com/en-us/windows-server/administration/linux-reference/linux-commands/dpkg
Topics
Community Discussion
No community discussion yet for this question.