Which command uninstalls a package but keeps its configuration files in case the package is re-installed?
Which command uninstalls a package but keeps its configuration files in case the package is re-installed?
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.
If it helps, you can think of using -r as telling the system to retain the configuration files for that package
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
true, -r: https://phoenixnap.com/kb/dpkg-command
Answer: E