101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 67


When removing a package on a system using dpkg package management, which dpkg option ensures configuration files are removed as well?

Show Answer
Correct Answer: B

To remove a package along with its configuration files using dpkg, the correct option is --purge. The --remove option only removes the package files but leaves the configuration files behind, whereas --purge ensures that all related files, including configuration files, are removed from the system.

Discussion

2 comments
Sign in to comment
CuriousLinuxCatOption: B
Jul 24, 2021

Correct. -r will remove package but keep config files. -p --purge will remove all including config files.

AmycertOption: B
Feb 6, 2023

purge. very easy