nerdexam
Linux_FoundationLinux_Foundation

LFCS · Question #824

LFCS Question #824: Real Exam Question with Answer & Explanation

The correct answer is C: --purge. When removing a Debian package, the --purge option for dpkg ensures that all associated configuration files are also removed, unlike a standard remove operation.

Submitted by minji_kr· Apr 18, 2026Essential Commands

Question

When removing a package, which of the following dpkg options will completely remove the files including configuration files?

Options

  • A--clean
  • B--delete
  • C--purge
  • Dremove

Explanation

When removing a Debian package, the --purge option for dpkg ensures that all associated configuration files are also removed, unlike a standard remove operation.

Common mistakes.

  • A. --clean is not a standard option for dpkg package removal; apt-get clean is used to remove retrieved package files from the local repository cache.
  • B. --delete is not a standard dpkg option for removal; the standard option for removal is dpkg -r or dpkg --remove.
  • D. remove or dpkg --remove removes the package binaries but generally leaves configuration files intact, which is not a complete removal.

Concept tested. dpkg package removal with configuration files

Reference. https://manpages.debian.org/dpkg.8

Topics

#dpkg#package management#package removal#configuration files

Community Discussion

No community discussion yet for this question.

Full LFCS PracticeBrowse All LFCS Questions