101-500 Exam QuestionsBrowse all questions from this exam

101-500 Exam - Question 33


Which command uninstalls a package but keeps its configuration files in case the package is re-installed?

Show Answer
Correct Answer: E

The command to uninstall a package but keep its configuration files in case the package is re-installed is 'dpkg -r pkgname'. The '-r' option, also known as '--remove', removes the installed package while retaining its configuration files.

Discussion

4 comments
Sign in to comment
Adam_HOption: E
Jan 3, 2023

If it helps, you can think of using -r as telling the system to retain the configuration files for that package

kleverOption: E
Oct 11, 2022

It is the correct answer, according to man page the -r, --remove Remove an installed package. This removes everything except conffiles, which may avoid having to reconfigure the package if it is reinstalled later

blk_542Option: E
Nov 17, 2022

true, -r: https://phoenixnap.com/kb/dpkg-command

NinymoOption: E
Mar 24, 2024

Answer: E