1

I assume the below command does the following (please correct me if I am wrong):

I want to remove the package nginx and the related configuration files. I also want to remove any related package dependencies (that are not used by any other package on the system)

sudo apt autoremove --purge nginx

Question

Does it also remove the configuration files for the related package(s) (dependencies) that are removed from the system?

1

Short Answer : Yes, but not every file related to package is deleted as purge doesn't remove data stored by packages inside the home directory or other special directories.

By Standard defination of Purge:-

Purge - Purge is identical to remove except that packages are removed and purged. Purge meaning that any configuration files are deleted too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.