I've used the search engine but do not manage to find a simple answer to this simple question:

How to avoid aptitude wanting to deinstall tons of packages when a simple upgrade of a single package would suffice?

  • Use apt-get instead? :-) – Faheem Mitha Feb 17 '15 at 21:31
  • Can you give more details on your problem?. Which packages? Which dependencies? – Ortomala Lokni Feb 21 '15 at 17:56
  • It is not about specific dependencies. It is about general aptitude resolver behaviour. It always wants to remove instead of upgrading. – Envite Feb 24 '15 at 2:39
  • @Envite Maybe this is the behavior on your system but this is not always the case. If you want an anwser you must provide more details. – Ortomala Lokni Mar 2 '15 at 17:27
  • -1 | For you have not included any version (text or visual) of the command you have used and the result. – LinuxSecurityFreak Dec 24 '18 at 10:58

Sometimes when aptitude wants to remove a lot of packages is because they are not marked as manual but automatic (indicated with an A).

Automatic packages get autoremoved when they are no longer needed.

You can mark the ones you want to to keep as manual to prevent this. In the menu: package > mark manual.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.