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.
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;
}