0

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?

Envite
  • 153
  • 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 02: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 02 '15 at 17:27
  • -1 | For you have not included any version (text or visual) of the command you have used and the result. – Vlastimil Burián Dec 24 '18 at 10:58
  • Problem is simple and general, not specific to any particular package or dependency, or combination of. It just happens that trying to upgrade packages with aptitude fires this issue: aptitude's resolver always prefers to remove packages instead of upgrading dependencies. – Envite Jan 02 '19 at 15:34

1 Answers1

1

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.

Epskampie
  • 111