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.
--cleanis not a standard option fordpkgpackage removal;apt-get cleanis used to remove retrieved package files from the local repository cache. - B.
--deleteis not a standarddpkgoption for removal; the standard option for removal isdpkg -rordpkg --remove. - D.
removeordpkg --removeremoves 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.