b-initals has moved to http://bapoumba.wordpress.com/
XML Feed

Aptitude: actions upgrade and dist-upgrades are deprecated

Version from the gutsy repositories (aptitude has shown some changes. One of them is the replacement of upgrade with safe-upgrade and dist-upgrade with full-upgrade. From man aptitude:

           Upgrades installed packages to their most recent version. Installed
           packages will not be removed unless they are unused (see the
           section “Managing Automatically Installed Packages” in the aptitude
           reference manual); packages which are not currently installed will
           not be installed.

           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 command to upgrade as many
           packages as possible.

           Upgrades installed packages to their most recent version, removing
           or installing packages as necessary. This command is less
           conservative than safe-upgrade and thus more likely to perform
           unwanted actions. However, it is capable of upgrading packages that
           safe-upgrade cannot upgrade.

           This command was originally named dist-upgrade for historical
           reasons, and aptitude still recognizes dist-upgrade as a synonym
           for full-upgrade.

Please note that dist-upgrade will still work as usual, and that you will get this message when upgrading:

isabella@yeti:~ $ sudo aptitude upgrade
[sudo] password for isabella:
W: The "upgrade" command is deprecated; use "safe-upgrade" instead.


UF thread
Bug related to auto-completion in bash with new aptitude actions
Previous blog entry with a tutorial about aptitude

2 Responses to “Aptitude: actions upgrade and dist-upgrades are deprecated”

  1. K.Mandla Says:

    Thanks for pointing this out. I wasn’t aware this was changing.

  2. bapoumba Says:

    You’re welcome, K.Mandla!

    I actually found out in the UF thread the day aptitude got upgraded, and tried it out on gutsy (I did not blog about it right away, and then sort of forgot about it…). Autocompletion still does not work in bash, but I had no time to look more seriously at the fix in the bug report.

Leave a Reply

You must be logged in to post a comment.

b-initials is powered by WordPress and a Fluid-Web-1 modified theme

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 2.5 License.