LFCS · Question #747
Which of the following Debian package system commands will list all partially installed packages and suggest how to get them correctly installed?
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
Options
- Adpkg -C
- Bapt-get -u
- Cdpkg -Dh
- Ddpkg -l
- Eapt-get -y
How the community answered
(14 responses)- A93% (13)
- E7% (1)
Why each option
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.
The `dpkg -C` (or `dpkg --audit`) command scans for packages that have been installed incorrectly, partially, or have other issues. It then reports these issues and often provides guidance on how to fix them, making it suitable for identifying and resolving partially installed packages.
`apt-get -u` is used to upgrade packages and does not specifically list partially installed ones or provide fix suggestions.
`dpkg -Dh` is not a valid `dpkg` option for listing partially installed packages; `-D` is for debugging, `-h` for help.
`dpkg -l` lists all installed packages, regardless of their installation status, and doesn't audit for issues.
`apt-get -y` automatically answers 'yes' to prompts during package operations, but doesn't list partially installed packages.
Concept tested: Debian package management (dpkg audit)
Source: https://learn.microsoft.com/en-us/windows-server/administration/linux-reference/linux-commands/dpkg
Topics
Community Discussion
No community discussion yet for this question.