PrepAway - Latest Free Exam Questions & Answers

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?

PrepAway - Latest Free Exam Questions & Answers

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

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


Leave a Reply