3

Both the commands aptitude full-upgrade and aptitude safe-upgrade are documented, including the dist-upgrade alias for full-upgrade.

However, simply aptitude upgrade will also upgrade the system in some way...which does it default to? Also how would I find this for myself? man aptitude upgrade doesn't help.

YPCrumble
  • 26,610
  • 23
  • 107
  • 172
  • 2
    As far as I can see, aptitude upgrade is deprecated and is equivalent to: aptitude update aptitude safe-upgrade It seems that in software world there usually is the "lesser evil" rule working - simpler term always means softer usage and less changes. – adomas.m Apr 04 '16 at 17:31

1 Answers1

6

As can be seen in the source-code (but not the docs), upgrade is indeed an alias for safe-upgrade:

else if(!strcasecmp(argv[0], "full-upgrade") ||
  !strcasecmp(argv[0], "dist-upgrade"))
{
   default_action = cmdline_upgrade;
   // [...]
   upgrade_mode = full_upgrade;
   // [...]
   resolver_mode = resolver_mode_full;
}
else if(!strcasecmp(argv[0], "safe-upgrade") ||
  !strcasecmp(argv[0], "upgrade"))
{
   default_action = cmdline_upgrade;
   // [...]
   upgrade_mode = safe_upgrade;
   // [...]
   resolver_mode = resolver_mode_safe;
}
umläute
  • 28,885
  • 9
  • 68
  • 122