I want to use apt-get autoremove
to remove liba
for instance, but I'm not sure whether it is smart enough to preserve other dependencies. For instance, if liba
depends on libb
, while libc
also depends on libb
, will
sudo apt-get autoremove liba
remove libb
or not? Thanks in advance.
Best Answer
None of the
apt-get
or other APT tools will ever break dependencies (except for bugs).You don't run
apt-get autoremove liba
, justapt-get autoremove
. The whole point ofautoremove
is that it discovers what there is to remove.When you run
apt-get autoremove
, check the list of packages to make sure you aren't relying on any of the packages that it will remove. A package that you use all the time could have been pulled in as a dependency of another package without you having noticed that.