What command will uninstall a package but leave its configuration files in case a package is re-installed?

What command will uninstall a package but leave its configuration files in case a package is re-installed?

What command will uninstall a package but leave its configuration files in case a package is re-installed?

A.
none, no command will do this

B.
dpkg -s pkgname

C.
dpkg -L pkgname

D.
dpkg -P pkgname

E.
dpkg -r pkgname

Explanation:
Option -r, –remove removes everything except configuration files.
Use option -R, –purge to remove packages completely.
-L lists all files for an installed package
-s displays the status of a package



Leave a Reply 1

Your email address will not be published. Required fields are marked *


GG

GG

Correction:
Use option -P, –purge to remove packages completely.
===