nerdexam
Linux_Foundation

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.

Submitted by paula_co· Apr 18, 2026Essential Commands

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

How the community answered

(14 responses)
  • A
    93% (13)
  • E
    7% (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.

Adpkg -CCorrect

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.

Bapt-get -u

`apt-get -u` is used to upgrade packages and does not specifically list partially installed ones or provide fix suggestions.

Cdpkg -Dh

`dpkg -Dh` is not a valid `dpkg` option for listing partially installed packages; `-D` is for debugging, `-h` for help.

Ddpkg -l

`dpkg -l` lists all installed packages, regardless of their installation status, and doesn't audit for issues.

Eapt-get -y

`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

#Debian package management#dpkg command#Package status#Troubleshooting

Community Discussion

No community discussion yet for this question.

Full LFCS Practice