[Q] Removing/deep cleanup of installed package doesn't work as expected. (remove, purge, autoremove)

deepdive@lemmy.world to Linux@lemmy.ml – 18 points –

Hi everyone :)

After installing the emacs package and trying to remove it afterwards:

sudo apt remove --purge --autoremove emacs

It only removed that package and not the other dependencies installed with it (emacs-gtk, emacs-common...). I had to manually remove them one-by-one.

Isn't that command supposed:

  • remove package
  • it's configuration files
  • remove unused packages automatically installed ?

What am I missing here?

Also after reading the Stupid things you've done that broke your Linux installation post, I read a lot of people messing up their debian system after using the above command... So I assume that's not the correct way of doing things in Linux?

Some insight from experienced user would be great :)

2

No comments yet. You could be first!