Differences between revisions 32 and 33
Revision 32 as of 2008-08-24 19:20:48
Size: 3875
Editor: FranklinPiat
Comment: drop "Y2K" statement
Revision 33 as of 2008-09-23 19:49:24
Size: 3883
Editor: ?ivoidwarranties
Comment: simple text and grammar editing.
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Line 4: Line 5:

~+Aptitude+~ is a ["Ncurses"] based WikiPedia:FrontEnd to ["Apt"], the debian package manager. Since it is text based, it is ran from a terminal or a CLI (command line interface). Aptitude has a number of useful features, including:
 ~+Aptitude+~ is a ["Ncurses"] based WikiPedia:FrontEnd to ["Apt"], the debian package manager. Since it is text based, it is ran from a terminal or a CLI (command line interface). Aptitude has a number of useful features, including:
Line 13: Line 13:
 * Score-based and (usually) smarter dependency resolver than apt-get    * Score-based and (usually) smarter dependency resolver than apt-get
Line 17: Line 16:
## If your page gets really long, uncomment this Table of Contents  ## If your page gets really long, uncomment this Table of Contents
Line 20: Line 19:
Line 22: Line 20:

Enter the following from a ["terminal"]:
 . Enter the following from a ["terminal"]:
Line 27: Line 24:
== Use ==
After running it, use:
Line 28: Line 27:
== Use ==
After running it, utilize:

*  F10 to access to the menu and use aptitude. This is the main key.
 * ? for help 
 * The 'up', 'down', 'left', 'right' to navigate.
 * The 'Enter' key, to select
 * F10 to access to the menu and use aptitude. This is the main key.
 * ? for help
 * The 'up', 'down', 'left', 'right' keys to navigate.
 * The 'Enter' key to select
Line 37: Line 33:
Line 42: Line 37:
You can also use aptitude like you was used to use apt-get:  You can also use aptitude like you was used to use apt-get:
Line 49: Line 44:
Line 55: Line 49:
Line 61: Line 54:
Line 67: Line 59:
Line 73: Line 64:
Personally, i still use {{{apt-cache search foo}}} to make an search, the {{{aptitude search foo}}} is slower. But you should try the {{{aptitude search foo}}} way. You should discover that the output is a bit different as of {{{apt-cache}}}, in some case, it may be useful to search for an package and see at the same time if these is already installed or not.
Line 74: Line 66:

Personally, i still use {{{apt-cache search foo}}} to make an search, the {{{aptitude search foo}}} is slower. But you should try the {{{aptitude search foo}}} way. You should discover that the output is a bit different as of {{{apt-cache}}}, in some case, it may be usefull to search for an package and see at the same time if these is already installed or not.

The manual of aptitude is realy an gold mine. We not got to duplicate this useful informations, so please take an look there for futher informations.
The manual of aptitude is really a gold mine. We don't want to duplicate this useful informations, so please take a look there for further information.
Line 80: Line 69:
Line 84: Line 72:
Line 90: Line 79:
Line 94: Line 84:

Line 97: Line 85:
 *Would be nice to make a table out of this:  * Would be nice to make a table out of this:
Line 106: Line 94:

Line 112: Line 98:
and ... ["apt.conf"], ["preferences"], ["sources.list"], ["Aptitude::Parse-Description-Bullets=true"], AptitudeTodo
Line 113: Line 100:
and ... ["apt.conf"], ["preferences"], ["sources.list"], ["Aptitude::Parse-Description-Bullets=true"], ["AptitudeTodo"] ----
 . CategoryQuickPackageManagement

Translations: [:Aptitude:English] - [:fr/Aptitude:Français]


  • Aptitude is a ["Ncurses"] based FrontEnd to ["Apt"], the debian package manager. Since it is text based, it is ran from a terminal or a CLI (command line interface). Aptitude has a number of useful features, including:

  • a mutt-like syntax for matching packages in a flexible manner
  • mark packages as "automatically installed" or "manually installed" so that packages can be auto-removed when no longer required

  • colorful preview of actions about to be taken
  • dselect-like persistence of user actions
  • the ability to retrieve and display the Debian changelog of most packages
  • ["AptCLI"]-like (= apt-get + apt-cache) command line mode ("aptitude install foo")
  • Score-based and (usually) smarter dependency resolver than apt-get

aptitude is also non-fattening, naturally cleansing, and housebroken.

?TableOfContents(2)

Run

  • Enter the following from a ["terminal"]:

aptitude

Use

After running it, use:

  • F10 to access to the menu and use aptitude. This is the main key.
  • ? for help
  • The 'up', 'down', 'left', 'right' keys to navigate.
  • The 'Enter' key to select
  • The '+' or '-' key to install/update or remove a package
  • 'q' to quit

The common use of aptitude in TUI is; run aptitude; press 'u' (update the lists of available packages); press 'U' (Mark all upgradable packages to be upgraded); (search/select some stuff to install, is optional); press 'g' (to see the pending actions and modify if needed); press 'g' (again, to start the download).

Some time when you need to resolve conflicts, you discover that you did an bad choice; you want may be easy 'Cancel pending actions' in the 'Actions' menu, so that you easy can retry.

You can also use aptitude like you was used to use apt-get:

Update the packages list:

aptitude update

Upgrade the packages:

aptitude upgrade

Install foo:

aptitude install foo

Remove bar:

aptitude remove bar

Purge foo:

aptitude purge foo

Personally, i still use apt-cache search foo to make an search, the aptitude search foo is slower. But you should try the aptitude search foo way. You should discover that the output is a bit different as of apt-cache, in some case, it may be useful to search for an package and see at the same time if these is already installed or not.

The manual of aptitude is really a gold mine. We don't want to duplicate this useful informations, so please take a look there for further information.

Package

http://packages.debian.org/aptitude

?Anchor(upgrade)

How to upgrade your distribution

  • Find out current version of Debian that you are running:

cat /etc/debian_version

Example for upgrading sarge to etch or etch 4.0r1 to 4.0r2 ...etc

aptitude update
aptitude dist-upgrade

apt-get to aptitude

  • Would be nice to make a table out of this:

aptitude install foo    was   apt-get install foo
aptitude search foo     was   apt-cache search foo
aptitude remove foo     was   apt-get remove foo
aptitude ~D foo         was   apt-cache rdepends foo
aptitude ?              was   apt-cache policy foo
aptitude ?              was   apt-get source --compile foo

See Also

and ... ["apt.conf"], ["preferences"], ["sources.list"], ["Aptitude::Parse-Description-Bullets=true"], AptitudeTodo



CategoryQuickPackageManagement