Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 3036  / 1 Year ago, mon, january 9, 2023, 8:55:52

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.


More From » apt

 Answers
3

None of the apt-get or other APT tools will ever break dependencies (except for bugs).



You don't run apt-get autoremove liba, just apt-get autoremove. The whole point of autoremove 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.


[#31249] Tuesday, January 10, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
utschang

Total Points: 357
Total Questions: 120
Total Answers: 119

Location: Croatia
Member since Sat, May 2, 2020
4 Years ago
utschang questions
Mon, Aug 30, 21, 14:09, 3 Years ago
Tue, May 17, 22, 20:44, 2 Years ago
Sun, Jul 11, 21, 23:54, 3 Years ago
Tue, Sep 7, 21, 04:23, 3 Years ago
;