What is the difference between the remove and the purge action with - ProProfs Discuss
Advertisement

What is the difference between the -remove and the -purge action with the dpkgcommand in linux?

Asked by Logan, Last updated: Nov 08, 2021

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

John Smith

John Smith

John Smith
John Smith

Answered Sep 08, 2016

Remove removes the program, -purge also removes the config files--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.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.