aptitude (program)

From Wikipedia, the free encyclopedia

Jump to: navigation, search

aptitude is a front-end to APT. It displays a list of software packages and allows the user to interactively pick packages to install or remove. It has an especially powerful search system utilizing flexible search patterns. It was initially created for Debian, but has appeared in RPM-based distributions as well (such as Conectiva).

aptitude is based on the ncurses computer terminal library, with which it provides an interface that incorporates some elements commonly seen in graphical user interfaces (GUIs) (such as pull-down menus).

In addition to the ncurses interface, it emulates most apt-get command line options, allowing it to act as a drop-in replacement for some of the apt-get usages.

Contents

aptitude was created in 1999. At the time, two other terminal-based APT front-ends were available: the dselect program, which had been used to install Debian since before APT was created, and the console-apt program, a project that was considered to be the heir apparent to dselect. aptitude was created to experiment with a more object-oriented design than that used in console-apt, in the hope that this would result in a more flexible program with a broader set of features.

Screenshot of aptitude
Screenshot of aptitude

The first public release of aptitude was version 0.0.1 on November 18, 1999. It was very limited: it had the ability to view the list of available packages, but could not actually download or install any packages. By version 0.0.4a, this capability had been added, along with many other improvements; this version was included in Debian 2.2 ("potato").

In late 2000, the entire user interface module was rewritten; a new architecture was created, based on the libsigc++ callback library and concepts from modern widget toolkits such as GTK+ and Qt. This enabled the interface to become much more similar to GUIs than it had been previously, with features such as pull-down menus and pop-up dialogs. One of aptitude's unusual features, a tiny implementation of Minesweeper, was added at this time. The first official aptitude release following this rewrite was 0.2.0. aptitude 0.2.11.1 was released with Debian 3.0 ("Woody"). By this time, the console-apt project (renamed to deity) had been effectively abandoned by its maintainers, and it was removed from Woody.

At the time of writing, aptitude is regarded as the primary terminal-based alternative to dselect, and may even replace it in the near future. Since Debian 3.1 ("Sarge"), aptitude can be used by the installer to select which packages to install. aptitude is a package with its priority set at important, while dselect is still a required one, due to backwards compatibility[citation needed].

Aptitude states that, unlike Advanced Packaging Tool, it "does not have Super Cow Powers". In apt-get "super cow powers" can be found by issuing the command apt-get moo. However, in aptitude issuing moo will give the user a prompt saying there are no easter eggs. However, by issuing aptitude -v moo, then aptitude -vv moo and so on the user will see a series of statements telling them to go away, some ending with a picture not unlike the original apt-get easter egg. Different versions of the program have different sequences. One progression is shown below.

$ aptitude moo
There are no Easter Eggs in this program.
$ aptitude -v moo
There really are no Easter Eggs in this program.
$ aptitude -vv moo
Didn't I already tell you that there are no Easter Eggs in this program?
$ aptitude -vvv moo
Stop it!
$ aptitude -vvvv moo
Okay, okay, if I give you an Easter Egg, will you go away?
$ aptitude -vvvvv moo
All right, you win.

                               /----\
                       -------/      \
                      /               \
                     /                |
   -----------------/                  --------\
   ----------------------------------------------

$ aptitude -vvvvvv moo
What is it?  It's an elephant being eaten by a snake, of course.

This is a reference to The Little Prince.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.