[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: purge --autoremove



didier gaumet wrote:
Le 07/08/2025 à 04:55, Geoff a écrit :


Geoff wrote:
Alex Wahl wrote:
Just double checking my syntax, is the way to get rid of all removed packages with remnant config apt purge --autoremove?

apt autoremove --purge



Oh, now I'm confused, both syntaxes do something, and it's not clear to me what the difference is.

Hello,

If I am not wrong,

apt purge --autoremove $SOMEPACKAGE
  will purge SOMEPACKAGE package and automatically remove its dependencies that are not needed anymore. But leaving intacts the configuration files of these dependencies

while

apt autoremove --purge
  or
apt autopurge
  will purge (including configuration files) all unnecessary packages (packages marked as installed automatically as dependencies of a package that is not installed anymore)


Ah yeah that makes sense, I've also learned about autopurge, can use this to remove unused kernels since dkms leaves bits and pieces behind.


Reply to: