AptitudeSurvivalGuide

Differences between revisions 12 and 13
Revision 12 as of 2005-08-24 05:36:37
Size: 3169
Editor: adsl-69-152-229-9
Comment: trivial number agreement
Revision 13 as of 2005-08-24 05:55:16
Size: 3039
Editor: adsl-69-152-229-9
Comment: removed useless search terms
Deletions are marked like this. Additions are marked like this.
Line 68: Line 68:
 '''~g''' - matches uninstalled packages, and packages marked for automatic removal.

 '''~i''' - matches installed packages

Introduction

Aptitude can give you fine grained package management, and will give you an easily traversed map of the ubuntu packages available to you. This page is meant to be a quick reference to aptitude's interactive mode, and should be enough for you to get started. Aptitude's manuals are linked under Further Information, and links to other useful documentation are welcomed.

The startup view for aptitude displays a list of the top level groups.

Key commands available when a group is selected

  • [ - Expand the currently selected group, and all its subgroups

    ] - Collapse the currently selected group, and all its subgroups

    Enter - Expand or collape the currently selected group.

Key commands available when a package is selected

  • d - view the package dependencies (packages that this package uses)

    r - view the reverse dependencies (packages that use this package)

    Shift-c - download and view the changelog

    Enter - view information about the selected package

Key commands available everywhere

  • u - update the package lists

    j - move down one line

    k - move up one line

    q - retreat to the previous view (and exit aptitude if at the top view)

The navigation keys (PageUp, Home, PageDown, etc.) work pretty much as expected.

You can navigate through the dependencies of the packages available to you by selecting a dependency in a package's information view, and pressing enter. Rinse, repeat.

Package Management

Artistic use of the available actions can twist your system into just about anything.

Most common actions on a package

  • + (plus) mark package for installation

    - (minus) mark package for removal

    _ (underscore) mark package for purging

    = (equals sign) mark package as held

Committing your actions

  • Press g once to view the marked actions

    Press g a second time to act

Searching for packages

  • / - (forward slash) search for search term or partial package name

    \ - (back slash) repeat last search

    l - (lower case L) limit the view to packages matching the search expression.

Useful search terms

~ is 'tilde'

  • ~b - matches broken packages

    ~c - matches partially uninstalled packages ('configured, but not installed')

    ~ahold - matches held packages

Further information

Ubuntu package organization

  • links needed

Tips

If more than one version is available for a particular package (look at the bottom of the package's information view), apt-cache policy <package> seems to be the best way to see which comes from which repository.

CategoryDocumentation

AptitudeSurvivalGuide (last edited 2008-08-06 16:24:20 by localhost)