Donnerstag, 8. November 2007

aptitude safe-upgrade

Unter Ubuntu 7.10 "Gutsy" bin ich gerade nach einem "sudo aptitude upgrade" über folgende Meldung gestolpert:

$ aptitude upgrade
W: The "upgrade" command is deprecated; use "safe-upgrade" instead.

Was zum Teufel ist "safe-upgrade"?

Die man-Page kennt "safe-upgrade" nicht, aber die Lösung steht in /usr/share/doc/aptitude/README

aptitude safe-upgrade

This command will upgrade as many packages as it can upgrade without removing existing packages or installing new ones.

It is sometimes necessary to remove or install one package in order to upgrade another; this command is not able to upgrade packages in such situations. Use the full-upgrade to upgrade those packages as well.


aptitude full-upgrade

Like safe-upgrade, this command will attempt to upgrade packages, but it is more aggressive about solving dependency problems: it will install and remove packages until all dependencies are satisfied. Because of the nature of this command, it is possible that it will do undesirable things, and so you should be careful when using it.

Note

For historical reasons, this command was originally named dist-upgrade, and that name is still recognized by aptitude.

Also:
"aptitude upgrade" heißt jetzt "aptitude safe-upgrade"
und "aptitude dist-upgrade" heißt jetzt "aptitude full-upgrade"
und "Raider" heißt jetzt "Twix" ;-)

Das betrifft:
Ubuntu 7.10 "Gutsy": aptitude 0.4.6.1-1ubuntu3
Debian testing "Lenny": aptitude 0.4.6.1-1.1,
ist also keine Erfindung von Ubuntu.

Keine Kommentare: