What is the difference between the remove and the purge action with the dpkg command?

What is the difference between the remove and the purge action with the dpkg command?

What is the difference between the remove and the purge action with the dpkg command?

A.
-remove removes a package, -purge also removes all packages dependent on it

B.
-remove only removes the program, -purge only removes the config files

C.
-remove removes the program, -purge also removes the config files

D.
-remove removes only the package file itself, -purge removes all files related to the package

Explanation:
-r or -remove remove everything except configuration files. This may avoid having to reconfigure the package if it is reinstalled later. (Configuration files are the files listed in the debian/conffiles control file).-P or-purge removes everything, including configuration files. If-a or-pending is given instead of a package name, then all packages unpacked, but marked to be removed or purged in file /var/lib/dpkg/status, are removed or purged, respectively.



Leave a Reply 0

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