4

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?

dohjon
  • 85

1 Answers1

3

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 definition of Purge:-

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

Paul
  • 4,511