3 ms·
It will not automatically remove dependencies that were installed along with a package when that package is removed. I'm guessing this is due to some historical
by bityard 3y ago
It will not automatically remove dependencies that were installed along with a package when that package is removed. I'm guessing this is due to some historical ideology about how `apt-get` was intended to function. I just typically run `apt remove foobar && apt -y autoremove`.
There is also nala, which _does_ automatically remove dependencies when you remove a package: https://github.com/volitank/nala https://github.com/volitank/nala
- dylan604 3y agoIs it aware if another package is using the same dependency, so it only removes the dependency if it is not being used by anything else?
- sigio 3y agoYes, that's what 'apt autoremove' does... remove packages that were installed as a dependancy, but are no longer needed because packages using it have been removed. However, the package could of course still be used by unpackaged software or local scripts.
- deleted 3y ago[deleted]
- Calzifer 3y agoaptitude also auto removes dependent packages and is in Debian stable. It has also a useful 'aptitude why package' to say why a package is installed and a nice TUI (which is optional; for the most part it works very similar to apt).