home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / aptitude / README < prev   
Encoding:
Text File  |  2006-08-23  |  248.4 KB  |  5,906 lines

  1.  
  2.  
  3. aptitude user's manual
  4.  
  5.  
  6. Version 0.4.1
  7.  
  8.  
  9. Daniel Burrows
  10.  
  11. <dburrows@debian.org>
  12.  
  13. Copyright ⌐ 2004 Daniel Burrows
  14.  
  15. This manual is free software; you can redistribute it and/or modify it under the
  16. terms of the GNU General Public License as published by the Free Software
  17. Foundation; either version 2 of the License, or (at your option) any later
  18. version.
  19.  
  20. This manual is distributed in the hope that it will be useful, but WITHOUT ANY
  21. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  22. PARTICULAR PURPOSE. See the GNU General Public License for more details.
  23.  
  24. You should have received a copy of the GNU General Public License along with
  25. this manual; if not, write to the Free Software Foundation, Inc., 59 Temple
  26. Place, Suite 330, Boston, MA 02111-1307 USA
  27.  
  28. --------------------------------------------------------------------------------
  29. Table of Contents
  30.  
  31.  
  32.  
  33.   Introduction
  34.  
  35.  
  36.         What is this aptitude thing, anyway?
  37.  
  38.         What is a package manager?
  39.  
  40.         What is the apt system?
  41.  
  42.         How can I get aptitude?
  43.  
  44.  
  45.               Pre-built aptitude packages, or, ``What 99% of Users Should Do''
  46.  
  47.               Building aptitude from source code
  48.  
  49.               Getting aptitude from darcs
  50.  
  51.  
  52.  
  53.   1. Getting Started
  54.  
  55.  
  56.         Using aptitude
  57.  
  58.  
  59.               aptitude Basics
  60.  
  61.               Navigating the aptitude package list
  62.  
  63.               Finding packages by name
  64.  
  65.               Managing packages
  66.  
  67.               Updating the package list and installing packages
  68.  
  69.  
  70.         Using aptitude from the command line
  71.  
  72.  
  73.   2. aptitude Reference Guide
  74.  
  75.  
  76.         The aptitude UI
  77.  
  78.  
  79.               Using the menus
  80.  
  81.               Menu commands
  82.  
  83.               Working with multiple views
  84.  
  85.               Becoming root
  86.  
  87.  
  88.         Managing packages
  89.  
  90.  
  91.               Managing the package list
  92.  
  93.               Accessing package information
  94.  
  95.               Modifying package states
  96.  
  97.               Solving Dependency Problems
  98.  
  99.               Downloading, installing, and removing packages
  100.  
  101.               Understanding and managing package trust
  102.  
  103.               Managing automatically installed packages
  104.  
  105.  
  106.         Search Patterns
  107.  
  108.         Customizing aptitude
  109.  
  110.  
  111.               Customizing the Package List
  112.  
  113.               Customizing keybindings
  114.  
  115.               Customizing text colors and styles
  116.  
  117.               Customizing the display layout
  118.  
  119.               Configuration file reference
  120.  
  121.               Themes
  122.  
  123.  
  124.         Playing Minesweeper
  125.  
  126.  
  127.   3. aptitude FAQ
  128.  
  129.   4. Credits
  130.  
  131.   I. aptitude command-line reference
  132.  
  133.  
  134.         aptitude - high-level interface to the package manager
  135.  
  136.  
  137. List of Figures
  138.  
  139.  
  140.  
  141.   2.1. Commands available in the Actions menu
  142.  
  143.   2.2. Commands available in the Undo menu
  144.  
  145.   2.3. Commands available in the Package menu
  146.  
  147.   2.4. Commands available in the Resolver menu
  148.  
  149.   2.5. Commands available in the Search menu
  150.  
  151.   2.6. Commands available in the Options menu
  152.  
  153.   2.7. Commands available in the Views menu
  154.  
  155.   2.8. Commands available in the Help menu
  156.  
  157.   2.9. Values of the ``current state'' flag
  158.  
  159.   2.10. Values of the ``action'' flag
  160.  
  161.   2.11. Customizable styles in aptitude
  162.  
  163.  
  164. Introduction
  165.  
  166. Table of Contents
  167.  
  168.  
  169.  
  170.   What is this aptitude thing, anyway?
  171.  
  172.   What is a package manager?
  173.  
  174.   What is the apt system?
  175.  
  176.   How can I get aptitude?
  177.  
  178.  
  179.         Pre-built aptitude packages, or, ``What 99% of Users Should Do''
  180.  
  181.         Building aptitude from source code
  182.  
  183.         Getting aptitude from darcs
  184.  
  185.  
  186.  
  187.   ``Master, does Emacs possess the Buddha nature?'' the novice asked.   
  188.  
  189.   ``I don't see why not,'' replied the master. ``It's got bloody well
  190.   everything else.'' Several years later, the novice suddenly achieved
  191.   enlightenment.
  192.  
  193.                                                            -- John Fouhy
  194.  
  195.  
  196. Hello, and welcome to the aptitude user's manual! This introductory section
  197. explains what aptitude is and how to get your hands on it; for information on
  198. actually using it, please proceed to Chapter 1, Getting_Started.
  199.  
  200.  
  201. What is this aptitude thing, anyway?
  202.  
  203. aptitude is a featureful package manager for Debian GNU/Linux systems, based on
  204. the renowned apt package management infrastructure. aptitude provides the
  205. functionality of dselect and apt-get, as well as many additional features not
  206. found in either program.
  207.  
  208.  
  209. What is a package manager?
  210.  
  211. A package manager keeps track of what software is installed on your computer,
  212. and allows you to easily install new software, upgrade software to newer
  213. versions, or remove software that you previously installed. As the name
  214. suggests, package managers deal with packages: collections of files that are
  215. bundled together and can be installed and removed as a group.
  216.  
  217. Often, a package is just a particular program. For instance, the instant
  218. messaging client gaim is contained in the Debian package of the same name. On
  219. the other hand, it is common for programs to consist of several interrelated
  220. packages. For instance, the gimp image editor consists not only of the gimp
  221. package, but also of the gimp-data package; in addition, several optional add-on
  222. packages (containing esoteric data, documentation, and so on) are also
  223. available. It is also possible for several small, related programs to be
  224. contained in a single package: for instance, the fileutils package contains
  225. several common Unix commands, such as ls, cp, etc.
  226.  
  227. Some packages require other packages in order to function. In Debian, packages
  228. can depend upon, recommend, suggest, or conflict with other packages.
  229.  
  230.  
  231. * If a package A depends upon another package B, then B is required for A to
  232.   operate properly. For instance, the gimp package depends upon the gimp-data
  233.   package in order to ensure that the GIMP graphics editor can access its
  234.   critical data files.
  235.  
  236. * If a package A recommends another package B, then B provides important
  237.   additional functionality to A that will be desired in most circumstances. For
  238.   instance, the mozilla-browser package recommends the mozilla-psm package,
  239.   which adds support for secure data transfers to the Mozilla Web browser. While
  240.   mozilla-psm is not strictly required for Mozilla to function, most users will
  241.   want Mozilla to support the secure transmission of confidential data (such as
  242.   credit card numbers).
  243.  
  244. * If a package A suggests another package B, then package B provides
  245.   functionality that may enhance A, but is not needed in most cases. For
  246.   instance, the kmail package suggests the gnupg package, which contains
  247.   encryption software that can be used by KMail.
  248.  
  249. * If a package A conflicts with another package B, then the two packages cannot
  250.   be installed at the same time. For instance, fb-music-hi conflicts with fb-
  251.   music-low because they provide alternate sets of music for the game Frozen
  252.   Bubble.
  253.  
  254.  
  255. The job of a package manager is to present an interface which assists the user
  256. in managing the collection of packages installed on his or her system. aptitude
  257. provides such an interface by building on the apt package management system.
  258.  
  259.  
  260. What is the apt system?
  261.  
  262. Being able to install and remove packages is great, but the basic software for
  263. doing this (known as dpkg) does exactly that and nothing more. This is fine if
  264. you download one or two packages by hand, but quickly becomes cumbersome when
  265. you are trying to manage a large number of packages. Furthermore, if your shiny
  266. new package requires software you haven't yet installed, you have to download
  267. the newly required software by hand. And if you later decide to remove the no-
  268. longer-shiny package, these extra packages will linger on your system, consuming
  269. hard drive space, unless you manually remove them.
  270.  
  271. Obviously, all of this manual labor is a tedious chore, and so most package
  272. management systems come with software which takes care of some or all of it for
  273. you. apt is a common base on which to build these programs: in addition to
  274. aptitude, programs such as synaptic and apt-watch make use of apt.
  275.  
  276. apt works by keeping a list of the packages that can be downloaded from Debian
  277. on your computer. This list is used to find packages that need to be upgraded
  278. and to install new packages. apt can also solve many dependency problems
  279. automatically: for instance, when you choose to install a package, it will find
  280. any additional required packages and install those as well.
  281.  
  282. When working with a package manager based on apt, such as aptitude, you will
  283. typically perform three basic tasks: you will update the list of packages that
  284. are available by downloading new lists from the Debian servers, you will select
  285. which packages should be installed, upgraded, or removed, and finally, you will
  286. commit your selections by actually performing the installations, removals, etc.
  287.  
  288. apt-based package managers read the list of ``sources'' -- repositories of
  289. Debian packages -- from the file /etc/apt/sources.list. The format and contents
  290. of this file are beyond the scope of this document, but are described in the
  291. manual page sources.list(5).
  292.  
  293.  
  294.  How can I get aptitude?
  295.  
  296. In case you are reading this manual but aptitude is not yet installed on your
  297. system, this section explains how to correct this unfortunate situation. Most
  298. people should head straight for the section on binary packages.
  299.  
  300.  
  301. Pre-built aptitude packages, or, ``What 99% of Users Should Do''
  302.  
  303. Pre-built, or ``binary'' packages are the easiest and most common way to install
  304. aptitude. You should only attempt a source install if binary packages are not
  305. available for some reason, or if you have unusual needs that are not met by
  306. binary packages.
  307.  
  308. If you are using a Debian system, execute the following command as root: apt-get
  309. install aptitude. If you are not using a Debian system, your system provider
  310. might have created a pre-built package of aptitude; if you are not sure, you can
  311. contact them for further suggestions.
  312.  
  313.  
  314. Building aptitude from source code
  315.  
  316. You also can build aptitude from source; however, this is probably not a useful
  317. exercise unless apt is already available on your system. If it is, you can
  318. install aptitude from source with the following steps:
  319.  
  320.  
  321.   1. Install the following pieces of software:
  322.  
  323.  
  324.      * A C++ compiler, such as g++.
  325.  
  326.      * The development files for apt, typically available in a package with a
  327.        name like libapt-pkg-dev.
  328.  
  329.      * The libsigc++-2.0 library, available from http://libsigc.sourceforge.net.
  330.  
  331.      * Last but not least, download the most recent aptitude source code,
  332.        available from http://packages.debian.org/unstable/admin/aptitude.
  333.        (scroll to the bottom of the page and download the ``.orig.tar.gz'' file)
  334.  
  335.  
  336.  
  337. Once all the required components are available, open a terminal and execute the
  338. command tar zxf aptitude-0.4.1.tar.gz to unpack the source code. Once the source
  339. code is unpacked, type cd aptitude-0.4.1 && ./configure && make to compile
  340. aptitude. If this succeeds, make sure you are the root user (by using su, for
  341. instance), then type make install to install aptitude on your computer. Once
  342. aptitude is successfully installed, typing aptitude at a command prompt should
  343. start the program.
  344.  
  345.  
  346. Getting aptitude from darcs
  347.  
  348. If you want to test the latest bleeding-edge source code or to otherwise help
  349. aptitude development, you can download unreleased aptitude source code using
  350. darcs. Install darcs (available from http://www.darcs.net) and execute the
  351. command darcs get http://people.debian.org/~dburrows/darcs/aptitude to retrieve
  352. the most recent source code. Once the source code is available on your computer,
  353. you can cd into it and type darcs pull to update it with any changes made to the
  354. main repository.
  355.  
  356. To build aptitude from the darcs repository, you must have the programs autoconf
  357. and automake installed. Type sh ./autogen.sh to generate the files needed to
  358. compile aptitude, then execute make and make install.
  359.  
  360.  
  361.  [Warning]  Warning
  362.  
  363.             The aptitude darcs repository is an active development tree; it will
  364.             change as bugs are fixed and features are added, and there is
  365.             absolutely no guarantee that it will even compile, let alone run
  366.             properly! Bug reports are welcome, but be aware that you use
  367.             development code entirely at your own risk![1]
  368.  
  369.  
  370.  
  371.  
  372. --------------------------------------------------------------------------------
  373. [1]Of course, all free software is used at your own risk, but the risk involved
  374. in using an active development tree is much higher.
  375.  
  376.  
  377. Chapter 1. Getting Started
  378.  
  379. Table of Contents
  380.  
  381.  
  382.  
  383.   Using aptitude
  384.  
  385.  
  386.         aptitude Basics
  387.  
  388.         Navigating the aptitude package list
  389.  
  390.         Finding packages by name
  391.  
  392.         Managing packages
  393.  
  394.         Updating the package list and installing packages
  395.  
  396.  
  397.   Using aptitude from the command line
  398.  
  399.  
  400.   A journey of a thousand miles must begin with a single step.  
  401.  
  402.                                                       -- Lao Tsu
  403.  
  404.  
  405. aptitude is a sizeable program with many features, and it can be a bit
  406. overwhelming for new users to get acquainted with it. This chapter does not
  407. exhaustively describe the features of aptitude (see Chapter 2, aptitude
  408. Reference_Guide for that), but it does provide a walk-through of the basic and
  409. most commonly used features of the program.
  410.  
  411.  
  412. Using aptitude
  413.  
  414. This section describes how to use the visual interface of aptitude. For
  415. information on using aptitude's command-line interface, see the section called
  416. ``Using aptitude from the command line''.
  417.  
  418.  
  419. aptitude Basics
  420.  
  421. To run aptitude, open your favorite text terminal, and at the command line,
  422. type:
  423.  
  424. foobar$ aptitude
  425.  
  426. Once the cache is loaded (this may take some time on slower machines), the main
  427. aptitude screen should appear:
  428.  
  429.  Actions  Undo  Package  Search  Options  Views  Help
  430. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  431. aptitude 0.2.14.1
  432. --- Installed Packages
  433. --- Not Installed Packages
  434. --- Obsolete and Locally Created Packages
  435. --- Virtual Packages
  436. --- Tasks
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443. These packages are currently installed on your computer.
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452. As you can see, the main screen of aptitude is divided into several regions. The
  453. blue line at the top of the terminal is the menu bar, and the blue lines below
  454. it are informational messages describing some important commands. The black
  455. space that follows is the list of all available packages, in which some groups
  456. of packages are listed. The currently selected group (``Installed Packages'') is
  457. highlighted, and its description is shown in the lower black space.
  458.  
  459. As the top line of the screen suggests, you can access aptitude's menus by
  460. pressing Control+t; you can also click the mouse on a menu title if your system
  461. supports it. Pressing Control+t will open the Actions menu:
  462.  
  463.  Actions  Undo  Package  Search  Options  Views  Help
  464. +-------------------------+  u: Update  g: Download/Install/Remove Pkgs
  465. |Install/remove packages g|
  466. |Update package list     u|
  467. |Forget new packages     f|
  468. |Clean package cache      |eated Packages
  469. |Clean obsolete files     |
  470. |Mark Upgradable         U|
  471. |Play Minesweeper         |
  472. |Become root              |
  473. +-------------------------+
  474. |Quit                    Q|
  475. +-------------------------+
  476. These packages are currently installed on your computer.
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.  
  486. Perform all pending installs and removals
  487.  
  488. Use the arrow keys and Enter to select menu items (or, if your system supports
  489. it, click on them with a mouse); to close the menu without selecting anything,
  490. press Control-t again. The currently highlighted menu item is explained at the
  491. bottom of the screen. If a menu item can be activated using a keyboard shortcut,
  492. the shortcut is displayed in the menu: for instance, the command ``Update
  493. package list'' can be activated by pressing u.
  494.  
  495. At any time, you can press ? to display an on-line reference to the available
  496. keyboard shortcuts.
  497.  
  498.  
  499. Navigating the aptitude package list
  500.  
  501. The list of packages is the primary interface to aptitude. When aptitude starts,
  502. the list is organized into a number of groups, as can be seen in the following
  503. screen shot:
  504.  
  505.  Actions  Undo  Package  Search  Options  Views  Help
  506. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  507. aptitude 0.2.14.1
  508. --- Installed Packages
  509. --- Not Installed Packages
  510. --- Obsolete and Locally Created Packages
  511. --- Virtual Packages
  512. --- Tasks
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519. These packages are currently installed on your computer.
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  [Note]  Note
  530.  
  531.          Empty groups of packages are automatically hidden by aptitude, so you
  532.          may see more or less groups than appear in this screen shot.
  533.  
  534.  
  535. In the screen shot above, the first group (``Installed Packages'') is
  536. highlighted to indicate that it is currently selected. You can move the
  537. selection up and down with the arrow keys; note that the description below the
  538. package list changes as you do so. To ``expand'' a group, press Enter while the
  539. group is selected:
  540.  
  541.  Actions  Undo  Package  Search  Options  Views  Help
  542. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  543. aptitude 0.2.14.1
  544. --\ Installed Packages
  545.   --- admin - Administrative utilities (install software, manage users, etc)
  546.   --- base - The Debian base system
  547.   --- devel - Utilities and programs for software development
  548.   --- doc - Documentation and specialized programs for viewing documentation
  549.   --- editors - Text editors and word processors
  550.   --- electronics - Programs for working with circuits and electronics
  551.   --- games - Games, toys, and fun programs
  552.   --- gnome - The GNOME Desktop System
  553.   --- graphics - Utilities to create, view, and edit graphics files
  554.  
  555. These packages are currently installed on your computer.
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564. As you can see, the ``Installed Packages'' group has been expanded to reveal its
  565. contents: it contains a number of subgroups, loosely defined by what types of
  566. software they contain. Expanding the ``admin'' section by selecting it and
  567. pressing Enter, we see:
  568.  
  569.  Actions  Undo  Package  Search  Options  Views  Help
  570. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  571. aptitude 0.2.14.1
  572. --\ Installed Packages
  573.   --\ admin - Administrative utilities (install software, manage users, etc)
  574.     --- main - The main Debian archive
  575.   --- base - The Debian base system
  576.   --- devel - Utilities and programs for software development
  577.   --- doc - Documentation and specialized programs for viewing documentation
  578.   --- editors - Text editors and word processors
  579.   --- electronics - Programs for working with circuits and electronics
  580.   --- games - Games, toys, and fun programs
  581.   --- gnome - The GNOME Desktop System
  582.  
  583. Packages in the 'admin' section allow you to perform administrative tasks such
  584. as installing software, managing users, configuring and monitoring your system,
  585. examining network traffic, and so on.
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592. The ``admin'' group contains a single subgroup, the ``main'' Debian archive.
  593. Expanding this group reveals some packages!
  594.  
  595.  
  596.  [Tip]  Tip
  597.  
  598.         To save time, you can use the [ key to expand all the subgroups of a
  599.         group at once. Selecting ``Installed Packages'' and pressing [ would
  600.         have immediately revealed the packages in the screenshot below.
  601.  
  602.  
  603.  Actions  Undo  Package  Search  Options  Views  Help
  604. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  605. aptitude 0.2.14.1
  606. --\ Installed Packages
  607.   --\ admin - Administrative utilities (install software, manage users, etc)
  608.     --\ main - The main Debian archive
  609. i     acpid                                                1.0.3-19   1.0.3-19
  610. i     alien                                                8.44       8.44
  611. i     anacron                                              2.3-9      2.3-9
  612. i     apt-show-versions                                    0.07       0.07
  613. i A   apt-utils                                            0.5.25     0.5.25
  614. i     apt-watch                                            0.3.2-2    0.3.2-2
  615. i     aptitude                                             0.2.14.1-2 0.2.14.1-2
  616.  
  617. The Debian distribution consists of packages from the 'main' section. Every
  618. package in 'main' is Free Software.
  619.  
  620. For more information about what Debian considers to be Free Software, see
  621. http://www.debian.org/social_contract#guidelines
  622.  
  623.  
  624.  
  625.  
  626. In addition to the arrow keys, you can move the selection through the package
  627. list a page of information at a time using the Page Up and Page Down keys.
  628.  
  629.  
  630.  [Tip]  Tip
  631.  
  632.         When there is more information in the lower half of the display than
  633.         fits into the available space, the a and z keys can be used to scroll
  634.         through it.
  635.  
  636.  
  637.  
  638. Finding packages by name
  639.  
  640. To quickly find a package whose name you know, press / to open a search dialog:
  641.  
  642.  Actions  Undo  Package  Search  Options  Views  Help
  643. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  644. aptitude 0.2.14.1
  645. i     frozen-bubble                                        1.0.0-5    1.0.0-5
  646. i A   frozen-bubble-data                                   1.0.0-5    1.0.0-5
  647. i     geekcode                                             1.7.3-1    1.7.3-1
  648. i     gfpoken                                              0.25-3     0.25-3
  649. i     ggz-gnome-client                                     0.0.7-2    0.0.7-2
  650. i     ggz-gtk-client                                       0.0.7-1    0.0.7-1
  651. i     ggz-gtk-game-data                                    0.0.7-2    0.0.7-2
  652. i +--------------------------------------------------------------------------+
  653. i |Search for:                                                               |
  654. i |froz                                                                      |
  655. Po|                             [ Ok ]                             [ Cancel ]|
  656. Fr+--------------------------------------------------------------------------+
  657. attempt to shoot bubbles into groups of the same color to cause them to pop. It
  658. features 100 single-player levels, a two-player mode, music and striking
  659. graphics.
  660.  
  661. This game is widely rumored to be responsible for delaying the Woody release.
  662.  
  663. URL: http://www.frozen-bubble.org/
  664.  
  665. As you can see in the above screen shot, a search for froz finds the frozen-
  666. bubble package. Using aptitude's powerful search language, described in the
  667. section called ``Search Patterns'', it is possible to find packages based on
  668. many complex criteria.
  669.  
  670.  
  671.  [Tip]  Tip
  672.  
  673.         You can search backwards in the package list by pressing \, and you can
  674.         repeat the last search by pressing n after closing the search window.
  675.  
  676.  
  677. Sometimes it is useful to hide all packages except those which meet some
  678. particular criterion. To do this, press l:
  679.  
  680.  Actions  Undo  Package  Search  Options  Views  Help
  681. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  682. aptitude 0.2.14.1
  683. --- Installed Packages
  684. --- Not Installed Packages
  685. --- Obsolete and Locally Created Packages
  686. --- Virtual Packages
  687. --- Tasks
  688.  
  689.  
  690.   +--------------------------------------------------------------------------+
  691.   |Enter the new package tree limit:                                         |
  692.   |apti                                                                      |
  693.   |                             [ Ok ]                             [ Cancel ]|
  694. Th+--------------------------------------------------------------------------+ a
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703. This dialog works exactly like the search dialog, except that instead of
  704. highlighting the next package that matches what you typed into the dialog box,
  705. it hides all packages which don't match. For instance, typing apti into this
  706. dialog box and pressing Enter will hide all packages except those whose names
  707. contain ``apti'':
  708.  
  709.  Actions  Undo  Package  Search  Options  Views  Help
  710. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  711. aptitude 0.2.14.1
  712. --\ Installed Packages
  713.   --\ admin - Administrative utilities (install software, manage users, etc)
  714.     --\ main - The main Debian archive
  715. i     aptitude                                             0.2.14.1-2 0.2.14.1-2
  716. i A   synaptic                                             0.51-1     0.51-1
  717.   --\ x11 - The X window system and related software
  718.     --\ main - The main Debian archive
  719. i     xfree86-driver-synaptics                             0.13.3-1   0.13.3-1
  720. --- Not Installed Packages
  721. --- Virtual Packages
  722.  
  723. These packages are currently installed on your computer.
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733. Managing packages
  734.  
  735. Now that you can move about the list of packages, it's time to start using
  736. aptitude to install and remove packages. In this section you will learn how to
  737. flag packages for installation, deletion, and upgrade.
  738.  
  739.  
  740.  [Tip]  Tip
  741.  
  742.         You can only change your system's setup as the root user. If you want to
  743.         experiment with aptitude, you can safely run it as any user other than
  744.         root without damaging your system in any way. aptitude will tell you
  745.         when you try to do something that only root can do, and if you want to
  746.         continue, you must type root's password.
  747.  
  748.  
  749. All changes to a package are performed by first highlighting it in the package
  750. list, then pressing a key corresponding to the action which should be performed.
  751. The basic action keys [2] are + to install or upgrade a package, - to remove a
  752. package, and = to prevent a package from being automatically upgraded (this is
  753. known as holding the package). These actions are not performed immediately;
  754. aptitude will simply update the package list to show the change that has been
  755. requested.
  756.  
  757. For instance, in the screen shot below, the kaffeine package was selected and +
  758. was pushed. The package is now highlighted in green and the letter ``i'' has
  759. appeared to the left of its name, to indicate that it will be installed; in
  760. addition, an estimate of the amount of space that the package will use is
  761. displayed.
  762.  
  763.  Actions  Undo  Package  Search  Options  Views  Help
  764. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  765. aptitude 0.2.14.1                  Will use 2925kB of disk space  DL Size:
  766. 1375kB
  767.   --\ kde - The KDE Desktop System
  768.     --\ main - The main Debian archive
  769. p     bibletime-i18n                                        <none>     1.4.1-1
  770. p     education-desktop-kde                                 <none>     0.771
  771. p     junior-kde                                            <none>     1.4
  772. piA   kaffeine                                      +2843kB <none>     0.4.3-1
  773. pi    kaffeine-mozilla                              +81.9kB <none>     0.4.3-1
  774. p     karamba                                               <none>     0.17-5
  775. p     kde-devel                                             <none>     4:3.1.2
  776.  
  777. p     kde-devel-extras                                      <none>     4:3.1.2
  778. The K Desktop Environment (development files)
  779. A metapackage containing dependencies for the core development suite of KDE
  780. including kdesdk, qt3-designer, and all core KDE -dev packages.
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  [Tip]  Tip
  790.  
  791.         At any time, you can use Undo->Undo (Control+u) to ``undo'' any change
  792.         to one or more packages. This is very useful if an action has unforseen
  793.         consequences and you want to ``take it back''.
  794.  
  795.  
  796. In addition to actions that affect individual packages, another important action
  797. is available: typing U will attempt to upgrade any packages that can be
  798. upgraded. You should use this command on a regular basis to keep your system up-
  799. to-date.
  800.  
  801.  
  802. Managing Broken Packages
  803.  
  804. Sometimes, changing a package's state will cause dependency relationships to
  805. become unfulfilled; packages with unfulfilled dependencies are said to be
  806. broken. aptitude will warn you when this happens, and explain why it occured.
  807. For instance, here is what happens if I attempt to remove sound-juicer:
  808.  
  809.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  810. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  811. aptitude 0.3.3       #Broken: 1   Will free 48.6MB of disk space
  812. i A   nautilus                                             2.10.1-4   2.10.1-4
  813. i     nautilus-cd-burner                                   2.10.2-1.1 2.10.2-1.1
  814. i A   nautilus-data                                        2.10.1-4   2.10.1-4
  815. i     netspeed                                             0.12.1-1   0.12.1-1
  816. i A   oaf                                                  0.6.10-3   0.6.10-3
  817. i     pybliographer                                        1.2.6.2-1  1.2.6.2-1
  818. i     rhythmbox                                            0.8.8-13   0.8.8-13
  819. i     shermans-aquarium                                    3.0.1-1    3.0.1-1
  820. idA   sound-juicer                                 -1733kB 2.10.1-3   2.10.1-3
  821. GNOME 2 CD Ripper
  822. sound-juicer will be removed.
  823.  
  824.  
  825. The following packages depend on sound-juicer and will be broken by its
  826. removal:
  827.  
  828.  
  829.   * gnome-desktop-environment depends on sound-juicer
  830.  
  831. [1(1)/...] Suggest 2 keeps
  832. e: Examine  !: Apply  .: Next  ,: Previous
  833.  
  834. As you can see, aptitude displays three indicators that something has gone
  835. wrong: first, the number of broken packages is displayed in the upper blue area;
  836. second, the lower half of the display changes to describe broken packages that
  837. are related to the currently highlighted package; third, a bar appears at the
  838. bottom of the screen with a suggestion on how to solve the problem. To quickly
  839. find broken packages in the package list, you can press b or search for ~b.
  840.  
  841.  
  842.  [Note]  Note
  843.  
  844.          The text [1(1)/...] indicates the progress of aptitude's dependency
  845.          resolver. The first number is the solution that you have currently
  846.          selected, and the second one is the number of solutions that aptitude
  847.          has already generated. The presence of the text ``...'' indicates that
  848.          there may be additional solutions beyond the ones generated; if
  849.          aptitude knew for certain that it had generated the only possible
  850.          solution, this indicator would read [1/1].
  851.  
  852.  
  853. To see more information about how aptitude thinks you can solve this problem,
  854. press e. A screen similar to the following will appear:
  855.  
  856.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  857. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  858.                 Packages                          Resolve Dependencies
  859.   --\ Keep the following packages at their current version:
  860.     gstreamer0.8-cdparanoia                           [0.8.10-1 (unstable, now)]
  861.     sound-juicer                                                [2.10.1-2 (now)]
  862.  
  863.  
  864.  
  865.  
  866.  
  867.  
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878. [1(1)/...] Suggest 2 keeps
  879. e: Examine  !: Apply  .: Next  ,: Previous
  880.  
  881. From here, you can see more solutions by pressing . or return to solutions that
  882. you previously examined by pressing ,. To apply the current solution and return
  883. to the package list, press !. For instance, pressing . while the above screen is
  884. displayed results in the following solution being presented:
  885.  
  886.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  887. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  888.                 Packages                          Resolve Dependencies
  889.   --\ Keep the following packages at their current version:
  890.     sound-juicer                                      [2.10.1-3 (unstable, now)]
  891.   --\ Downgrade the following packages:
  892.     gstreamer0.8-cdparanoia          [0.8.11-1 unstable, now -> 0.8.8-3 testing]
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900.  
  901.  
  902.  
  903.  
  904.  
  905.  
  906.  
  907.  
  908. [2(2)/...] Suggest 1 keep,1 downgrade
  909. e: Examine  !: Apply  .: Next  ,: Previous
  910.  
  911. In addition to the basic solution navigation commands, you can press r to
  912. ``reject'' actions of which you disapprove. For instance, the first solution
  913. will cancel the removal of sound-juicer -- the very action we were trying to
  914. perform! By pressing r on the item corresponding to this action, we can tell
  915. aptitude that it should not cancel the removal of sound-juicer in this way.
  916.  
  917.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  918. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  919.                 Packages                          Resolve Dependencies
  920.   --\ Keep the following packages at their current version:
  921.     gstreamer0.8-cdparanoia                           [0.8.11-1 (unstable, now)]
  922. R   sound-juicer                                      [2.10.1-3 (unstable, now)]
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929. GNOME 2 CD Ripper
  930. gnome-desktop-environment depends upon sound-juicer
  931. --\ The following actions will resolve this dependency:
  932.   -> Remove gnome-desktop-environment [1:2.10.2.3 (unstable, testing, now)]
  933. R -> Cancel the removal of sound-juicer
  934.   -> Downgrade sound-juicer [2.10.1-3 (unstable, now) -> 0.6.1-2 (testing)]
  935.  
  936.  
  937.  
  938.  
  939. [1(1)/...] Suggest 2 keeps
  940. e: Examine  !: Apply  .: Next  ,: Previous
  941.  
  942. As you can see, the list item corresponding to keeping sound-juicer at its
  943. current version has turned red and been marked with an ``R'', indicating that it
  944. has been rejected. Solutions that you generate in the future (that is, any
  945. solution that you have not yet viewed) will not include this action, although
  946. solutions that were already generated and contain this action will be available.
  947.  
  948.  
  949.  [Note]  Note
  950.  
  951.          In the above screen image, a description of sound-juicer is displayed
  952.          in the middle of the screen; below it, you can see the dependency that
  953.          caused sound-juicer to be kept at its current version, along with all
  954.          the ways to resolve this dependency that aptitude knows about.
  955.  
  956.  
  957. For instance, if this rejection is imposed immediately after removing sound-
  958. juicer, pressing . retrieves the following solution, skipping the solution that
  959. cancels the installation of sound-juicer and downgrades gstreamer0.8-cdparanoia.
  960.  
  961.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  962. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  963.                 Packages                          Resolve Dependencies
  964.   --\ Remove the following packages:
  965.     gnome-desktop-environment              [1:2.10.2.3 (unstable, testing, now)]
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983. [2(2)/...] Suggest 1 removal
  984. e: Examine  !: Apply  .: Next  ,: Previous
  985.  
  986. Rejections are only applied to newly generated solutions: that is, solutions
  987. that are generated when you press . while viewing the last generated solution.
  988. Previously generated solutions can still contain rejections. You can cancel a
  989. rejection at any time by once again selecting the rejected action and pressing
  990. r; this will permit solutions containing the action to be generated again,
  991. including any solutions that were previously ``skipped''.
  992.  
  993. The opposite of rejecting an action is approving it. To approve an action, just
  994. select it and press a; this forces the problem resolver to choose the action
  995. whenever possible[3]. Approved actions will turn green and will be marked with
  996. ``A'', as in the following screenshot:
  997.  
  998.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  999. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  1000.                 Packages                          Resolve Dependencies
  1001.   --\ Remove the following packages:
  1002. A   gnome-desktop-environment              [1:2.10.2.3 (unstable, testing, now)]
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020. [2(2)/...] Suggest 1 removal
  1021. e: Examine  !: Apply  .: Next  ,: Previous
  1022.  
  1023.  
  1024.  [Important]  Important
  1025.  
  1026.               If you do not resolve any broken dependencies, aptitude will
  1027.               automatically implement its current suggestion when you commit
  1028.               your selections by pressing g. However, it is hard to
  1029.               automatically solve dependency problems, and you may not be happy
  1030.               with the results, so it is generally better to look at what
  1031.               aptitude plans to do before committing your selections.
  1032.  
  1033.  
  1034.  
  1035. Updating the package list and installing packages
  1036.  
  1037. At this point, you know enough about aptitude to actually make modifications to
  1038. your system.
  1039.  
  1040. You should periodically update your list of available packages from the Debian
  1041. servers, to keep track of new packages and new versions of packages. To do this,
  1042. press u. At any time during the download, you can press q to abort it.
  1043.  
  1044. Once you have fresh lists of packages, you can choose the packages to upgrade,
  1045. install, or remove as described in the previous section. To review the actions
  1046. you have requested, press g once. When installing the kaffeine-mozilla package
  1047. (from the previous example), the following screen appears:
  1048.  
  1049.  Actions  Undo  Package  Search  Options  Views  Help
  1050. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  1051. aptitude 0.2.14.1                  Will use 2925kB of disk space  DL Size:
  1052. 1375kB
  1053. --\ Packages being automatically installed to satisfy dependencies
  1054.  
  1055. piA kaffeine                                        +2843kB <none>     0.4.3-1
  1056. --\ Packages to be installed
  1057. pi  kaffeine-mozilla                                +81.9kB <none>     0.4.3-1
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065. These packages are being installed because they are required by another package
  1066. you have chosen for installation.
  1067.  
  1068. If you select a package, an explanation of its current state will appear in this
  1069. space.
  1070.  
  1071.  
  1072.  
  1073.  
  1074. As you can see, aptitude automatically decided to install kaffeine for me
  1075. because kaffeine-mozilla requires it. At this point, I have the choice of either
  1076. continuing with the installation by pressing g, or aborting it by pressing q.
  1077.  
  1078.  
  1079. Using aptitude from the command line
  1080.  
  1081. In addition to its ``visual'' interface described in the previous section,
  1082. aptitude can be used to manage packages directly from the command-line in the
  1083. same way that you would use apt-get. This section covers the most common
  1084. aptitude command-line actions; for more information, see the aptitude command-
  1085. line reference.
  1086.  
  1087. In general, a command-line invocation of aptitude will look like this:
  1088.  
  1089. aptitude action [arguments...]
  1090.  
  1091. action tells aptitude what action it is to take; the remaining arguments are
  1092. used in an option-specific fashion. Typically they will consist of package names
  1093. and command-line switches[4].
  1094.  
  1095. The most important actions are:
  1096.  
  1097.  
  1098.  
  1099.   aptitude update
  1100.  
  1101.       This command updates the package lists, as if you had entered the visual
  1102.       interface and pressed u.
  1103.  
  1104.  
  1105.   aptitude upgrade
  1106.  
  1107.       This command will upgrade as many packages as possible. If there are
  1108.       dependency problems, it will avoid upgrading packages (rather than, for
  1109.       instance, removing them).
  1110.  
  1111.  
  1112.   aptitude dist-upgrade
  1113.  
  1114.       This command will also attempt to upgrade packages, but it is more
  1115.       aggressive about solving dependency problems: it will install and remove
  1116.       packages until all dependencies are satisfied. Because of the nature of
  1117.       this command, it is possible that it will do undesirable things, and so
  1118.       you should be careful when using it.
  1119.  
  1120.  
  1121.   aptitude [ install | remove | purge ] pkg1 [pkg2...]
  1122.  
  1123.       These commands install, remove, or purge[5] the specified packages.
  1124.       ``Installing'' a package which is already installed but can be upgraded
  1125.       will cause it to be upgraded.
  1126.  
  1127.  
  1128.   aptitude search pattern1 [pattern2...]
  1129.  
  1130.       This command searches for packages whose name contains any of the given
  1131.       patterns, printing the result to the terminal. In addition to just being a
  1132.       string of text, each pattern can be a search pattern as described in the
  1133.       section called ``Search Patterns''. [6]
  1134.  
  1135.  
  1136.   aptitude show pkg1 [pkg2...]
  1137.  
  1138.       Prints information about each pkg to the terminal.
  1139.  
  1140.  
  1141. The commands that install, upgrade, and remove packages all accept the parameter
  1142. ``-s'', which stands for ``simulate''. When ``-s'' is passed on the command
  1143. line, the program performs all the actions it would normally perform, but does
  1144. not actually download or install/remove any files.
  1145.  
  1146. aptitude will sometimes present a prompt like this:
  1147.  
  1148. The following NEW packages will be automatically installed:
  1149.   space-orbit-common
  1150. The following NEW packages will be installed:
  1151.   space-orbit space-orbit-common
  1152. 0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  1153. Need to get 3200kB of archives. After unpacking 8413kB will be used.
  1154.  
  1155. Do you want to continue? [Y/n/?]
  1156.  
  1157. In addition to the obvious options of ``Yes'' and ``No'', a number of commands
  1158. are available which can be used to change the information displayed at the
  1159. prompt, or to specify further actions. For instance, typing ``s'' will display
  1160. or hide information about how much space each package will use:
  1161.  
  1162. Do you want to continue? [Y/n/?] s
  1163.  
  1164. Size changes will be shown.
  1165.  
  1166. The following NEW packages will be automatically installed:
  1167.   space-orbit-common <+8020kB>
  1168. The following NEW packages will be installed:
  1169.   space-orbit <+393kB> space-orbit-common <+8020kB>
  1170. 0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  1171. Need to get 3200kB of archives. After unpacking 8413kB will be used.
  1172. Do you want to continue? [Y/n/?]
  1173.  
  1174. Similarly, typing ``d'' will display information about automatically installed
  1175. or removed packages:
  1176.  
  1177. The following NEW packages will be automatically installed:
  1178.   space-orbit-common (D: space-orbit)
  1179. The following NEW packages will be installed:
  1180.   space-orbit space-orbit-common
  1181. 0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  1182. Need to get 3200kB of archives. After unpacking 8413kB will be used.
  1183.  
  1184. This shows that space-orbit-common is being installed because space-orbit
  1185. depends on it. You can see the entire list of possible entries by entering ``?''
  1186. at the prompt.
  1187.  
  1188. If your request violates dependencies in a way that cannot be trivially
  1189. resolved, aptitude will ask you what to do:
  1190.  
  1191. The following packages are BROKEN:
  1192.   libsdl1.2debian
  1193. The following packages will be REMOVED:
  1194.   libsdl1.2debian-all
  1195. .
  1196. .
  1197. .
  1198. The following actions will resolve these dependencies:
  1199.  
  1200. Install the following packages:
  1201. libsdl1.2debian-oss [1.2.7+1.2.8cvs20041007-4.1 (unstable)]
  1202.  
  1203. Score is 19
  1204.  
  1205. Accept this solution? [Y/n/q/?]
  1206.  
  1207. Typing y (or simply pressing enter) will accept the proposed solution. Typing n
  1208. will display the ``next best'' solution:
  1209.  
  1210. Accept this solution? [Y/n/q/?] n
  1211. The following actions will resolve these dependencies:
  1212.  
  1213. Install the following packages:
  1214. libsdl1.2debian-alsa [1.2.7+1.2.8cvs20041007-4.1 (unstable,now)]
  1215.  
  1216. Score is 19
  1217.  
  1218. Accept this solution? [Y/n/q/?]
  1219.  
  1220. Typing q will ``give up'' and quit the program immediately:
  1221.  
  1222. Accept this solution? [Y/n/q/?] q
  1223. Abandoning all efforts to resolve these dependencies.
  1224. Abort.
  1225.  
  1226. As with the main command-line prompt, you can perform a number of additional
  1227. actions, including manually altering the states of packages, from the dependency
  1228. resolution prompt. Type ? to see a complete list.
  1229.  
  1230. For complete documentation of the command-line features of aptitude, see
  1231. aptitude command-line reference.
  1232.  
  1233.  
  1234.  
  1235. --------------------------------------------------------------------------------
  1236. [2] You can also change packages using the Package menu; see the section called
  1237. ``The Package Menu'' for details.
  1238.  
  1239. [3] Approving an action is slightly different from requiring all solutions to
  1240. contain the action; what it means is that given a choice between an approved
  1241. action and a non-approved action, the resolver will always pick the approved
  1242. action. If there are several possible approved actions, all of them will be
  1243. candidates to be placed into the solution.
  1244.  
  1245. [4]A ``switch'' is a letter preceded by a hyphen: for instance, ``-a'', ``-v'',
  1246. etc.
  1247.  
  1248. [5]Purging a package removes the package, as well as all its configuration
  1249. files.
  1250.  
  1251. [6] In fact, the same is true of the commands that take packages as arguments,
  1252. such as install or show.
  1253.  
  1254.  
  1255. Chapter 2. aptitude Reference Guide
  1256.  
  1257. Table of Contents
  1258.  
  1259.  
  1260.  
  1261.   The aptitude UI
  1262.  
  1263.  
  1264.         Using the menus
  1265.  
  1266.         Menu commands
  1267.  
  1268.         Working with multiple views
  1269.  
  1270.         Becoming root
  1271.  
  1272.  
  1273.   Managing packages
  1274.  
  1275.  
  1276.         Managing the package list
  1277.  
  1278.         Accessing package information
  1279.  
  1280.         Modifying package states
  1281.  
  1282.         Solving Dependency Problems
  1283.  
  1284.         Downloading, installing, and removing packages
  1285.  
  1286.         Understanding and managing package trust
  1287.  
  1288.         Managing automatically installed packages
  1289.  
  1290.  
  1291.   Search Patterns
  1292.  
  1293.   Customizing aptitude
  1294.  
  1295.  
  1296.         Customizing the Package List
  1297.  
  1298.         Customizing keybindings
  1299.  
  1300.         Customizing text colors and styles
  1301.  
  1302.         Customizing the display layout
  1303.  
  1304.         Configuration file reference
  1305.  
  1306.         Themes
  1307.  
  1308.  
  1309.   Playing Minesweeper
  1310.  
  1311.  
  1312.   The White Rabbit put on his spectacles. 'Where shall I begin, please your     
  1313.   Majesty?' he asked.
  1314.  
  1315.   'Begin at the beginning,' the King said gravely, 'and go on till you come to
  1316.   the end: then stop.'
  1317.  
  1318.                                             -- Lewis Carrol, Alice in Wonderland
  1319.  
  1320.  
  1321. aptitude is a large program with many features, and it is sometimes difficult to
  1322. remember how to do something, or even to remember whether that something is even
  1323. possible. Indeed, many feature requests received by the author describe features
  1324. which are already present but are difficult to find.[7]
  1325.  
  1326. In an attempt to combat this obscurity, this reference guide describes every
  1327. feature and configuration parameter of aptitude. For a more gentle guide to the
  1328. important features of aptitude, see Chapter 1, Getting_Started.
  1329.  
  1330.  
  1331.  [Note]  Note
  1332.  
  1333.          aptitude's behavior and appearance can be configured in a number of
  1334.          ways. This manual describes how the program works with the default
  1335.          settings; descriptions of how various settings affect behavior are
  1336.          given in the section called ``Customizing aptitude''.
  1337.  
  1338.  
  1339.  
  1340. The aptitude UI
  1341.  
  1342. This section describes the parts of the user interface of aptitude that do not
  1343. deal with managing packages.
  1344.  
  1345.  
  1346. Using the menus
  1347.  
  1348. The menu bar at the top of the screen lists the most important commands in
  1349. aptitude. To activate the menu bar, press Control-t; you can then navigate it
  1350. using the arrow keys and select a menu item using Enter.
  1351.  
  1352. Some menu items also have ``hotkeys'': letters or numbers that can be used to
  1353. select the item while the menu is active. These hotkeys are displayed in a
  1354. brighter shade of white than the rest of the menu.
  1355.  
  1356. In addition, some menu items have ``shortcuts'': keystrokes that perform the
  1357. same action as the menu item while the menu is not active. These keystrokes are
  1358. listed on the right-hand side of the menu.
  1359.  
  1360. In the remainder of the manual, menu commands will be written like this: Menu-
  1361. >Item (key). This indicates that you should choose Item from the Menu menu, and
  1362. that key is the shortcut for this command.
  1363.  
  1364.  
  1365. Menu commands
  1366.  
  1367.  
  1368. The Actions Menu
  1369.  
  1370. Figure 2.1. Commands available in the Actions menu
  1371.  
  1372.  ______________________________________________________________________________
  1373. |Command                             |Description                              |
  1374. |____________________________________|_________________________________________|
  1375. |                                    |If an installation preview is not        |
  1376. |                                    |visible, display one; otherwise, perform |
  1377. |Actions->Install/remove packages (g)|an install run as described in the       |
  1378. |                                    |section called ``Downloading, installing,|
  1379. |                                    |and removing packages''.                 |
  1380. |____________________________________|_________________________________________|
  1381. |Actions->Update package list (u)    |Bring the package list up-to-date.       |
  1382. |____________________________________|_________________________________________|
  1383. |                                    |Flag all upgradable packages, except     |
  1384. |Actions->Mark Upgradable (U)        |those which are held or forbidden from   |
  1385. |                                    |upgrading, for upgrade.                  |
  1386. |____________________________________|_________________________________________|
  1387. |                                    |Discard all information about what       |
  1388. |Actions->Forget new packages (f)    |packages are ``new'' (empty the ``New    |
  1389. |                                    |Packages'' tree).                        |
  1390. |____________________________________|_________________________________________|
  1391. |Actions->Clean package cache        |Delete all the compressed packages that  |
  1392. |                                    |were downloaded by aptitude [a].         |
  1393. |____________________________________|_________________________________________|
  1394. |                                    |Delete any compressed packages that were |
  1395. |                                    |downloaded by aptitude [a] and are no    |
  1396. |                                    |longer available. These are presumed to  |
  1397. |Actions->Clean obsolete files       |be packages which are obsolete, and can  |
  1398. |                                    |be deleted to save disk space without    |
  1399. |                                    |requiring an otherwise unnecessary       |
  1400. |                                    |download.                                |
  1401. |____________________________________|_________________________________________|
  1402. |                                    |Play a game of Minesweeper, as described |
  1403. |Actions->Play Minesweeper           |in the section called ``Playing          |
  1404. |                                    |Minesweeper''.                           |
  1405. |____________________________________|_________________________________________|
  1406. |Actions->Become root                |Continue working as the root user; see   |
  1407. |                                    |the section called ``Becoming root''.    |
  1408. |____________________________________|_________________________________________|
  1409. |Actions->Quit (Q)                   |Quit the program, saving any changes to  |
  1410. |                                    |package states.                          |
  1411. |____________________________________|_________________________________________|
  1412. |[a] Or any other apt utility.                                                 |
  1413. |______________________________________________________________________________|
  1414.  
  1415.  
  1416. The Undo Menu
  1417.  
  1418. Figure 2.2. Commands available in the Undo menu
  1419.  
  1420.  ______________________________________________________________________________
  1421. |Command               |Description                                            |
  1422. |______________________|_______________________________________________________|
  1423. |                      |Cancel the effect of the last change to a package's    |
  1424. |Undo->Undo (Control+u)|state, up to the last time the program was started, the|
  1425. |                      |package list was updated, or an install run was        |
  1426. |                      |performed.                                             |
  1427. |______________________|_______________________________________________________|
  1428.  
  1429.  
  1430. The Package Menu
  1431.  
  1432. Figure 2.3. Commands available in the Package menu
  1433.  
  1434.  ______________________________________________________________________________
  1435. |Command                     |Description                                      |
  1436. |____________________________|_________________________________________________|
  1437. |Package->Install (+)        |Flag the currently selected package for          |
  1438. |                            |installation.                                    |
  1439. |____________________________|_________________________________________________|
  1440. |Package->Remove (-)         |Flag the currently selected package for removal. |
  1441. |____________________________|_________________________________________________|
  1442. |Package->Purge (_)          |Flag the currently selected package to be purged.|
  1443. |____________________________|_________________________________________________|
  1444. |                            |Cancel any pending installation, upgrade, or     |
  1445. |Package->Keep (:)           |removal of the currently selected package, and   |
  1446. |                            |remove any hold that was set on the package.     |
  1447. |____________________________|_________________________________________________|
  1448. |Package->Hold (=)           |Hold the currently selected package back.        |
  1449. |____________________________|_________________________________________________|
  1450. |                            |Mark the currently selected package as an        |
  1451. |                            |``automatically installed'' package. For more    |
  1452. |Package->Mark Auto (M)      |information on manually and automatically        |
  1453. |                            |installed packages, see the section called       |
  1454. |                            |``Managing automatically installed packages''.   |
  1455. |____________________________|_________________________________________________|
  1456. |                            |Mark the currently selected package as a         |
  1457. |                            |``manually installed'' package. For more         |
  1458. |Package->Mark Manual (m)    |information on manually and automatically        |
  1459. |                            |installed packages, see the section called       |
  1460. |                            |``Managing automatically installed packages''.   |
  1461. |____________________________|_________________________________________________|
  1462. |                            |If a package that can be upgraded is selected,   |
  1463. |                            |forbid it from being upgraded to the currently   |
  1464. |Package->Forbid Version (F) |available version. If a version of a package is  |
  1465. |                            |selected, forbid the package from being upgraded |
  1466. |                            |to that version.                                 |
  1467. |____________________________|_________________________________________________|
  1468. |                            |Display a screen containing information about the|
  1469. |Package->Information (enter)|currently selected package, such as the packages |
  1470. |                            |it depends upon, the packages which depend upon  |
  1471. |                            |it, and its available versions.                  |
  1472. |____________________________|_________________________________________________|
  1473. |                            |Display the currently selected package's Debian  |
  1474. |package->Changelog (C)      |changelog. To see the changelog of a particular  |
  1475. |                            |version, select that version and execute this    |
  1476. |                            |command.                                         |
  1477. |____________________________|_________________________________________________|
  1478.  
  1479.  
  1480. The Resolver Menu
  1481.  
  1482. Figure 2.4. Commands available in the Resolver menu
  1483.  
  1484.  ______________________________________________________________________________
  1485. |Command                        |Description                                   |
  1486. |_______________________________|______________________________________________|
  1487. |                               |Display a detailed description of the problem |
  1488. |Resolver->Examine Solution (e) |resolver's current suggestion (see the section|
  1489. |                               |called ``Solving Dependency Problems'').      |
  1490. |_______________________________|______________________________________________|
  1491. |Resolver->Apply Solution (!)   |Carry out the actions that the problem        |
  1492. |                               |resolver is currently suggesting.             |
  1493. |_______________________________|______________________________________________|
  1494. |Resolver->Next Solution (.)    |Select the problem resolver's next suggestion.|
  1495. |_______________________________|______________________________________________|
  1496. |Resolver->Previous Solution (,)|Select the problem resolver's previous        |
  1497. |                               |suggestion.                                   |
  1498. |_______________________________|______________________________________________|
  1499. |Resolver->First Solution (<)   |Select the problem resolver's first           |
  1500. |                               |suggestion.                                   |
  1501. |_______________________________|______________________________________________|
  1502. |                               |Select the problem resolver's most recently   |
  1503. |Resolver->Last Solution (>)    |generated solution (see the section called    |
  1504. |                               |``Solving Dependency Problems'').             |
  1505. |_______________________________|______________________________________________|
  1506. |                               |When examining a solution, toggle whether the |
  1507. |                               |currently selected action is rejected and move|
  1508. |Resolver->Toggle Rejected (r)  |to the next action (see the section called    |
  1509. |                               |``Solving Dependency Problems''). If the      |
  1510. |                               |action is currently approved, its approval    |
  1511. |                               |will be cancelled.                            |
  1512. |_______________________________|______________________________________________|
  1513. |                               |When examining a solution, toggle whether the |
  1514. |                               |currently selected action is approved and move|
  1515. |Resolver->Toggle Approved (a)  |to the next action (see the section called    |
  1516. |                               |``Solving Dependency Problems''). If the      |
  1517. |                               |action is currently rejected, its rejection   |
  1518. |                               |will be cancelled.                            |
  1519. |_______________________________|______________________________________________|
  1520. |                               |When examining a solution, view detailed      |
  1521. |                               |information about the package which is        |
  1522. |Resolver->View Target (Enter)  |affected by the currently selected action (see|
  1523. |                               |the section called ``Solving Dependency       |
  1524. |                               |Problems'').                                  |
  1525. |_______________________________|______________________________________________|
  1526.  
  1527.  
  1528. The Search Menu
  1529.  
  1530. Figure 2.5. Commands available in the Search menu
  1531.  
  1532.  ______________________________________________________________________________
  1533. |Command                     |Description                                      |
  1534. |____________________________|_________________________________________________|
  1535. |                            |Find the next package in the package list that   |
  1536. |Search->Find (/)            |matches a search pattern (see the section called |
  1537. |                            |``Search Patterns'').                            |
  1538. |____________________________|_________________________________________________|
  1539. |                            |Find the previous package in the package list    |
  1540. |Search->Find Backwards (\)  |that matches a search pattern (see the section   |
  1541. |                            |called ``Search Patterns'').                     |
  1542. |____________________________|_________________________________________________|
  1543. |Search->Find Again (n)      |Repeat the last Find command.                    |
  1544. |____________________________|_________________________________________________|
  1545. |                            |Filter the current package list by removing any  |
  1546. |Search->Limit Display (l)   |packages which do not match a search pattern (see|
  1547. |                            |the section called ``Search Patterns'').         |
  1548. |____________________________|_________________________________________________|
  1549. |Search->Un-Limit Display (l)|Un-filter the current package list (all packages |
  1550. |                            |will be shown).                                  |
  1551. |____________________________|_________________________________________________|
  1552. |Search->Find Broken (b)     |Find the next broken package. This is equivalent |
  1553. |                            |to searching for ~b.                             |
  1554. |____________________________|_________________________________________________|
  1555.  
  1556.  
  1557. The Options Menu
  1558.  
  1559. Figure 2.6. Commands available in the Options menu
  1560.  
  1561.  ______________________________________________________________________________
  1562. |Command                     |Description                                      |
  1563. |____________________________|_________________________________________________|
  1564. |                            |Display a dialog box in which you can set options|
  1565. |Options->UI options         |pertaining to the interface (how messages are    |
  1566. |                            |displayed, how packages are organized, etc).     |
  1567. |____________________________|_________________________________________________|
  1568. |                            |Display a dialog box in which you can set options|
  1569. |Options->Dependency handling|pertaining to how dependencies are treated: for  |
  1570. |                            |instance, whether to automatically installed     |
  1571. |                            |packages which are recommended by other packages.|
  1572. |____________________________|_________________________________________________|
  1573. |                            |Display a dialog box in which you can set options|
  1574. |                            |that don't fit into the previous two categories: |
  1575. |Options->Miscellaneous      |for instance, whether packages should be         |
  1576. |                            |automatically flagged for upgrade when aptitude  |
  1577. |                            |starts.                                          |
  1578. |____________________________|_________________________________________________|
  1579. |Options->Revert options     |Reset all options to their default values.       |
  1580. |____________________________|_________________________________________________|
  1581.  
  1582.  
  1583. The Views Menu
  1584.  
  1585.  
  1586.  [Note]  Note
  1587.  
  1588.          For an overview of how views work, see the section called ``Working
  1589.          with multiple views''.
  1590.  
  1591.  
  1592. Figure 2.7. Commands available in the Views menu
  1593.  
  1594.  ______________________________________________________________________________
  1595. |Command                       |Description                                    |
  1596. |______________________________|_______________________________________________|
  1597. |Views->Next (F6)              |Change to the next active view.                |
  1598. |______________________________|_______________________________________________|
  1599. |Views->Prev (F7)              |Change to the previous active view.            |
  1600. |______________________________|_______________________________________________|
  1601. |Views->Close (q)              |Close the current view.                        |
  1602. |______________________________|_______________________________________________|
  1603. |Views->New Package View       |Create a new view of the package list.         |
  1604. |______________________________|_______________________________________________|
  1605. |                              |Create a view that displays packages which are |
  1606. |Views->Audit Recommendations  |not installed, and which a package installed on|
  1607. |                              |your system Recommends.                        |
  1608. |______________________________|_______________________________________________|
  1609. |Views->New Flat Package List  |Create a new view of the package list in which |
  1610. |                              |packages are not categorized.                  |
  1611. |______________________________|_______________________________________________|
  1612. |                              |Create a new view of the package list in which |
  1613. |Views->New Debtags Browser    |packages are categorized according to their    |
  1614. |                              |debtags entries.                               |
  1615. |______________________________|_______________________________________________|
  1616. |Views->New Categorical Browser|View the package list, arranged by category.   |
  1617. |______________________________|_______________________________________________|
  1618. |                              |A number of additional menu items appear; these|
  1619. |Additional items              |correspond to the currently active views. To   |
  1620. |                              |switch directly to a view, select it from the  |
  1621. |                              |menu.                                          |
  1622. |______________________________|_______________________________________________|
  1623.  
  1624.  
  1625. The Help Menu
  1626.  
  1627. Figure 2.8. Commands available in the Help menu
  1628.  
  1629.  ____________________________________________________________________________
  1630. |Command            |Description                                             |
  1631. |___________________|________________________________________________________|
  1632. |Help->About        |Display some copyright information.                     |
  1633. |___________________|________________________________________________________|
  1634. |Help->Help (?)     |Display the on-line help page.                          |
  1635. |___________________|________________________________________________________|
  1636. |Help->User's Manual|Display the User's Manual (this document).              |
  1637. |___________________|________________________________________________________|
  1638. |Help->FAQ          |Display the aptitude FAQ.                               |
  1639. |___________________|________________________________________________________|
  1640. |Help->ChangeLog    |Display a history of the major changes made to aptitude.|
  1641. |___________________|________________________________________________________|
  1642. |Help->License      |Display the terms under which you may copy, modify, and |
  1643. |                   |distribute aptitude.                                    |
  1644. |___________________|________________________________________________________|
  1645.  
  1646.  
  1647. Working with multiple views
  1648.  
  1649. aptitude allows you to work with several ``views'' at once. A ``view''
  1650. (sometimes called a ``screen'') is simply something that can appear in the area
  1651. of the screen below the menu bar. The most common view is the package list, but
  1652. download views are also common.
  1653.  
  1654. When several views are open at once, a bar listing all the active views will
  1655. appear at the top of the screen. For instance, if I examine apt by pressing
  1656. Enter, then examine libc6, the screen will look something like this:
  1657.  
  1658.  Actions  Undo  Package  Search  Options  Views  Help
  1659. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  1660.          Packages                  apt info                  libc6 info
  1661. aptitude 0.3.1
  1662. i A  --\ libc6                                             2.3.2.ds1- 2.3.2.ds1-
  1663.   Description: GNU C Library: Shared libraries and Timezone data
  1664.     Contains the standard libraries that are used by nearly all programs on the
  1665.     system. This package includes shared versions of the standard C library and
  1666.     the standard math library, as well as many others. Timezone data is also
  1667.     included.
  1668.   Priority: required
  1669.   Section: base
  1670.   Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
  1671.   Compressed size: 4901k
  1672.   Uncompressed size: 15.9M
  1673.   Source Package: glibc
  1674.   --\ Depends
  1675.     --- libdb1-compat
  1676.   --\ Suggests
  1677.     --- locales
  1678.     --- glibc-doc
  1679.   --\ Conflicts
  1680. GNU C Library: Shared libraries and Timezone data
  1681.  
  1682. You can close the current view using Views->Close (q). To switch to the next or
  1683. previous view, use Views->Next (F6) and Views->Prev (F7), or click on the view's
  1684. name at the top of the screen; you can also find a list of all active views in
  1685. the Views menu.
  1686.  
  1687. As shown above, some commands (for instance, viewing information about a
  1688. package) will create new views automatically; you can also explicitly create a
  1689. new view using Views->New Package View or Views->New Categorical Browser.
  1690.  
  1691.  
  1692. Becoming root
  1693.  
  1694. Some actions, such as updating the package lists, can only be performed as root.
  1695. If you are not root and you try to update the package lists, aptitude will ask
  1696. if you want to become root:
  1697.  
  1698.  Actions  Undo  Package  Search  Options  Views  Help
  1699. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  1700. aptitude 0.2.14.1
  1701. --- Installed Packages
  1702. --- Not Installed Packages
  1703. --- Obsolete and Locally Created Packages
  1704. --- Virtual Packages
  1705. --- Tasks
  1706.  
  1707.   +-------------------------------------------------------------------------+
  1708.   |Updating the package lists requires administrative privileges, which     |
  1709.   |you currently do not have.  Would you like to change to the root account?|
  1710.   |                                                                         |
  1711.   |         [ Become root ]                  [ Don't become root ]          |
  1712. Th+-------------------------------------------------------------------------+
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721. If you select ``Become root'', aptitude will prompt you for root's password;
  1722. when you have correctly entered it, aptitude will perform the action that
  1723. required root privileges. You will still be root after the action completes.
  1724.  
  1725. You can switch to the root account at any time using the command Actions->Become
  1726. root. Any changes you have made to package states will be preserved (but will
  1727. not be saved until you quit aptitude).
  1728.  
  1729.  
  1730. Managing packages
  1731.  
  1732. This section describes how to manipulate the list of packages, how to install
  1733. new packages on your system, and how to remove old packages.
  1734.  
  1735.  
  1736. Managing the package list
  1737.  
  1738. To keep the list of packages up-to-date, it is recommended that you periodically
  1739. update it. You can do this using the Actions->Update package list (u) command.
  1740.  
  1741.  
  1742. Accessing package information
  1743.  
  1744. Information about packages is presented in several locations in aptitude: the
  1745. package list gives a quick overview of the state of each package, and additional
  1746. views providing detailed information about a package are also available.
  1747.  
  1748.  
  1749. The Package List
  1750.  
  1751. The package list displays an ``at-a-glance'' synopsis of a package's state. For
  1752. instance, the package webmin might have the following synopsis:
  1753.  
  1754. piAU  webmin                                        +5837kB <none>     1.160-2
  1755.  
  1756. The four characters on the left-hand side of the synopsis show that the package
  1757. is not installed (``p''), that it is going to be installed (``i''), that it was
  1758. automatically installed (``A''), and that it is untrusted (``U''). On the right-
  1759. hand side of the synopsis, the current version and the most recent available
  1760. version are displayed, along with an indication of how much space will be used
  1761. by the upgrade.
  1762.  
  1763.  
  1764.  [Tip]  Tip
  1765.  
  1766.         You can customize how package synopses are displayed; see the section
  1767.         called ``Customizing how packages are displayed'' for details.
  1768.  
  1769.  
  1770. The four status flags on the left-hand side of the screen give the basic
  1771. information about a package's state. The first character is the package's
  1772. current state. The second character is the action which will be taken on the
  1773. package. The third character indicates whether the package was automatically
  1774. installed (see the section called ``Managing automatically installed
  1775. packages''), and the fourth character indicates whether the package is trusted
  1776. (see the section called ``Understanding and managing package trust''.
  1777.  
  1778. The possible values of the ``current state'' flag are given in Figure 2.9,
  1779. ``Values of the ``current state'' flag'' and the possible values of the
  1780. ``action'' flag are given in Figure 2.10, ``Values of the ``action'' flag''.
  1781.  
  1782. Figure 2.9. Values of the ``current state'' flag
  1783.  
  1784.  
  1785. i - the package is installed and all its dependencies are satisfied.
  1786.  
  1787. c - the package was removed, but its configuration files are still present.
  1788.  
  1789. p - the package and all its configuration files were removed, or the package was
  1790.     never installed.
  1791.  
  1792. v - the package is virtual.
  1793.  
  1794. B - the package has broken dependencies.
  1795.  
  1796. u - the package has been unpacked but not configured.
  1797.  
  1798. C - half-configured: the package's configuration was interrupted.
  1799.  
  1800. H - half-installed: the package's installation was interrupted.
  1801.  
  1802.  
  1803. Figure 2.10. Values of the ``action'' flag
  1804.  
  1805.  
  1806. i - the package will be installed.
  1807.  
  1808. u - the package will be upgraded.
  1809.  
  1810. d - the package will be deleted: it will be removed, but its configuration files
  1811.     will remain on the system.
  1812.  
  1813. p - the package will be purged: it and its configuration files will be removed.
  1814.  
  1815. h - the package will be held back: it will be kept at its current version, even
  1816.     if a newer version becomes available, until the hold is cancelled.
  1817.  
  1818. F - An upgrade of the package has been forbidden.
  1819.  
  1820. r - the package will be reinstalled.
  1821.  
  1822.     the package is ``broken'': some of its dependencies will not be satisfied.
  1823. B - aptitude will not allow you to install, remove, or upgrade anything while
  1824.     you have broken packages.
  1825.  
  1826.  
  1827. In addition, aptitude will use colors to indicate package state if your terminal
  1828. supports it. State distinctions are mainly displayed using the background color:
  1829.  
  1830.  
  1831.  
  1832.   Black
  1833.       The package cannot be upgraded (or is not going to be installed), and it
  1834.       has no dependency problems. If the package is installed, its name will be
  1835.       highlighted.
  1836.  
  1837.  
  1838.   Green
  1839.       The package is going to be installed.
  1840.  
  1841.  
  1842.   Blue
  1843.       The package is currently installed, and it will be upgraded.
  1844.  
  1845.  
  1846.   Magenta
  1847.       The package is currently installed, but it will be removed.
  1848.  
  1849.  
  1850.   White
  1851.       The package is currently installed, and it is ``held'' at its current
  1852.       version: automatic upgrades will ignore it.
  1853.  
  1854.  
  1855.   Red
  1856.       This package is broken: some of its dependencies will not be satisfied.
  1857.  
  1858.  
  1859. Finally, the lower half of the screen displays the long description. aptitude
  1860. will attempt to detect whether the package is involved in a dependency problem;
  1861. if so, information regarding the dependency problem will be displayed here. To
  1862. cycle between dependency information and the package description, press i.
  1863.  
  1864.  
  1865. Detailed package information
  1866.  
  1867. Pressing Enter while a package is highlighted will display the package
  1868. information screen:
  1869.  
  1870.  Actions  Undo  Package  Search  Options  Views  Help
  1871. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  1872. aptitude 0.2.14.1
  1873. i A --\ apt                                                0.5.25     0.5.25
  1874.   Description: Advanced front-end for dpkg
  1875.     This is Debian's next generation front-end for the dpkg package manager. It
  1876.     provides the apt-get utility and APT dselect method that provides a simpler,
  1877.     safer way to install and upgrade packages.
  1878.  
  1879.     APT features complete installation ordering, multiple source capability and
  1880.     several other unique features, see the Users Guide in apt-doc.
  1881.   Essential: yes
  1882.   Priority: important
  1883.   Section: base
  1884.   Maintainer: APT Development Team <deity@lists.debian.org>
  1885.   Compressed size: 970k
  1886.   Uncompressed size: 2961k
  1887.   Source Package: apt
  1888.   --\ Depends
  1889.     --- libc6 (>= 2.3.2.ds1-4)
  1890.     --- libgcc1 (>= 1:3.3.3-1)
  1891.     --- libstdc++5 (>= 1:3.3.3-1)
  1892.   --\ Suggests
  1893.     --- aptitude | synaptic | gnome-apt | wajig
  1894.     --- dpkg-dev
  1895.     --\ apt-doc (UNSATISFIED)
  1896. p     0.6.25
  1897. p     0.5.25
  1898.   --\ Replaces
  1899.     --- libapt-pkg-doc (< 0.3.7)
  1900.     --- libapt-pkg-dev (< 0.3.7)
  1901.   --- Package names provided by apt
  1902.   --- Packages which depend on apt
  1903.   --\ Versions
  1904. p A 0.6.25
  1905. i A 0.5.25
  1906.  
  1907. This display can be navigated in a manner similar to the package list: for
  1908. instance, in the screenshot above, I expanded the dependency on apt-doc,
  1909. revealing the available versions of apt-doc which will fulfill the dependency.
  1910. These versions can be manipulated in the same way that packages can: for
  1911. instance, to install version 0.5.25 of apt-doc, you would highlight it and press
  1912. +.
  1913.  
  1914.  
  1915.  [Tip]  Tip
  1916.  
  1917.         To quickly satisfy a dependency, select the dependency and press +;
  1918.         aptitude will attempt to automatically satisfy it.
  1919.  
  1920.  
  1921. In addition to the dependencies of a package, you can view the package names
  1922. that it Provides, the packages which depend upon it, and the available versions
  1923. of the package (including any other packages that Provide it).
  1924.  
  1925. As usual, you can dismiss this screen and return to the main view by pressing q.
  1926. For convenience, a few other information screens (which only display some
  1927. commonly-used information, hiding the rest) are available: press v to view the
  1928. versions of a package, d to view the dependencies of a package, and r to view
  1929. the ``reverse dependencies'' of a package (packages which depend upon it).
  1930.  
  1931.  
  1932. Modifying package states
  1933.  
  1934. The following commands are available to modify the states of packages. Commands
  1935. take effect the next time you perform an install run; until you do, all of these
  1936. commands can be reversed using Undo->Undo (Control+u).
  1937.  
  1938. To apply a command to a package, simply select the package in a package list and
  1939. issue the command. These commands can also be applied to groups of packages by
  1940. selecting the group header (for instance, ``Upgradable Packages'') and issuing
  1941. the command.
  1942.  
  1943.  ______________________________________________________________________________
  1944. |Command                              |Description                             |
  1945. |_____________________________________|________________________________________|
  1946. |                                     |Flag the current package for            |
  1947. |                                     |installation.                           |
  1948. |                                     |                                        |
  1949. |                                     |If the package is not installed, it will|
  1950. |Install: Package->Install (+)        |be installed. If it is already          |
  1951. |                                     |installed, it will be upgraded if       |
  1952. |                                     |possible and any sticky upgrade         |
  1953. |                                     |prevention that is in effect (eg, Hold) |
  1954. |                                     |will be cancelled.                      |
  1955. |_____________________________________|________________________________________|
  1956. |                                     |Flag the currently selected package for |
  1957. |                                     |removal.                                |
  1958. |Remove: Package->Remove (-)          |                                        |
  1959. |                                     |If the package is installed, it will be |
  1960. |                                     |removed.                                |
  1961. |_____________________________________|________________________________________|
  1962. |                                     |Flag the current package to be purged.  |
  1963. |                                     |                                        |
  1964. |                                     |If the package is installed, it will be |
  1965. |Purge: Package->Purge (_)            |removed. Futhermore, even if it is      |
  1966. |                                     |removed, any remaining files (such as   |
  1967. |                                     |configuration files) related to the     |
  1968. |                                     |package will be removed from the system.|
  1969. |_____________________________________|________________________________________|
  1970. |                                     |Flag the current package to be kept at  |
  1971. |                                     |its current version.                    |
  1972. |                                     |                                        |
  1973. |Keep: Package->Keep (:)              |Any action that was to be performed on  |
  1974. |                                     |the package -- installation, removal, or|
  1975. |                                     |upgrade -- is cancelled, and any        |
  1976. |                                     |persistent hold that was set on the     |
  1977. |                                     |package is removed.                     |
  1978. |_____________________________________|________________________________________|
  1979. |                                     |Set a persistent hold on the package.   |
  1980. |                                     |                                        |
  1981. |                                     |As with Keep, any action that was to be |
  1982. |Hold: Package->Hold (=)              |performed on the package is cancelled.  |
  1983. |                                     |In addition, the package will not be    |
  1984. |                                     |automatically upgraded [a] until the    |
  1985. |                                     |hold is removed. You may cancel a hold  |
  1986. |                                     |by issuing the Install command.         |
  1987. |_____________________________________|________________________________________|
  1988. |                                     |The package will not be automatically   |
  1989. |                                     |upgraded[a] to the version it would     |
  1990. |                                     |currently be upgraded to. If it was     |
  1991. |                                     |going to be upgraded, the upgrade will  |
  1992. |                                     |be cancelled.                           |
  1993. |                                     |                                        |
  1994. |                                     |If you issue this command on a          |
  1995. |Package->Forbid Version (F)          |particular version of a package, the    |
  1996. |                                     |package will not be upgraded to the     |
  1997. |                                     |selected version. Note that only one    |
  1998. |                                     |version can be forbidden at once.       |
  1999. |                                     |                                        |
  2000. |                                     |This functionality is largely provided  |
  2001. |                                     |as a convenience for users of the       |
  2002. |                                     |``unstable'' distribution, so they can  |
  2003. |                                     |avoid known-bad versions of packages.   |
  2004. |_____________________________________|________________________________________|
  2005. |                                     |Reinstalls the package.                 |
  2006. |                                     |                                        |
  2007. |                                     |Note that the reinstallation will not be|
  2008. |                                     |saved when you quit aptitude or perform |
  2009. |Reinstall: press L                   |an install run for technical reasons.   |
  2010. |                                     |(essentially, the underlying software   |
  2011. |                                     |layers (dpkg and apt) do not provide any|
  2012. |                                     |way to find out whether a reinstallation|
  2013. |                                     |was successful or not).                 |
  2014. |_____________________________________|________________________________________|
  2015. |                                     |Sets whether the package is treated as  |
  2016. |                                     |having been automatically installed;    |
  2017. |Package->Mark Auto (M), Package->Mark|automatically installed packages will be|
  2018. |Manual (m)                           |removed when no other package requires  |
  2019. |                                     |them. For more information, see the     |
  2020. |                                     |section called ``Managing automatically |
  2021. |                                     |installed packages''.                   |
  2022. |_____________________________________|________________________________________|
  2023. |[a] That is, it will be unaffected by Actions->Mark Upgradable (U) or the     |
  2024. |dist-upgrade or upgrade command-line actions.                                 |
  2025. |______________________________________________________________________________|
  2026.  
  2027. In addition to these commands that affect the selected package, there are two
  2028. commands that affect large numbers of packages at once regardless of what is
  2029. selected. Actions->Forget new packages (f) clears the ``new'' status of all
  2030. packages in the package list, and Actions->Mark Upgradable (U) flags every
  2031. package which can be upgraded for upgrade, except for packages that are held
  2032. back or would be upgraded to a forbidden version.
  2033.  
  2034.  
  2035.  [Note]  Note
  2036.  
  2037.          All changes to package states are saved when you quit aptitude, update
  2038.          the package list, or perform an install run. If you do not wish to save
  2039.          your changes, you can always abort aptitude by pressing Ctrl-C.
  2040.  
  2041.  
  2042.  
  2043. Solving Dependency Problems
  2044.  
  2045. If a dependency problem arises, aptitude can assist you in resolving it. As soon
  2046. as a problem occurs, a red bar will appear at the bottom of the screen with a
  2047. summary of aptitude's suggestion about how to fix it. For instance, in the
  2048. following screenshot, aptitude is indicating that it can resolve the situation
  2049. by keeping two packages at their current versions.
  2050.  
  2051.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  2052. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  2053. aptitude 0.3.3       #Broken: 1   Will free 48.6MB of disk space
  2054. i A   nautilus                                             2.10.1-4   2.10.1-4
  2055. i     nautilus-cd-burner                                   2.10.2-1.1 2.10.2-1.1
  2056. i A   nautilus-data                                        2.10.1-4   2.10.1-4
  2057. i     netspeed                                             0.12.1-1   0.12.1-1
  2058. i A   oaf                                                  0.6.10-3   0.6.10-3
  2059. i     pybliographer                                        1.2.6.2-1  1.2.6.2-1
  2060. i     rhythmbox                                            0.8.8-13   0.8.8-13
  2061. i     shermans-aquarium                                    3.0.1-1    3.0.1-1
  2062. idA   sound-juicer                                 -1733kB 2.10.1-3   2.10.1-3
  2063. GNOME 2 CD Ripper
  2064. sound-juicer will be removed.
  2065.  
  2066.  
  2067. The following packages depend on sound-juicer and will be broken by its
  2068. removal:
  2069.  
  2070.  
  2071.   * gnome-desktop-environment depends on sound-juicer
  2072.  
  2073. [1(1)/...] Suggest 2 keeps
  2074. e: Examine  !: Apply  .: Next  ,: Previous
  2075.  
  2076. As indicated at the bottom of the screen, you can view additional solutions by
  2077. pressing . and ,, apply the current solution by pressing !, and examine the
  2078. solution in more detail by pressing e. When you examine the current solution, a
  2079. screen similar to the following will appear:
  2080.  
  2081.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  2082. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  2083.                 Packages                          Resolve Dependencies
  2084.   --\ Keep the following packages at their current version:
  2085.     gstreamer0.8-cdparanoia                           [0.8.10-1 (unstable, now)]
  2086.     sound-juicer                                                [2.10.1-2 (now)]
  2087.  
  2088.  
  2089.  
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103. [1(1)/...] Suggest 2 keeps
  2104. e: Examine  !: Apply  .: Next  ,: Previous
  2105.  
  2106. You can access information about the package affected by an action by simply
  2107. pressing Enter while the package is highlighted. For a more detailed explanation
  2108. of why aptitude made a particular decision, you can highlight the element in the
  2109. list. When you do so, the lower half of the screen will display the dependency
  2110. which was resolved by aptitude's choice, along with every way in which this
  2111. dependency could have been resolved.
  2112.  
  2113.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  2114. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  2115.                 Packages                          Resolve Dependencies
  2116.   --\ Keep the following packages at their current version:
  2117.     gstreamer0.8-cdparanoia                           [0.8.11-1 (unstable, now)]
  2118.     sound-juicer                                      [2.10.1-3 (unstable, now)]
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125. cdparanoia plugin for GStreamer
  2126. sound-juicer depends upon gstreamer0.8-cdparanoia
  2127. --\ The following actions will resolve this dependency:
  2128.   -> Downgrade sound-juicer [2.10.1-3 (unstable, now) -> 0.6.1-2 (testing)]
  2129.   -> Remove sound-juicer [2.10.1-3 (unstable, now)]
  2130.   -> Cancel the removal of gstreamer0.8-cdparanoia
  2131.   -> Downgrade gstreamer0.8-cdparanoia [0.8.11-1 (unstable, now) -> 0.8.8-3 (tes
  2132.  
  2133.  
  2134.  
  2135. [1(1)/...] Suggest 2 keeps
  2136. e: Examine  !: Apply  .: Next  ,: Previous
  2137.  
  2138. You can guide the dependency resolver to a solution of which you approve by
  2139. approving or rejecting the individual actions of a solution. If you approve an
  2140. action, the resolver will choose it whenever possible, ignoring alternatives
  2141. (when there are several approved alternatives, all of them will be chosen). On
  2142. the other hand, if you reject an action, the resolver will never choose that
  2143. action.
  2144.  
  2145. To reject a solution, highlight it and press r; the rejection can be cancelled
  2146. by pressing r again. Similarly, select an action and press a to approve it. You
  2147. can undo either action by using Undo->Undo (Control+u) while the resolver screen
  2148. is active. If you cancel a rejection or an approval, any solutions that were
  2149. ignored will be available the next time that you generate a new solution.
  2150.  
  2151. Rejected actions are colored red and marked with an ``R'', while approved
  2152. actions are colored green and marked with an ``A''. You can see this in the
  2153. following screenshot, where the action ``keep gstreamer0.8-cdparanoia at its
  2154. current version'' has been rejected, and the action ``keep sound-juicer at its
  2155. current version'' has been approved.
  2156.  
  2157.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  2158. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  2159.                 Packages                          Resolve Dependencies
  2160.   --\ Keep the following packages at their current version:
  2161. R   gstreamer0.8-cdparanoia                           [0.8.11-1 (unstable, now)]
  2162. A   sound-juicer                                      [2.10.1-3 (unstable, now)]
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179. [1(1)/...] Suggest 2 keeps
  2180. e: Examine  !: Apply  .: Next  ,: Previous
  2181.  
  2182. Rejections and approvals only affect newly generated solutions. You can tell
  2183. when a new solution will be generated by examining the indicator in the lower
  2184. left hand corner of the screen: if there is a number in parentheses, it is the
  2185. number of solutions that have been generated. Thus, when the number outside the
  2186. parentheses and the number inside are identical (as above), pressing . will
  2187. generated a new solution. If there is no number in parentheses (for instance,
  2188. the indicator reads [1/5]), then there are no more solutions to generated. At
  2189. any time, you can select the last generated solution by pressing >, and the
  2190. first generated solution by pressing <.
  2191.  
  2192.  
  2193.  [Important]  Important
  2194.  
  2195.               The state of the problem resolver is discarded when you modify the
  2196.               state of any package. If you mark a package for installation, for
  2197.               upgrade, for removal, etc, the resolver will forget all of your
  2198.               rejections and approvals, as well as all the solutions that have
  2199.               been generated so far.
  2200.  
  2201.  
  2202. In addition to selecting actions in the list at the top of the screen, you can
  2203. also select them using the list in the bottom half. To access this list, either
  2204. click in it using the mouse or press Tab. Finally, to see the decisions that the
  2205. problem resolver took arranged in order, press o. This will give a list of the
  2206. dependencies that were resolved and the action taken to resolve them, as in the
  2207. following screenshot.
  2208.  
  2209.  Actions  Undo  Package  Resolver  Search  Options  Views  Help
  2210. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  2211.                 Packages                          Resolve Dependencies
  2212.   --\ gnome-desktop-environment depends upon sound-juicer
  2213.     -> Cancel the removal of sound-juicer
  2214.   --\ sound-juicer depends upon gstreamer0.8-cdparanoia
  2215.     -> Cancel the removal of gstreamer0.8-cdparanoia
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221. GNOME 2 CD Ripper
  2222. gnome-desktop-environment depends upon sound-juicer
  2223. --\ The following actions will resolve this dependency:
  2224.   -> Remove gnome-desktop-environment [1:2.10.2.3 (unstable, testing, now)]
  2225.   -> Cancel the removal of sound-juicer
  2226.   -> Downgrade sound-juicer [2.10.1-3 (unstable, now) -> 0.6.1-2 (testing)]
  2227.  
  2228.  
  2229.  
  2230.  
  2231. [1(1)/...] Suggest 2 keeps
  2232. e: Examine  !: Apply  .: Next  ,: Previous
  2233.  
  2234. You can leave this display mode by pressing o again.
  2235.  
  2236.  
  2237. Downloading, installing, and removing packages
  2238.  
  2239. Changing package states as described in the previous section does not actually
  2240. affect what is installed on your system. Thus, you can adjust the state of
  2241. packages without affecting your system until you are happy with what you see;
  2242. once you are, you can ``commit'' the changes by actually installing and removing
  2243. packages.[8]
  2244.  
  2245. To commit your changes, use the Actions->Install/remove packages (g) command.
  2246. Selecting this command will display a preview screen describing the changes that
  2247. will be performed. This screen is just a package list, and you can manipulate
  2248. the packages (for instance, cancelling unwanted removals) in the same way that
  2249. you could in the main list.
  2250.  
  2251. When you are done, use Views->Close (q) to cancel the installation, or use
  2252. Actions->Install/remove packages (g) to proceed. aptitude will download any
  2253. files that need to be downloaded, then prompt you to continue with the
  2254. installation. When you select ``Continue'', the installations and removals will
  2255. commence.
  2256.  
  2257. Packages that are downloaded by aptitude are placed in a cache directory
  2258. (typically /var/cache/apt/archives). Normally, they are just left in this
  2259. directory ad infinitum. To delete all the files in this directory, use Actions-
  2260. >Clean package cache; to delete only files which cannot be downloaded again (ie,
  2261. obsolete packages), use Actions->Clean obsolete files.
  2262.  
  2263.  
  2264. Understanding and managing package trust
  2265.  
  2266. apt's ability to access multiple package sources leads to a potential security
  2267. vulnerability. Suppose you add an archive of packages published by Joe Random
  2268. Hacker to your sources.list file in order to install Joe's gargleblast package.
  2269. It is possible, however, that -- unbeknownst to you -- Joe's archive also
  2270. contains his own ``customized'' versions of packages such as libc6 and
  2271. ssh...versions that steal your private information or open backdoors on your
  2272. system! If these packages have higher version numbers than the legitimate Debian
  2273. packages, apt will blithely install them on your system during your next
  2274. upgrade, allowing Joe to do his dirty work undetected. Joe could also break into
  2275. your mirror of the Debian archives and replace the legitimate software with his
  2276. doctored version.
  2277.  
  2278. Luckily, newer versions of apt and aptitude, such as the version documented in
  2279. this manual, have built-in safeguards to help defeat this type of attack. apt
  2280. uses strong security mechanisms based on the popular GPG encryption software to
  2281. verify that the packages being distributed from the official Debian mirrors are
  2282. the same packages that were uploaded by the Debian developers. aptitude will
  2283. then warn you if you attempt to install a package from a non-Debian source, or
  2284. if you attempt to upgrade a package that was installed from a Debian source to a
  2285. version that came from a non-Debian source.
  2286.  
  2287.  
  2288.  [Warning]  Warning
  2289.  
  2290.             The security mechanisms in apt provide a near-perfect guarantee that
  2291.             the contents of your archive mirror are identical to the contents of
  2292.             the master Debian archive. However, they are not a panacea: for
  2293.             instance, there are many ways that a tampered package could
  2294.             theoretically find its way into the master Debian archive.
  2295.  
  2296.             Ensuring that you only install software from a trusted source will
  2297.             give you an important degree of protection against malicious
  2298.             packages, but it cannot eliminate all the risks inherent in
  2299.             installing software.
  2300.  
  2301.  
  2302.  
  2303. Understanding trust
  2304.  
  2305. apt allows the administrator of an archive to provide a signature of the
  2306. archive's index. This signature, which (for all practical purposes) cannot be
  2307. forged, indicates that the package files listed in the index are the same files
  2308. that the administrator intended to place in the archive: ie, that the contents
  2309. of the archive have not been tampered with since it was created.[9] The
  2310. signature can be validated by checking that it corresponds to the
  2311. administrator's public key. The public key of the Debian archive is distributed
  2312. with apt, typically on your Debian CD.
  2313.  
  2314. When aptitude downloads an archive index, it will check whether the index is
  2315. properly signed. If it is unsigned, aptitude will not trust package files from
  2316. that archive. (see below for information on what this means) If it has a
  2317. signature but the signature is incorrect or cannot be verified, a warning will
  2318. be printed and aptitude will refuse to trust packages from that archive.
  2319.  
  2320. Later, when you perform an install run, aptitude will check whether the packages
  2321. are from trusted sources. If an untrusted package is being installed, or a
  2322. package is being upgraded from a trusted to an untrusted version, a warning will
  2323. be displayed and you will have the opportunity to abort the download:
  2324.  
  2325.  Actions  Undo  Package  Search  Options  Views  Help
  2326. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  2327. aptitude 0.3.0                    Will use 831kB of disk space   DL Size: 30.4MB
  2328. --\ Packages to be upgraded
  2329. iu U wesnoth                                       -98.3kB 0.8.7-1    0.8.8-1.0w
  2330. iuAU wesnoth-data                                  +930kB  0.8.7-1    0.8.8-1.0w
  2331. +------------------------------------------------------------------------------+
  2332. |WARNING: untrusted versions of the following packages will be installed!     #|
  2333. |                                                                             #|
  2334. |Untrusted packages could compromise your system's security.  You should only #|
  2335. |proceed with the installation if you are certain that this is what you want  #|
  2336. |to do.                                                                       #|
  2337. |                                                                             #|
  2338. |  * wesnoth [version 0.8.8-1.0wesnoth.org]                                   #|
  2339. |  * wesnoth-data [version 0.8.8-1.0wesnoth.org]                              #|
  2340. |  * wesnoth-music [version 0.8.8-1.0wesnoth.org]                             #|
  2341. |         [ Really Continue ]                  [ Abort Installation ]          |
  2342. +------------------------------------------------------------------------------+
  2343.                                                                                #
  2344.                                                                                #
  2345.                                                                                #
  2346.                                                                                #
  2347.                                                                                #
  2348.                                                                                #
  2349.  
  2350.  
  2351. Trusting additional keys
  2352.  
  2353. You might find it useful to allow apt to trust additional archives, besides the
  2354. main Debian archive. For each archive that you want to trust, you will have to
  2355. acquire the public key that is used to sign the archive's package index. This is
  2356. typically a text file whose name ends in .asc; it might be provided by the site
  2357. administrator or downloadable from a public keyserver. For more information on
  2358. what public keys are and how to get them, see the GPG web page.
  2359.  
  2360. The list of keys that apt will trust is stored in the keyring file /etc/apt/
  2361. trusted.gpg. Once you have the GPG key, you can add it to this file by executing
  2362. the command gpg --no-default-keyring --keyring /etc/apt/trusted.gpg --import
  2363. newkey.asc. aptitude will then trust any archive that is signed with the key
  2364. contained in newkey.asc.
  2365.  
  2366.  
  2367.  [Warning]  Warning
  2368.  
  2369.             Once an archive's key has been added to the APT keyring, it will be
  2370.             trusted just as much as the main Debian mirrors themselves! You
  2371.             should only do this if you are very confident that the key you are
  2372.             adding is correct and that the person who holds the key is
  2373.             trustworthy and competent.
  2374.  
  2375.  
  2376.  
  2377. Managing automatically installed packages
  2378.  
  2379. To install one package, it is often necessary to install several others (to
  2380. fulfill its dependencies). For instance, if you wish to install the clanbomber
  2381. package, you must also install the package libclanlib2. If you remove clanbomber
  2382. again, you probably no longer need the libclanlib2 package; aptitude will
  2383. attempt to detect this and automatically remove the libclanlib2 package.
  2384.  
  2385. It works like this: when you install a package, aptitude will automatically
  2386. install any other packages on which it depends. These packages are marked as
  2387. having been ``automatically installed''; aptitude will monitor them and remove
  2388. them when they are no longer depended upon by any manually installed package
  2389. [10] . They will appear in the preview as ``packages being removed because they
  2390. are no longer used.''
  2391.  
  2392. As with any automatic process, there is a potential for things to go haywire.
  2393. For instance, even if a package was automatically installed to start with, it
  2394. might turn out to be useful in its own right. You can cancel the ``automatic''
  2395. flag at any time by pressing m; if the package is already being removed, you can
  2396. use Package->Install (+) to cancel the removal and clear the ``automatic'' flag.
  2397.  
  2398.  
  2399. Search Patterns
  2400.  
  2401. When you search for a package or set a display limit in aptitude, the string you
  2402. enter is known as a ``search pattern''. While the most basic usage of search
  2403. patterns is to match packages by name, aptitude allows you to create much more
  2404. complex searches. In addition to the visual interface, some command-line
  2405. operations can use search terms; see aptitude command-line reference for
  2406. details.
  2407.  
  2408. A search pattern consists of one or more conditions (sometimes known as
  2409. ``terms''); packages match the pattern if they match all of its terms. Terms
  2410. generally start with a tilde character (``~''), followed by a character
  2411. identifying the type of term, and then any additional text required by the term.
  2412.  
  2413. By default, patterns are checked against all versions of the package. However,
  2414. some patterns will restrict which versions are tested. For instance, the ~D
  2415. pattern takes another pattern as an argument, and matches any package that
  2416. depends on another package matching that pattern. In this case, only package
  2417. versions that satisfy the dependency will be tested against. The versions that
  2418. are used to test for a match will only change in match terms that have a subterm
  2419. (like ~D).
  2420.  
  2421. Most textual searches (for package names, descriptions, etc) are performed using
  2422. case-insensitive regular expressions. This means that you must backslash-escape
  2423. regular expression metacharacters [11] in searches (for instance, to find
  2424. ``g++'', you should use the pattern ``g\+\+'').
  2425.  
  2426. Normally, ``whitespace'' -- that is, space characters, tabs, and so on -
  2427. - separates terms but is otherwise ignored by aptitude. To include whitespace
  2428. (or other special characters) in a term, you can either place a tilde in front
  2429. of it (as in Debian~ Project) or place quotation marks around it (as in "Debian
  2430. Project" or even Debian" "Project). Inside a quoted string, the backslash
  2431. character (``\'') can be used to cancel the special meaning of the quotation
  2432. mark: for instance, ~d"\"email" will match any package whose description
  2433. contains a quotation mark followed immediately by email. [12]
  2434.  
  2435. The following types of terms are available:
  2436.  
  2437.  
  2438.  
  2439.   name
  2440.       Matches packages whose names match the regular expression name. This is
  2441.       the ``default'' search mode and is used for patterns that don't start with
  2442.       ~.
  2443.  
  2444.  
  2445.        [Note]  Note
  2446.  
  2447.                To match packages whose names contain several different
  2448.                substrings, use the ~n matcher (described below); for instance,
  2449.                ``~napti~ntude''.
  2450.  
  2451.  
  2452.  
  2453.   !term
  2454.       Matches packages which do not match the term term. For instance, ``!~b''
  2455.       selects packages that are not ``broken''.
  2456.  
  2457.  
  2458.        [Note]  Note
  2459.  
  2460.                To include a ``!'' in a regular expression, it must be
  2461.                ``escaped'' to prevent aptitude from considering it part of a NOT
  2462.                term: ``~!''.
  2463.  
  2464.  
  2465.  
  2466.   term1 | term2
  2467.       Matches packages that match either term1 or term2.
  2468.  
  2469.  
  2470.        [Note]  Note
  2471.  
  2472.                To use the character ``|'' in a regular expression, it must be
  2473.                ``escaped'' to prevent aptitude from creating an OR term from it:
  2474.                ``~|''.
  2475.  
  2476.  
  2477.  
  2478.   (term)
  2479.       Matches term; this is useful to explicitly select the grouping of complex
  2480.       expressions. For instance, ``~D(perl|python)'' matches any package that
  2481.       depends on a package whose name contains either perl or python.
  2482.  
  2483.  
  2484.   ~Aarchive
  2485.       Matches package versions which are available from an archive that matches
  2486.       the regular expression archive. For instance, ``~Atesting'' matches any
  2487.       package available from the testing archive.
  2488.  
  2489.  
  2490.   ~aaction
  2491.       Matches packages upon which the given action is going to be performed.
  2492.       action can be ``install'', ``upgrade'', ``downgrade'', ``remove'',
  2493.       ``purge'', ``hold'' (tests whether a package has been placed on hold), or
  2494.       ``keep'' (tests whether a package will be unchanged).
  2495.  
  2496.       Note that this only tests whether an action is actually queued up to be
  2497.       performed on a package, not whether it could be performed. Thus, for
  2498.       instance, ~aupgrade matches exactly those packages that you have already
  2499.       decided to upgrade, not packages which could be upgraded in the future
  2500.       (for that, use ~U).
  2501.  
  2502.  
  2503.   ~Btype
  2504.       Matches packages which have an unfulfilled (``broken'') dependency of the
  2505.       given type. type can be ``depends'', ``predepends'', ``recommends'',
  2506.       ``suggests'', ``conflicts'', or ``replaces''.
  2507.  
  2508.  
  2509.   ~b
  2510.       Matches packages that are ``broken'': they have an unfulfilled dependency,
  2511.       predependency, or conflict.
  2512.  
  2513.  
  2514.   ~Cterm
  2515.       Matches packages which conflict with a package matching the given term.
  2516.       For instance, ``~C~mdburrows@debian.org'' matches any package which
  2517.       conflicts with a package I maintain.
  2518.  
  2519.  
  2520.   ~c
  2521.       Matches packages which have been removed, but whose configuration files
  2522.       remain on the system (ie, they were removed but not purged).
  2523.  
  2524.  
  2525.   ~D[B][type:]term
  2526.       type may be either ``provides'' or one of the dependency types given in
  2527.       the documentation of ~B.  If type is not present, it defaults to depends.
  2528.       If B is present, only broken dependencies will be considered.
  2529.  
  2530.       If type is ``provides'', matches packages that provide a package matching
  2531.       term (the equivalent of ~P). Otherwise, matches packages which declare a
  2532.       dependency of type type upon a package version which matches term.
  2533.  
  2534.  
  2535.   ~ddescription
  2536.       Matches packages whose description matches the regular expression
  2537.       description.
  2538.  
  2539.  
  2540.   ~E
  2541.       Matches Essential packages.
  2542.  
  2543.  
  2544.   ~F
  2545.       This term does not match any package (``F'' stands for ``false''). [13]
  2546.  
  2547.  
  2548.   ~g
  2549.       Matches packages which are not installed, or which were automatically
  2550.       installed and are not depended upon by any installed package.
  2551.  
  2552.  
  2553.   ~Gtag
  2554.       Matches packages whose Tag field matches the regular expression tag. For
  2555.       instance, the pattern ~Ggame::strategy would match strategy games.
  2556.  
  2557.       For more information on tags and debtags, see http://
  2558.       debtags.alioth.debian.org.
  2559.  
  2560.  
  2561.   ~i
  2562.       Matches package versions which are currently installed.
  2563.  
  2564.       Since all versions are tested by default, this normally matches packages
  2565.       which are currently installed.
  2566.  
  2567.  
  2568.   ~M
  2569.       Matches packages which were automatically installed.
  2570.  
  2571.  
  2572.   ~mmaintainer
  2573.       Matches packages whose Maintainer field matches the regular expression
  2574.       maintainer. For instance, ``~mjoeyh'' will find all packages maintained by
  2575.       Joey Hess.
  2576.  
  2577.  
  2578.   ~N
  2579.       Matches packages which are ``new''.
  2580.  
  2581.  
  2582.   ~nname
  2583.       Matches packages whose name matches the regular expression name. For
  2584.       instance, most of the packages that match ``~n^lib'' are libraries of one
  2585.       sort or another.
  2586.  
  2587.  
  2588.   ~Oorigin
  2589.       Matches package versions whose origin matches the regular expression
  2590.       origin. For instance, ``!~Odebian'' will find any unofficial packages on
  2591.       your system (packages not from the Debian archive).
  2592.  
  2593.  
  2594.   ~Pterm
  2595.       Matches package versions which provide a package that matches the name.
  2596.       For instance, ``~Pmail-transport-agent'' will match all the packages that
  2597.       provide ``mail-transport-agent''.
  2598.  
  2599.  
  2600.   ~ppriority
  2601.       Matches packages whose priority is priority; priority must be extra,
  2602.       important, optional, required, or standard. For instance, ``~prequired''
  2603.       matches packages whose priority is ``required''.
  2604.  
  2605.  
  2606.   ~R[B][type:]term
  2607.       type may be either ``provides'' or one of the dependency types given in
  2608.       the documentation of ~B.  If type is not present, it defaults to depends.
  2609.       If B is present, only broken dependencies will be considered.
  2610.  
  2611.       If type is ``provides'', matches packages whose name is provided by a
  2612.       package version matching term. Otherwise, matches packages which a package
  2613.       version matching term declares a dependency of type type upon.
  2614.  
  2615.  
  2616.   ~S filter term
  2617.       This term ``narrows'' the search to package versions matching filter. In
  2618.       particular, it matches any package version which matches both filter and
  2619.       term. The string value of the match is the string value of term.
  2620.  
  2621.  
  2622.   ~ssection
  2623.       Matches packages whose section matches the regular expression section.
  2624.  
  2625.  
  2626.   ~T
  2627.       This term matches any package. For instance, ``~i~P~T'' matches installed
  2628.       packages which are provided by any package.
  2629.  
  2630.  
  2631.    ~ttask
  2632.       Matches packages that appear in a task whose name matches the regular
  2633.       expression task.
  2634.  
  2635.  
  2636.   ~U
  2637.       This term matches any installed package which can be upgraded.
  2638.  
  2639.  
  2640.   ~Vversion
  2641.       Matches any package version whose version number matches the regular
  2642.       expression version, with the exceptions noted below. For instance,
  2643.       ``~Vdebian'' matches packages whose version contains ``debian''.
  2644.  
  2645.       The following values of version are treated specially. To search for
  2646.       version numbers containing these values, preface the value with a
  2647.       backslash; for instance, to find packages whose version number contains
  2648.       CURRENT, search for \CURRENT.
  2649.  
  2650.  
  2651.       * CURRENT matches the currently installed version of a package, if any.
  2652.  
  2653.       * CANDIDATE matches the version, if any, of the package that will be
  2654.         installed if you press + on the package or run aptitude install on it.
  2655.  
  2656.       * TARGET matches the version of a package that is currently targeted for
  2657.         installation, if any.
  2658.  
  2659.  
  2660.  
  2661.   ~v
  2662.       Matches any package which is purely virtual: that is, its name is provided
  2663.       by a package or mentioned in a dependency, but no package of that name
  2664.       exists. For instance, ``~v!~P~T'' matches packages which are virtual and
  2665.       are not provided by any package: ie, packages which are depended upon but
  2666.       do not exist.
  2667.  
  2668.  
  2669.   ~Wterm
  2670.       ``Widens'' the match: if the versions to match against have been limited
  2671.       by an enclosing matcher (such as ~D), these limits are dropped. Thus,
  2672.       ~Wterm matches a package version if term matches any version of that
  2673.       package.
  2674.  
  2675.  
  2676.  
  2677. Customizing aptitude
  2678.  
  2679.  
  2680. Customizing the Package List
  2681.  
  2682. The package list can be heavily customized: how packages are displayed, how the
  2683. package hierarchy is formed, how packages are sorted, and even how the display
  2684. is organized are all open to change.
  2685.  
  2686.  
  2687. Customizing how packages are displayed
  2688.  
  2689. This section describes how to configure the contents and format of the package
  2690. list, status line, and header line.
  2691.  
  2692. The format of each of these locations is defined by a ``format string''. A
  2693. format string is a string of text containing %-escapes such as %p, %S, and so
  2694. on. The resulting output is created by taking the text and replacing the %-
  2695. escapes according to their meanings (given below).
  2696.  
  2697. A %-escape can either have a fixed size, in which case it is always replaced by
  2698. the same amount of text (with extra space characters added to fill it out as
  2699. necessary), or it can be ``expandable'', meaning that it takes up the space that
  2700. is not claimed by fixed-size columns. If there are several expandable columns,
  2701. the extra space is divided evenly between them.
  2702.  
  2703. All %-escapes come with a default size and/or expandability. The size of a %-
  2704. escape can be changed by writing it between the % and the character identifying
  2705. the escape; for instance, %20V generates the candidate version of the package,
  2706. 20 characters wide. Placing a question mark (?) between the % and the character
  2707. identifying the escape causes the column's ``basic'' width to vary depending on
  2708. its content. Note that the resulting columns might not line up vertically!
  2709.  
  2710. If you want a particular %-escape to be expandable, even though it normally has
  2711. a fixed width, place a pound sign (ie, ``#'') immediately after it. For
  2712. instance, to display the candidate version of a package, no matter how long it
  2713. is, use the format string %V#. You can also place # after something that is not
  2714. a %-escape; aptitude will ``expand'' the text preceding the # by inserting extra
  2715. spaces after it.
  2716.  
  2717. In summary, the syntax of a %-escape is:
  2718.  
  2719. %[width][?]code[#]
  2720.  
  2721. The configuration variables Aptitude::UI::Package-Display-Format, Aptitude::UI::
  2722. Package-Status-Format, and Aptitude::UI::Package-Header-Format define the
  2723. default formats the package list, the header at the top of the package list, and
  2724. the status line below the package list respectively.
  2725.  
  2726. The following %-escapes are available in format strings:
  2727.  
  2728.  
  2729.  [Note]  Note
  2730.  
  2731.          Some of the descriptions below refer to ``the package''. In the GUI,
  2732.          this is either the package being displayed or the currently selected
  2733.          package; in the command-line search, this is the package being
  2734.          displayed.
  2735.  
  2736.  
  2737.  
  2738. Escape   Name                 Default size      Expandable Description
  2739.  
  2740.                                                            This is not really an
  2741.                                                            escape; it simply
  2742. %%       Literal %            1                 No         inserts a percent
  2743.                                                            sign into the output
  2744.                                                            at the point at which
  2745.                                                            it occurs.
  2746.  
  2747.                                                            In some
  2748.                                                            circumstances, a
  2749.                                                            display format string
  2750.                                                            will have
  2751.                                                            ``parameters'': for
  2752.                                                            instance, in the
  2753.          Parameter                                         command-line search,
  2754. %#number Replacement          Variable          No         the groups matched by
  2755.                                                            the search are used
  2756.                                                            as parameters when
  2757.                                                            displaying the
  2758.                                                            result. This format
  2759.                                                            code will be replaced
  2760.                                                            by the parameter
  2761.                                                            indicated by number.
  2762.  
  2763.                                                            A single-character
  2764.                                                            flag summarizing any
  2765.                                                            action to be
  2766. %a       Action Flag          1                 No         performed on the
  2767.                                                            package, as described
  2768.                                                            in Figure 2.10,
  2769.                                                            ``Values of the
  2770.                                                            ``action'' flag''.
  2771.  
  2772.                                                            A somewhat more
  2773.                                                            verbose description
  2774. %A       Action               10                No         of the action to be
  2775.                                                            performed on the
  2776.                                                            package.
  2777.  
  2778.                                                            If there are no
  2779.                                                            broken packages,
  2780.                                                            produces nothing.
  2781. %B       Broken Count         12                No         Otherwise, produces a
  2782.                                                            string such as
  2783.                                                            ``Broken: 10''
  2784.                                                            describing the number
  2785.                                                            of broken packages.
  2786.  
  2787.                                                            A single-character
  2788.                                                            flag summarizing the
  2789.                                                            current state of the
  2790. %c       Current State Flag   1                 No         package, as described
  2791.                                                            in Figure 2.9,
  2792.                                                            ``Values of the
  2793.                                                            ``current state''
  2794.                                                            flag''.
  2795.  
  2796.                                                            A more verbose
  2797. %C       Current State        11                No         description of the
  2798.                                                            current state of the
  2799.                                                            package.
  2800.  
  2801. %d       Description          40                Yes        The package's short
  2802.                                                            description.
  2803.  
  2804.                                                            The size of the
  2805. %D       Package Size         6                 No         package file
  2806.                                                            containing the
  2807.                                                            package.
  2808.  
  2809.                                                            The name of the
  2810. %H       Hostname             15                No         computer on which
  2811.                                                            aptitude is running.
  2812.  
  2813.                                                            Displays the highest
  2814.                                                            priority assigned to
  2815.                                                            a package version;
  2816. %i       Pin priority         4                 No         for packages,
  2817.                                                            displays the priority
  2818.                                                            of the version which
  2819.                                                            will be forced to be
  2820.                                                            installed (if any).
  2821.  
  2822.                                                            The (estimated)
  2823. %I       Installed Size       6                 No         amount of space the
  2824.                                                            package takes up on
  2825.                                                            disk.
  2826.  
  2827. %m       Maintainer           30                Yes        The maintainer of the
  2828.                                                            package.
  2829.  
  2830.                                                            If the package is
  2831.                                                            automatically
  2832. %M       Automatic Flag       1                 No         installed, outputs
  2833.                                                            ``A''; otherwise,
  2834.                                                            outputs nothing.
  2835.  
  2836.                               The length of                Outputs the version
  2837. %n       Program Version      ``0.4.1''.        No         of the program,
  2838.                                                            currently ``0.4.1''.
  2839.  
  2840.                               The length of the            Outputs the program
  2841. %N       Program Name         program name.     No         name; usually
  2842.                                                            ``aptitude''.
  2843.  
  2844.                                                            If no packages are
  2845.                                                            going to be
  2846.                                                            installed, outputs
  2847.                                                            nothing. Otherwise,
  2848.                                                            outputs a string
  2849.                                                            describing the total
  2850. %o       Download Size        15                No         size of all the
  2851.                                                            package files which
  2852.                                                            will be installed (an
  2853.                                                            estimate of how much
  2854.                                                            needs to be
  2855.                                                            downloaded); for
  2856.                                                            instance, ``DL size:
  2857.                                                            1000B''.
  2858.  
  2859.                                                            Outputs the name of
  2860.                                                            the package. When a
  2861.                                                            package is displayed
  2862.                                                            in a tree context,
  2863. %p       Package Name         30                Yes        the name of the
  2864.                                                            package will be
  2865.                                                            indented, if
  2866.                                                            possible, according
  2867.                                                            to its depth in the
  2868.                                                            tree.
  2869.  
  2870. %P       Priority             9                 No         Outputs the priority
  2871.                                                            of the package.
  2872.  
  2873.                                                            Outputs the
  2874.          Reverse Depends                                   approximate number of
  2875. %r       Count                2                 No         installed packages
  2876.                                                            which depend upon the
  2877.                                                            package.
  2878.  
  2879.                                                            Outputs an
  2880.                                                            abbreviated
  2881.                                                            description of the
  2882. %R       Abbreviated Priority 3                 No         package's priority:
  2883.                                                            for instance,
  2884.                                                            ``Important'' becomes
  2885.                                                            ``Imp''.
  2886.  
  2887. %s       Section              10                No         Outputs the section
  2888.                                                            of the package.
  2889.  
  2890.                                                            If the package is
  2891. %S       Trust Status         1                 No         untrusted, displays
  2892.                                                            the letter "U".
  2893.  
  2894. %t       Archive              10                Yes        The archive in which
  2895.                                                            the package is found.
  2896.  
  2897.                                                            Outputs ``*'' if the
  2898. %T       Tagged               1                 No         package is tagged,
  2899.                                                            nothing otherwise.
  2900.                                                            [14]
  2901.  
  2902.                                                            If the scheduled
  2903.                                                            actions will alter
  2904.                                                            the amount of space
  2905.                                                            used on the disk,
  2906. %u       Disk Usage Change    30                No         outputs a description
  2907.                                                            of the change in disk
  2908.                                                            space; for instance,
  2909.                                                            ``Will use 100M of
  2910.                                                            disk space.''
  2911.  
  2912.                                                            Outputs the currently
  2913.                                                            installed version of
  2914. %v       Current Version      10                No         the package, or
  2915.                                                            <none> if the package
  2916.                                                            is not currently
  2917.                                                            installed.
  2918.  
  2919.                                                            Outputs the version
  2920.                                                            of the package which
  2921.                                                            would be installed if
  2922. %V       Candidate Version    10                No         Package->Install (+)
  2923.                                                            were issued on the
  2924.                                                            package, or <none> if
  2925.                                                            the package is not
  2926.                                                            currently installed.
  2927.  
  2928.                                                            Outputs how much
  2929.                                                            additional space will
  2930.                                                            be used or how much
  2931. %Z       Size Change          7                 No         space will be freed
  2932.                                                            by installing,
  2933.                                                            upgrading, or
  2934.                                                            removing a package.
  2935.  
  2936.  
  2937.  
  2938. Customizing the package hierarchy
  2939.  
  2940. The package hierarchy is generated by a grouping policy: rules describing how
  2941. the hierarchy should be built. The grouping policy describes a ``pipeline'' of
  2942. rules; each rule can discard packages, create sub-hierarchies in which packages
  2943. reside, or otherwise manipulate the tree. The configuration items Aptitude::UI::
  2944. Default-Grouping and Aptitude::UI::Default-Preview-Grouping set the grouping
  2945. policies for newly created package lists and preview screens, respectively. You
  2946. can set the grouping policy for the current package list by pressing G.
  2947.  
  2948. The grouping policy is described by a comma-separated list of rules:
  2949. rule1,rule2,.... Each rule consists of the name of the rule, possibly followed
  2950. by arguments: for instance, versions or section(subdir). Whether arguments are
  2951. required and how many arguments are required (or allowed) depends on the type of
  2952. rule.
  2953.  
  2954. Rules can be non-terminal or terminal. A non-terminal rule will process a
  2955. package by generating some part of the hierarchy, then passing the package on to
  2956. a later rule. A terminal rule, on the other hand, will also generate part of the
  2957. tree (typically items corresponding to the package), but does not pass its
  2958. package to a later rule. If no terminal rule is specified, aptitude will use the
  2959. default rule, which is to create the standard ``package items''.
  2960.  
  2961.  
  2962.  
  2963.   action
  2964.  
  2965.       Groups packages according to the action scheduled on them; packages that
  2966.       are not upgradable and will be unchanged are ignored. This is the grouping
  2967.       that is used in preview trees.
  2968.  
  2969.  
  2970.   deps
  2971.  
  2972.       This is a terminal rule.
  2973.  
  2974.       Creates standard package items which can be expanded to reveal the
  2975.       dependencies of the package.
  2976.  
  2977.  
  2978.   filter(pattern)
  2979.  
  2980.       Include only packages for which at least one version matches pattern.
  2981.  
  2982.       If pattern is ``missing'', no packages are discarded. This is a backwards
  2983.       compatibility feature and may be removed in the future.
  2984.  
  2985.  
  2986.   firstchar
  2987.  
  2988.       Groups packages based on the first character of their name.
  2989.  
  2990.  
  2991.   hier
  2992.  
  2993.       Groups packages according to an extra data file describing a ``hierarchy''
  2994.       of packages.
  2995.  
  2996.  
  2997.   pattern(pattern [=> title][, ...])
  2998.  
  2999.       A customizable grouping policy. Each version of every package is matched
  3000.       against the given patterns. The first match found is used to assign a
  3001.       title to the package; packages are then grouped by their title. Strings of
  3002.       the form \N that occur in title will be replaced by the Nth result of the
  3003.       match. If title is not present, it is assumed to be \1.
  3004.  
  3005.       For instance, pattern(~m => \1) will group packages according to their
  3006.       Maintainer field. The policy pattern(~m) will do the same thing, as the
  3007.       absent title defaults to \1.
  3008.  
  3009.       See the section the section called ``Search Patterns'' for more
  3010.       information on the format of pattern.
  3011.  
  3012.  
  3013.   priority
  3014.  
  3015.       Groups packages according to their priority.
  3016.  
  3017.  
  3018.   section[(mode[,passthrough])]
  3019.  
  3020.       Groups packages according to their Section field.
  3021.  
  3022.       mode can be one of the following:
  3023.  
  3024.  
  3025.  
  3026.         none
  3027.             Group based on the whole Section field, so categories like ``non-
  3028.             free/games'' will be created.
  3029.  
  3030.  
  3031.         topdir
  3032.             Group based on the part of the Section field before the ``/''; if
  3033.             there is no /, main will be used instead.
  3034.  
  3035.  
  3036.         subdir
  3037.             Group based on the part of the Section field after the ``/''; if
  3038.             there is no /, the entire field will be used.
  3039.  
  3040.  
  3041.       If passthrough is present, packages which for some reason lack a true
  3042.       Section (for instance, virtual packages) will be passed directly to the
  3043.       next level of grouping without first being placed in sub-categories.
  3044.  
  3045.  
  3046.   status
  3047.  
  3048.       Groups packages into the following categories:
  3049.  
  3050.  
  3051.       * Installed
  3052.  
  3053.       * Not Installed
  3054.  
  3055.       * Security Updates
  3056.  
  3057.       * Upgradable
  3058.  
  3059.       * Obsolete
  3060.  
  3061.       * Virtual
  3062.  
  3063.  
  3064.  
  3065.   tag[(facet)]
  3066.  
  3067.       Groups packages according to the Tag information stored in the Debian
  3068.       package files. If facet is provided, then only tags corresponding to that
  3069.       facet will be displayed, and packages lacking this facet will be hidden;
  3070.       otherwise, all packages will be displayed at least once (with tagless
  3071.       packages listed separately from packages that have tags).
  3072.  
  3073.       For more information on debtags, see http://debtags.alioth.debian.org.
  3074.  
  3075.  
  3076.   task
  3077.  
  3078.       Creates a tree called ``Tasks'' which contains the available tasks
  3079.       (information on tasks is read from debian-tasks.desc in the package
  3080.       tasksel). The rule following task will create its categories as siblings
  3081.       of Tasks.
  3082.  
  3083.  
  3084.   versions
  3085.  
  3086.       This is a terminal rule.
  3087.  
  3088.       Creates standard package items which can be expanded to reveal the
  3089.       versions of the package.
  3090.  
  3091.  
  3092.  
  3093. Customizing how packages are sorted
  3094.  
  3095. By default, packages in the package list are sorted by name. However, it is
  3096. often useful to sort them according to different criteria (for instance, package
  3097. size), and aptitude allows you to do just that by modifying the sorting policy.
  3098.  
  3099. Like the grouping policy described in the previous section, the sorting policy
  3100. is a comma-separated list. Each item in the list is the name of a sorting rule;
  3101. if packages are ``equal'' according to the first rule, the second rule is used
  3102. to sort them, and so on. Placing a tilde character (~) in front of a rule
  3103. reverses the usual meaning of that rule. For instance, priority,~name will sort
  3104. packages by priority, but packages with the same priority will be placed in
  3105. reverse order according to name.
  3106.  
  3107. To change the sorting policy for an active package list, press S.
  3108.  
  3109. The available rules are:
  3110.  
  3111.  
  3112.  
  3113.   installsize
  3114.       Sorts packages by the estimated amount of size they require when
  3115.       installed.
  3116.  
  3117.  
  3118.   name
  3119.       Sorts packages by name.
  3120.  
  3121.  
  3122.   priority
  3123.       Sorts packages by priority.
  3124.  
  3125.  
  3126.   version
  3127.       Sorts packages according to their version number.
  3128.  
  3129.  
  3130.  
  3131. Customizing keybindings
  3132.  
  3133. The keys used to activate commands in aptitude can be customized in the
  3134. configuration file. Every command has an associated configuration variable under
  3135. Aptitude::UI::Keybindings; to change the keystroke bound to a command, just set
  3136. the corresponding variable to the keystroke. For instance, to make the key s
  3137. perform a search, set Aptitude::UI::Keybindings::Search to ``s''. You can
  3138. require the Control key to be pressed by placing ``C-'' in front of the key: for
  3139. instance, using ``C-s'' instead of ``s'' would bind Search to Control+s instead
  3140. of s. Finally, you can bind a command to several keys at once using a comma-
  3141. separated list: for instance, using ``s,C-s'' would cause both s and Control+s
  3142. to perform a search.
  3143.  
  3144. The following commands can be bound to keys by setting the variable Aptitude::
  3145. UI::Keybindings::command, where command is the name of the command to be bound:
  3146.  
  3147.  ______________________________________________________________________________
  3148. |Command               |Default        |Description                            |
  3149. |______________________|_______________|_______________________________________|
  3150. |                      |               |If packages are broken and aptitude has|
  3151. |ApplySolution         |!              |suggested a solution to the problem,   |
  3152. |                      |               |immediately apply the solution.        |
  3153. |______________________|_______________|_______________________________________|
  3154. |                      |               |Move to the beginning of the current   |
  3155. |Begin                 |home,C-a       |display: to the top of a list, or to   |
  3156. |                      |               |the left of a text entry field.        |
  3157. |______________________|_______________|_______________________________________|
  3158. |BugReport             |B              |Reports a bug in the currently selected|
  3159. |                      |               |package, using reportbug.              |
  3160. |______________________|_______________|_______________________________________|
  3161. |                      |               |Cancels the current interaction: for   |
  3162. |Cancel                |C-g,escape,C-[ |instance, discards a dialog box or     |
  3163. |                      |               |deactivates the menu.                  |
  3164. |______________________|_______________|_______________________________________|
  3165. |                      |               |Displays the changelog.Debian of the   |
  3166. |Changelog             |C              |currently selected package or package  |
  3167. |                      |               |version.                               |
  3168. |______________________|_______________|_______________________________________|
  3169. |ChangePkgTreeGrouping |G              |Changes the grouping policy of the     |
  3170. |                      |               |currently active package list.         |
  3171. |______________________|_______________|_______________________________________|
  3172. |ChangePkgTreeLimit    |l              |Changes the limit of the currently     |
  3173. |                      |               |active package list.                   |
  3174. |______________________|_______________|_______________________________________|
  3175. |ChangePkgTreeSorting  |S              |Changes the sorting policy of the      |
  3176. |                      |               |currently active package list.         |
  3177. |______________________|_______________|_______________________________________|
  3178. |ClearAuto             |m              |Marks the currently selected package as|
  3179. |                      |               |having been manually installed.        |
  3180. |______________________|_______________|_______________________________________|
  3181. |CollapseAll           |]              |Collapses the selected tree and all its|
  3182. |                      |               |children in a hierarchical list.       |
  3183. |______________________|_______________|_______________________________________|
  3184. |CollapseTree          |No binding     |Collapses the selected tree in a       |
  3185. |                      |               |hierarchical list.                     |
  3186. |______________________|_______________|_______________________________________|
  3187. |                      |               |In the hierarchy editor, stores the    |
  3188. |Commit                |N              |hierarchy location of the current      |
  3189. |                      |               |package and proceeds to the next       |
  3190. |                      |               |package.                               |
  3191. |______________________|_______________|_______________________________________|
  3192. |                      |               |In dialog boxes, this is equivalent to |
  3193. |Confirm               |enter          |pressing ``Ok''; when interacting with |
  3194. |                      |               |a status-line multiple choice question,|
  3195. |                      |               |it chooses the default option.         |
  3196. |______________________|_______________|_______________________________________|
  3197. |Cycle                 |tab            |Switches the keyboard focus to the next|
  3198. |                      |               |``widget''.                            |
  3199. |______________________|_______________|_______________________________________|
  3200. |CycleNext             |f6             |Switches to the next active view.      |
  3201. |______________________|_______________|_______________________________________|
  3202. |CycleOrder            |o              |Cycles through predefined arrangements |
  3203. |                      |               |of the display.                        |
  3204. |______________________|_______________|_______________________________________|
  3205. |CyclePrev             |f7             |Switches to the previous active view.  |
  3206. |______________________|_______________|_______________________________________|
  3207. |DelBOL                |C-u            |Deletes all text between the cursor and|
  3208. |                      |               |the beginning of the line.             |
  3209. |______________________|_______________|_______________________________________|
  3210. |DelBack               |backspace,C-h  |Deletes the previous character when    |
  3211. |                      |               |entering text.                         |
  3212. |______________________|_______________|_______________________________________|
  3213. |DelEOL                |C-k            |Deletes all text from the cursor to the|
  3214. |                      |               |end of the line.                       |
  3215. |______________________|_______________|_______________________________________|
  3216. |DelForward            |delete,C-d     |Deletes the character under the cursor |
  3217. |                      |               |when entering text.                    |
  3218. |______________________|_______________|_______________________________________|
  3219. |Dependencies          |d              |Displays the dependencies of the       |
  3220. |                      |               |currently selected package.            |
  3221. |______________________|_______________|_______________________________________|
  3222. |                      |               |When browsing the package list, cycles |
  3223. |DescriptionCycle      |i              |through the available views in the     |
  3224. |                      |               |information area.                      |
  3225. |______________________|_______________|_______________________________________|
  3226. |DescriptionDown       |z              |When browsing the package list, scrolls|
  3227. |                      |               |the information area down one line.    |
  3228. |______________________|_______________|_______________________________________|
  3229. |DescriptionUp         |a              |When browsing the package list, scrolls|
  3230. |                      |               |the information area up one line.      |
  3231. |______________________|_______________|_______________________________________|
  3232. |                      |               |If not in a preview screen, display the|
  3233. |DoInstallRun          |g              |preview screen [a]; if in a preview    |
  3234. |                      |               |screen, perform an install run.        |
  3235. |______________________|_______________|_______________________________________|
  3236. |                      |               |Moves down: for instance, scrolls a    |
  3237. |Down                  |down,j         |text display down or selects the next  |
  3238. |                      |               |item in a list.                        |
  3239. |______________________|_______________|_______________________________________|
  3240. |DpkgReconfigure       |R              |Runs ``dpkg-reconfigure'' on the       |
  3241. |                      |               |currently selected package.            |
  3242. |______________________|_______________|_______________________________________|
  3243. |                      |               |If packages are broken, writes the     |
  3244. |DumpResolver          |*              |current state of the problem-resolver  |
  3245. |                      |               |to a file (for debugging purposes).    |
  3246. |______________________|_______________|_______________________________________|
  3247. |EditHier              |E              |Opens the hierarchy editor.            |
  3248. |______________________|_______________|_______________________________________|
  3249. |                      |               |Move to the end of the current display:|
  3250. |End                   |end,C-e        |to the bottom of a list, or to the     |
  3251. |                      |               |right of a text entry field.           |
  3252. |______________________|_______________|_______________________________________|
  3253. |                      |               |If some packages are broken and        |
  3254. |ExamineSolution       |e              |aptitude has suggested a solution,     |
  3255. |                      |               |display a dialog box with a detailed   |
  3256. |                      |               |description of the proposed solution.  |
  3257. |______________________|_______________|_______________________________________|
  3258. |ExpandAll             |[              |Expands the selected tree and all its  |
  3259. |                      |               |children in a hierarchical list.       |
  3260. |______________________|_______________|_______________________________________|
  3261. |ExpandTree            |No binding     |Expands the selected tree in a         |
  3262. |                      |               |hierarchical list.                     |
  3263. |______________________|_______________|_______________________________________|
  3264. |FirstSolution         |<              |Select the first solution produced by  |
  3265. |                      |               |the problem resolver.                  |
  3266. |______________________|_______________|_______________________________________|
  3267. |                      |               |Forbids a package from being upgraded  |
  3268. |ForbidUpgrade         |F              |to the currently available version (or |
  3269. |                      |               |a particular version).                 |
  3270. |______________________|_______________|_______________________________________|
  3271. |                      |               |Discards all information about which   |
  3272. |ForgetNewPackages     |f              |packages are ``new'' (causes the list  |
  3273. |                      |               |of ``new'' packages to become empty).  |
  3274. |______________________|_______________|_______________________________________|
  3275. |Help                  |?              |Displays the on-line help screen.      |
  3276. |______________________|_______________|_______________________________________|
  3277. |HistoryNext           |down,C-n       |In a line editor with history, moves   |
  3278. |                      |               |forwards in the history.               |
  3279. |______________________|_______________|_______________________________________|
  3280. |HistoryPrev           |up,C-p         |In a line editor with history, moves   |
  3281. |                      |               |backwards in the history.              |
  3282. |______________________|_______________|_______________________________________|
  3283. |Hold                  |=              |Places a package on hold.              |
  3284. |______________________|_______________|_______________________________________|
  3285. |Install               |+              |Flags a package for installation.      |
  3286. |______________________|_______________|_______________________________________|
  3287. |                      |               |Marks a single package for             |
  3288. |InstallSingle         |I              |installation; all other packages are   |
  3289. |                      |               |kept at their current version.         |
  3290. |______________________|_______________|_______________________________________|
  3291. |Keep                  |:              |Cancels all installation or removal    |
  3292. |                      |               |requests and all holds for a package.  |
  3293. |______________________|_______________|_______________________________________|
  3294. |LastSolution          |<              |Select the last solution produced by   |
  3295. |                      |               |the problem resolver.                  |
  3296. |______________________|_______________|_______________________________________|
  3297. |                      |               |Moves left: for instance, moves one    |
  3298. |Left                  |left,h         |menu to the left in the menu bar, or   |
  3299. |                      |               |moves the cursor to the left when      |
  3300. |                      |               |editing text.                          |
  3301. |______________________|_______________|_______________________________________|
  3302. |                      |               |In a hierarchical list, selects the    |
  3303. |LevelDown             |J              |next sibling of the currently selected |
  3304. |                      |               |item (the next item at the same level  |
  3305. |                      |               |with the same parent).                 |
  3306. |______________________|_______________|_______________________________________|
  3307. |                      |               |In a hierarchical list, selects the    |
  3308. |LevelUp               |K              |previous sibling of the currently      |
  3309. |                      |               |selected item (the previous item at the|
  3310. |                      |               |same level with the same parent).      |
  3311. |______________________|_______________|_______________________________________|
  3312. |                      |               |Attempts to upgrade all packages which |
  3313. |MarkUpgradable        |U              |are not held back or forbidden from    |
  3314. |                      |               |upgrading.                             |
  3315. |______________________|_______________|_______________________________________|
  3316. |MineFlagSquare        |f              |In Minesweeper, places or removes a    |
  3317. |                      |               |flag on a square.                      |
  3318. |______________________|_______________|_______________________________________|
  3319. |MineLoadGame          |L              |Loads a Minesweeper game.              |
  3320. |______________________|_______________|_______________________________________|
  3321. |MineSaveGame          |S              |Saves a Minesweeper game.              |
  3322. |______________________|_______________|_______________________________________|
  3323. |MineSweepSquare       |No binding     |Sweeps around the current square in    |
  3324. |                      |               |Minesweeper.                           |
  3325. |______________________|_______________|_______________________________________|
  3326. |MineUncoverSquare     |No binding     |Uncovers the current square in         |
  3327. |                      |               |Minesweeper                            |
  3328. |______________________|_______________|_______________________________________|
  3329. |                      |               |Uncovers the current square in         |
  3330. |MineUncoverSweepSquare|enter          |Minesweeper if it is covered;          |
  3331. |                      |               |otherwise, sweeps around it.           |
  3332. |______________________|_______________|_______________________________________|
  3333. |NextPage              |pagedown,C-f   |Moves the current display one page     |
  3334. |                      |               |forward.                               |
  3335. |______________________|_______________|_______________________________________|
  3336. |NextSolution          |.              |Advance the dependency resolver to the |
  3337. |                      |               |next solution.                         |
  3338. |______________________|_______________|_______________________________________|
  3339. |No                    |n[b]           |This key will select the ``no'' button |
  3340. |                      |               |in yes/no dialog boxes.                |
  3341. |______________________|_______________|_______________________________________|
  3342. |Parent                |^              |Selects the parent of the selected item|
  3343. |                      |               |in a hierarchical list.                |
  3344. |______________________|_______________|_______________________________________|
  3345. |PrevPage              |pagedown,C-f   |Moves the current display one page     |
  3346. |                      |               |backward.                              |
  3347. |______________________|_______________|_______________________________________|
  3348. |PrevSolution          |,              |Return the dependency resolver to the  |
  3349. |                      |               |previous solution.                     |
  3350. |______________________|_______________|_______________________________________|
  3351. |Purge                 |_              |Flags the currently selected package to|
  3352. |                      |               |be purged.                             |
  3353. |______________________|_______________|_______________________________________|
  3354. |PushButton            |space,enter    |Activates the currently selected       |
  3355. |                      |               |button, or toggles a checkbox.         |
  3356. |______________________|_______________|_______________________________________|
  3357. |Quit                  |q              |Close the current view.                |
  3358. |______________________|_______________|_______________________________________|
  3359. |QuitProgram           |Q              |Quit the entire program.               |
  3360. |______________________|_______________|_______________________________________|
  3361. |Refresh               |C-l            |Redraws the screen from scratch.       |
  3362. |______________________|_______________|_______________________________________|
  3363. |Remove                |-              |Flags a package for removal.           |
  3364. |______________________|_______________|_______________________________________|
  3365. |ReInstall             |L              |Flags the currently selected package to|
  3366. |                      |               |be reinstalled.                        |
  3367. |______________________|_______________|_______________________________________|
  3368. |ReSearch              |n              |Repeats the last search.               |
  3369. |______________________|_______________|_______________________________________|
  3370. |ReverseDependencies   |r              |Displays packages which depend upon the|
  3371. |                      |               |currently selected package.            |
  3372. |______________________|_______________|_______________________________________|
  3373. |                      |               |Moves right: for instance, moves one   |
  3374. |Right                 |right,l        |menu to the right in the menu bar, or  |
  3375. |                      |               |moves the cursor to the right when     |
  3376. |                      |               |editing text.                          |
  3377. |______________________|_______________|_______________________________________|
  3378. |SaveHier              |S              |In the hierarchy editor, saves the     |
  3379. |                      |               |current hierarchy.                     |
  3380. |______________________|_______________|_______________________________________|
  3381. |Search                |/              |Activate the ``search'' function of the|
  3382. |                      |               |currently active interface element.    |
  3383. |______________________|_______________|_______________________________________|
  3384. |                      |               |Activate the ``search backwards''      |
  3385. |SearchBack            |\              |function of the currently active       |
  3386. |                      |               |interface element.                     |
  3387. |______________________|_______________|_______________________________________|
  3388. |SearchBroken          |b              |In a package tree, search for the next |
  3389. |                      |               |broken package.                        |
  3390. |______________________|_______________|_______________________________________|
  3391. |SetAuto               |M              |Marks the current package as having    |
  3392. |                      |               |been automatically installed.          |
  3393. |______________________|_______________|_______________________________________|
  3394. |ShowHideDescription   |D              |In a package list, toggles whether the |
  3395. |                      |               |information area is visible.           |
  3396. |______________________|_______________|_______________________________________|
  3397. |                      |               |When viewing a solution, marks the     |
  3398. |SolutionActionApprove |a              |currently selected action as "approved"|
  3399. |                      |               |(it will be included in future         |
  3400. |                      |               |solutions whenever possible).          |
  3401. |______________________|_______________|_______________________________________|
  3402. |                      |               |When viewing a solution, marks the     |
  3403. |SolutionActionReject  |r              |currently selected action as "rejected"|
  3404. |                      |               |(future solutions will not contain it).|
  3405. |______________________|_______________|_______________________________________|
  3406. |ToggleExpanded        |entry          |Expands or collapses the currently     |
  3407. |                      |               |selected tree in a hierarchical list.  |
  3408. |______________________|_______________|_______________________________________|
  3409. |ToggleMenuActive      |C-m,f10,C-space|Activates or deactivates the main menu.|
  3410. |______________________|_______________|_______________________________________|
  3411. |                      |               |Cancels the last action, up to when the|
  3412. |Undo                  |C-_,C-u        |program was started OR the last time   |
  3413. |                      |               |you update the package lists or        |
  3414. |                      |               |installed packages.                    |
  3415. |______________________|_______________|_______________________________________|
  3416. |                      |               |Moves up: for instance, scrolls a text |
  3417. |Up                    |up,k           |display up or selects the previous item|
  3418. |                      |               |in a list.                             |
  3419. |______________________|_______________|_______________________________________|
  3420. |                      |               |Updates the list of packages by        |
  3421. |UpdatePackageList     |u              |fetching new lists from the Internet if|
  3422. |                      |               |necessary.                             |
  3423. |______________________|_______________|_______________________________________|
  3424. |Versions              |v              |Displays the available versions of the |
  3425. |                      |               |currently selected package.            |
  3426. |______________________|_______________|_______________________________________|
  3427. |Yes                   |y [b]          |This key will select the ``Yes'' button|
  3428. |                      |               |in yes/no dialog boxes.                |
  3429. |______________________|_______________|_______________________________________|
  3430. |[a] unless Aptitude::Display-Planned-Action is false.                         |
  3431. |                                                                              |
  3432. |[b] This default may be different in different locales.                       |
  3433. |______________________________________________________________________________|
  3434.  
  3435. In addition to letter keys, number keys, and punctuation, the following
  3436. ``special'' keys can be bound:
  3437.  
  3438.  _____________________________________________________________________________
  3439. |Key name        |Description                                                 |
  3440. |________________|____________________________________________________________|
  3441. |a1              |The A1 key.                                                 |
  3442. |________________|____________________________________________________________|
  3443. |a3              |The A3 key.                                                 |
  3444. |________________|____________________________________________________________|
  3445. |b2              |The B2 key.                                                 |
  3446. |________________|____________________________________________________________|
  3447. |backspace       |The Backspace key.                                          |
  3448. |________________|____________________________________________________________|
  3449. |backtab         |The back-tab key                                            |
  3450. |________________|____________________________________________________________|
  3451. |begin           |The Begin key (not Home)                                    |
  3452. |________________|____________________________________________________________|
  3453. |break           |The ``break'' key.                                          |
  3454. |________________|____________________________________________________________|
  3455. |c1              |The C1 key.                                                 |
  3456. |________________|____________________________________________________________|
  3457. |c3              |The C3 key.                                                 |
  3458. |________________|____________________________________________________________|
  3459. |cancel          |The Cancel key.                                             |
  3460. |________________|____________________________________________________________|
  3461. |create          |The Create key.                                             |
  3462. |________________|____________________________________________________________|
  3463. |comma           |Comma (,) -- note that because commas are used to list keys,|
  3464. |                |this is the only way to bind to a comma.                    |
  3465. |________________|____________________________________________________________|
  3466. |command         |The Command key.                                            |
  3467. |________________|____________________________________________________________|
  3468. |copy            |The Copy key.                                               |
  3469. |________________|____________________________________________________________|
  3470. |delete          |The Delete key.                                             |
  3471. |________________|____________________________________________________________|
  3472. |delete_line     |The ``delete line'' key.                                    |
  3473. |________________|____________________________________________________________|
  3474. |down            |The ``down'' arrow key.                                     |
  3475. |________________|____________________________________________________________|
  3476. |end             |The End key.                                                |
  3477. |________________|____________________________________________________________|
  3478. |entry           |The Enter key.                                              |
  3479. |________________|____________________________________________________________|
  3480. |exit            |The Exit key.                                               |
  3481. |________________|____________________________________________________________|
  3482. |f1, f2, ..., f10|The F1 through F10 keys.                                    |
  3483. |________________|____________________________________________________________|
  3484. |find            |The Find key.                                               |
  3485. |________________|____________________________________________________________|
  3486. |home            |The Home key.                                               |
  3487. |________________|____________________________________________________________|
  3488. |insert          |The Insert key.                                             |
  3489. |________________|____________________________________________________________|
  3490. |insert_exit     |The ``insert exit'' key.                                    |
  3491. |________________|____________________________________________________________|
  3492. |clear           |The ``clear'' key.                                          |
  3493. |________________|____________________________________________________________|
  3494. |clear_eol       |The ``clear to end of line'' key.                           |
  3495. |________________|____________________________________________________________|
  3496. |clear_eos       |The ``clear to end of screen'' key.                         |
  3497. |________________|____________________________________________________________|
  3498. |insert_line     |The ``insert line'' key.                                    |
  3499. |________________|____________________________________________________________|
  3500. |left            |The ``left'' arrow key.                                     |
  3501. |________________|____________________________________________________________|
  3502. |mark            |The Mark key.                                               |
  3503. |________________|____________________________________________________________|
  3504. |message         |The Message key.                                            |
  3505. |________________|____________________________________________________________|
  3506. |move            |The Move key.                                               |
  3507. |________________|____________________________________________________________|
  3508. |next            |The Next key.                                               |
  3509. |________________|____________________________________________________________|
  3510. |open            |The Open key.                                               |
  3511. |________________|____________________________________________________________|
  3512. |previous        |The Previous key.                                           |
  3513. |________________|____________________________________________________________|
  3514. |print           |The Print key.                                              |
  3515. |________________|____________________________________________________________|
  3516. |redo            |The Redo key.                                               |
  3517. |________________|____________________________________________________________|
  3518. |reference       |The Reference key.                                          |
  3519. |________________|____________________________________________________________|
  3520. |refresh         |The Refresh key.                                            |
  3521. |________________|____________________________________________________________|
  3522. |replace         |The Replace key.                                            |
  3523. |________________|____________________________________________________________|
  3524. |restart         |The Restart key.                                            |
  3525. |________________|____________________________________________________________|
  3526. |resume          |The Resume key.                                             |
  3527. |________________|____________________________________________________________|
  3528. |return          |The Return key.                                             |
  3529. |________________|____________________________________________________________|
  3530. |right           |The ``right'' arrow key.                                    |
  3531. |________________|____________________________________________________________|
  3532. |save            |The Save key.                                               |
  3533. |________________|____________________________________________________________|
  3534. |scrollf         |The ``scroll forward'' key.                                 |
  3535. |________________|____________________________________________________________|
  3536. |scrollr         |The ``scroll backwards'' key.                               |
  3537. |________________|____________________________________________________________|
  3538. |select          |The Select key.                                             |
  3539. |________________|____________________________________________________________|
  3540. |suspend         |The Suspend key.                                            |
  3541. |________________|____________________________________________________________|
  3542. |pagedown        |The ``Page Down'' key.                                      |
  3543. |________________|____________________________________________________________|
  3544. |pageup          |The ``Page Up'' key.                                        |
  3545. |________________|____________________________________________________________|
  3546. |space           |The Space key                                               |
  3547. |________________|____________________________________________________________|
  3548. |tab             |The Tab key                                                 |
  3549. |________________|____________________________________________________________|
  3550. |undo            |The Undo key.                                               |
  3551. |________________|____________________________________________________________|
  3552. |up              |The ``up'' arrow key.                                       |
  3553. |________________|____________________________________________________________|
  3554.  
  3555. In addition to binding keys globally, it is possible to change key bindings for
  3556. one particular part (or domain) of the program: for instance, to make Tab the
  3557. equivalent of the right arrow key in menu bars, set Aptitude::UI::Keybindings::
  3558. Menubar::Right to ``tab,right''. The following domains are available:
  3559.  
  3560.  ______________________________________________________________________________
  3561. |Domain       |Description                                                     |
  3562. |_____________|________________________________________________________________|
  3563. |EditLine     |Used by line-editing widgets, such as the entry field in a      |
  3564. |             |``search'' dialog.                                              |
  3565. |_____________|________________________________________________________________|
  3566. |Menu         |Used by drop-down menus.                                        |
  3567. |_____________|________________________________________________________________|
  3568. |Menubar      |Used by the menu bar at the top of the screen.                  |
  3569. |_____________|________________________________________________________________|
  3570. |Minesweeper  |Used by the Minesweeper mode.                                   |
  3571. |_____________|________________________________________________________________|
  3572. |MinibufChoice|Used by the multiple-choice prompts that appear if you have     |
  3573. |             |chosen to have some prompts appear in the status line.          |
  3574. |_____________|________________________________________________________________|
  3575. |Pager        |Used when displaying a file on disk (for instance, the help     |
  3576. |             |text).                                                          |
  3577. |_____________|________________________________________________________________|
  3578. |PkgNode      |Used by packages, trees of packages, package versions, and      |
  3579. |             |package dependencies when they appear in package lists.         |
  3580. |_____________|________________________________________________________________|
  3581. |PkgTree      |Used by package lists.                                          |
  3582. |_____________|________________________________________________________________|
  3583. |Table        |Used by tables of widgets (for instance, dialog boxes).         |
  3584. |_____________|________________________________________________________________|
  3585. |TextLayout   |Used by formatted text displays, such as package descriptions.  |
  3586. |_____________|________________________________________________________________|
  3587. |Tree         |Used by all tree displays (including package lists, for which it|
  3588. |             |can be overridden by PkgTree).                                  |
  3589. |_____________|________________________________________________________________|
  3590.  
  3591.  
  3592. Customizing text colors and styles
  3593.  
  3594. The colors and visual styles used by aptitude to display text can be extensively
  3595. customized. Each visual element has an associated ``style'', which describes the
  3596. particular colors and visual attributes that will be used to display that
  3597. element. Styles take the form of a list of color and attribute settings. This
  3598. list is not necessarily exhaustive; if some colors or attributes are not
  3599. explicitly specified, their values will be taken from the surrounding visual
  3600. context. In fact, most visual elements have an ``empty'' style by default.
  3601.  
  3602. You can change the contents of a style by creating a configuration group of the
  3603. same name in the apt or aptitude configuration file. For instance, the
  3604. ``MenuBorder'' style is used to draw the visual border around drop-down menus.
  3605. By default, this border is drawn bold and white-on-blue. Placing the following
  3606. text in the configuration file would change it to white-on-cyan:
  3607.  
  3608. Aptitude::UI::Styles {
  3609.   MenuBorder {fg white; bg cyan; set bold;};
  3610. };
  3611.  
  3612. As you can see, a style's configuration group consists of a sequence of
  3613. instructions. The general classes of instructions are:
  3614.  
  3615.  
  3616.  
  3617.   fg color
  3618.       Sets the text foreground to the given color. See below for a list of the
  3619.       colors known to aptitude.
  3620.  
  3621.  
  3622.   bg color
  3623.       Sets the text background to the given color. See below for a list of the
  3624.       colors known to aptitude.
  3625.  
  3626.  
  3627.   set attribute
  3628.       Enables the given text attribute. See below for a list of the text
  3629.       attributes known to aptitude.
  3630.  
  3631.  
  3632.   clear attribute
  3633.       Disables the given text attribute. See below for a list of the text
  3634.       attributes known to aptitude.
  3635.  
  3636.  
  3637.   flip attribute
  3638.       Toggles the given text attribute: if it is enabled in the surrounding
  3639.       element, it will be disabled, and vice versa. See below for a list of the
  3640.       text attributes known to aptitude.
  3641.  
  3642.  
  3643. The colors that aptitude recognizes are black, blue, cyan, green, magenta, red,
  3644. white, and yellow [15]. In addition, you may specify default in place of a
  3645. background color to use the default terminal background (this could be the
  3646. default color, an image file, or even ``transparent''). The styles that aptitude
  3647. recognizes are:
  3648.  
  3649.  
  3650.  
  3651.   blink
  3652.       Enables blinking text.
  3653.  
  3654.  
  3655.   bold
  3656.       Makes the foreground color of the text (or the background if reverse video
  3657.       is enabled) brighter.
  3658.  
  3659.  
  3660.   dim
  3661.       May cause text to be extra-dim on some terminals. No effect has been
  3662.       observed on common Linux terminals.
  3663.  
  3664.  
  3665.   reverse
  3666.       Swaps the foreground and background colors. Many visual elements flip this
  3667.       attribute to perform common highlighting tasks.
  3668.  
  3669.  
  3670.   standout
  3671.       This enables ``the best highlighting mode of the terminal''. In xterms it
  3672.       is similar, but not idential to, reverse video; behavior on other
  3673.       terminals may vary.
  3674.  
  3675.  
  3676.   underline
  3677.       Enables underlined text.
  3678.  
  3679.  
  3680. You can select several attributes at once by separating them with commas; for
  3681. instance, set bold,standout;.
  3682.  
  3683.  
  3684.  [Note]  Note
  3685.  
  3686.          As hinted at above, the interpretation of both styles and text
  3687.          attributes is highly terminal-dependent. You may need to experiment a
  3688.          bit to find out exactly what some settings do on your terminal.
  3689.  
  3690.  
  3691. The following styles can be customized in aptitude:
  3692.  
  3693. Figure 2.11. Customizable styles in aptitude
  3694.  
  3695.  ______________________________________________________________________________
  3696. |Style                     |Default                  |Description              |
  3697. |__________________________|_________________________|_________________________|
  3698. |Bullet                    |fg yellow; set bold;     |The style of the bullets |
  3699. |                          |                         |in bulleted lists.       |
  3700. |__________________________|_________________________|_________________________|
  3701. |                          |                         |The style of newer       |
  3702. |                          |                         |versions of the package  |
  3703. |                          |                         |in the changelog view.   |
  3704. |                          |                         |Note that aptitude will  |
  3705. |ChangelogNewerVersion     |set bold;                |only highlight newer     |
  3706. |                          |                         |versions of the package  |
  3707. |                          |                         |if you have the package  |
  3708. |                          |                         |libparse-debianchangelog-|
  3709. |                          |                         |perl installed.          |
  3710. |__________________________|_________________________|_________________________|
  3711. |Default                   |fg white; bg black;      |The basic style of the   |
  3712. |                          |                         |screen.                  |
  3713. |__________________________|_________________________|_________________________|
  3714. |DepBroken                 |fg black; bg red;        |The style of unfulfilled |
  3715. |                          |                         |dependencies.            |
  3716. |__________________________|_________________________|_________________________|
  3717. |                          |fg black; bg blue; set   |The style of menu entries|
  3718. |DisabledMenuEntry         |dim;                     |that are disabled and    |
  3719. |                          |                         |cannot be used.          |
  3720. |__________________________|_________________________|_________________________|
  3721. |                          |                         |The style used to        |
  3722. |                          |                         |indicate that a file was |
  3723. |DownloadHit               |fg black; bg green;      |``hit'': i.e., it has not|
  3724. |                          |                         |changed since the last   |
  3725. |                          |                         |time it was downloaded.  |
  3726. |__________________________|_________________________|_________________________|
  3727. |DownloadProgress          |fg blue; bg yellow;      |The style of the progress|
  3728. |                          |                         |indicator for a download.|
  3729. |__________________________|_________________________|_________________________|
  3730. |                          |                         |The style of line editors|
  3731. |EditLine                  |fg white; bg black; clear|(for instance, the entry |
  3732. |                          |reverse;                 |in the ``Search''        |
  3733. |                          |                         |dialog).                 |
  3734. |__________________________|_________________________|_________________________|
  3735. |Error                     |fg white; bg red; set    |The style of error       |
  3736. |                          |bold;                    |messages.                |
  3737. |__________________________|_________________________|_________________________|
  3738. |Header                    |fg white; bg blue; set   |The style of screen      |
  3739. |                          |bold;                    |headers.                 |
  3740. |__________________________|_________________________|_________________________|
  3741. |                          |fg white; bg blue; set   |The style of the         |
  3742. |HighlightedMenuBar        |bold,reverse;            |currently selected menu  |
  3743. |                          |                         |name in the menu bar.    |
  3744. |__________________________|_________________________|_________________________|
  3745. |                          |fg white; bg blue; set   |The style of the         |
  3746. |HighlightedMenuEntry      |bold,reverse;            |currently selected choice|
  3747. |                          |                         |in a menu.               |
  3748. |__________________________|_________________________|_________________________|
  3749. |                          |fg yellow; bg red; set   |The style of the dialog  |
  3750. |MediaChange               |bold;                    |used to ask the user to  |
  3751. |                          |                         |insert a new CD.         |
  3752. |__________________________|_________________________|_________________________|
  3753. |MenuBar                   |fg white; bg blue; set   |The style of the menu    |
  3754. |                          |bold;                    |bar.                     |
  3755. |__________________________|_________________________|_________________________|
  3756. |                          |fg white; bg blue; set   |The style of the borders |
  3757. |MenuBorder                |bold;                    |that surround a drop-down|
  3758. |                          |                         |menu.                    |
  3759. |__________________________|_________________________|_________________________|
  3760. |MenuEntry                 |fg white; bg blue;       |The style of each entry  |
  3761. |                          |                         |in a drop-down menu.     |
  3762. |__________________________|_________________________|_________________________|
  3763. |MineBomb                  |fg red; set bold;        |The style of bombs in    |
  3764. |                          |                         |Minesweeper.             |
  3765. |__________________________|_________________________|_________________________|
  3766. |                          |                         |The style of the border  |
  3767. |MineBorder                |set bold;                |drawn around a           |
  3768. |                          |                         |Minesweeper board.       |
  3769. |__________________________|_________________________|_________________________|
  3770. |MineFlag                  |fg red; set bold;        |The style of flags in    |
  3771. |                          |                         |Minesweeper.             |
  3772. |__________________________|_________________________|_________________________|
  3773. |                          |                         |The style of the number N|
  3774. |MineNumberN               |Various                  |in Minesweeper; N may    |
  3775. |                          |                         |range from 0 to 8.       |
  3776. |__________________________|_________________________|_________________________|
  3777. |                          |                         |The color used to display|
  3778. |MultiplexTab              |fg white; bg blue;       |``tabs'' other than the  |
  3779. |                          |                         |currently selected one.  |
  3780. |__________________________|_________________________|_________________________|
  3781. |                          |                         |The color used to display|
  3782. |MultiplexTabHighlighted   |fg blue; bg white;       |the currently selected   |
  3783. |                          |                         |``tab''.                 |
  3784. |__________________________|_________________________|_________________________|
  3785. |                          |                         |The style of packages in |
  3786. |PkgBroken                 |fg red; flip reverse;    |the package list which   |
  3787. |                          |                         |have unfulfilled         |
  3788. |                          |                         |dependencies.            |
  3789. |__________________________|_________________________|_________________________|
  3790. |                          |                         |The style of highlighted |
  3791. |PkgBrokenHighlighted      |fg red;                  |packages in the package  |
  3792. |                          |                         |list which have          |
  3793. |                          |                         |unfulfilled dependencies.|
  3794. |__________________________|_________________________|_________________________|
  3795. |                          |                         |The style of packages    |
  3796. |PkgNotInstalled           |                         |which are not currently  |
  3797. |                          |                         |installed and will not be|
  3798. |                          |                         |installed.               |
  3799. |__________________________|_________________________|_________________________|
  3800. |                          |                         |The style of highlighted |
  3801. |PkgNotInstalledHighlighted|                         |packages which are not   |
  3802. |                          |                         |currently installed and  |
  3803. |                          |                         |will not be installed.   |
  3804. |__________________________|_________________________|_________________________|
  3805. |                          |                         |The style of packages    |
  3806. |PkgIsInstalled            |set bold;                |which are currently      |
  3807. |                          |                         |installed and for which  |
  3808. |                          |                         |no actions are scheduled.|
  3809. |__________________________|_________________________|_________________________|
  3810. |                          |                         |The style of highlighted |
  3811. |                          |                         |packages which are       |
  3812. |PkgIsInstalledHighlighted |set bold; flip reverse;  |currently installed and  |
  3813. |                          |                         |for which no actions are |
  3814. |                          |                         |scheduled.               |
  3815. |__________________________|_________________________|_________________________|
  3816. |                          |                         |The style of packages in |
  3817. |PkgToHold                 |fg white; flip reverse;  |the package list which   |
  3818. |                          |                         |are on hold.             |
  3819. |__________________________|_________________________|_________________________|
  3820. |                          |                         |The style of highlighted |
  3821. |PkgToHoldHighlighted      |fg white;                |packages in the package  |
  3822. |                          |                         |list which are on hold.  |
  3823. |__________________________|_________________________|_________________________|
  3824. |                          |                         |The style of packages in |
  3825. |PkgToInstall              |fg green; flip reverse;  |the package list which   |
  3826. |                          |                         |are being installed (not |
  3827. |                          |                         |upgraded) or reinstalled.|
  3828. |__________________________|_________________________|_________________________|
  3829. |                          |                         |The style of highlighted |
  3830. |                          |                         |packages in the package  |
  3831. |PkgToInstallHighlighted   |fg green;                |list which are being     |
  3832. |                          |                         |installed (not upgraded) |
  3833. |                          |                         |or reinstalled.          |
  3834. |__________________________|_________________________|_________________________|
  3835. |                          |                         |The style of packages in |
  3836. |PkgToRemove               |fg magenta; flip reverse;|the package list which   |
  3837. |                          |                         |will be removed or       |
  3838. |                          |                         |purged.                  |
  3839. |__________________________|_________________________|_________________________|
  3840. |                          |                         |The style of highlighted |
  3841. |PkgToRemoveHighlighted    |fg magenta;              |packages in the package  |
  3842. |                          |                         |list which will be       |
  3843. |                          |                         |removed or purged.       |
  3844. |__________________________|_________________________|_________________________|
  3845. |                          |                         |The style of packages in |
  3846. |PkgToUpgrade              |fg cyan; flip reverse;   |the package list which   |
  3847. |                          |                         |will be upgraded.        |
  3848. |__________________________|_________________________|_________________________|
  3849. |                          |                         |The style of packages in |
  3850. |PkgToUpgradeHighlighted   |fg cyan;                 |the package list which   |
  3851. |                          |                         |will be upgraded.        |
  3852. |__________________________|_________________________|_________________________|
  3853. |                          |                         |The style of progress    |
  3854. |                          |                         |indicators such as the   |
  3855. |Progress                  |fg blue; bg yellow;      |one that appears while   |
  3856. |                          |                         |the package cache is     |
  3857. |                          |                         |being loaded.            |
  3858. |__________________________|_________________________|_________________________|
  3859. |SolutionActionApproved    |bg green;                |The style of approved    |
  3860. |                          |                         |actions in a solution.   |
  3861. |__________________________|_________________________|_________________________|
  3862. |SolutionActionRejected    |bg red;                  |The style of rejected    |
  3863. |                          |                         |actions in a solution.   |
  3864. |__________________________|_________________________|_________________________|
  3865. |                          |fg white; bg blue; set   |The style of status lines|
  3866. |Status                    |bold;                    |at the bottom of the     |
  3867. |                          |                         |screen.                  |
  3868. |__________________________|_________________________|_________________________|
  3869. |TreeBackground            |                         |The basic color of all   |
  3870. |                          |                         |visual lists and trees.  |
  3871. |__________________________|_________________________|_________________________|
  3872. |                          |fg red; bg black; set    |The color used to display|
  3873. |TrustWarning              |bold;                    |warnings about package   |
  3874. |                          |                         |trust.                   |
  3875. |__________________________|_________________________|_________________________|
  3876.  
  3877.  
  3878. Customizing the display layout
  3879.  
  3880. It is possible to rearrange the aptitude package list by making suitable
  3881. modifications to the configuration file.
  3882.  
  3883.  
  3884. Display Elements
  3885.  
  3886. The layout is stored in the configuration group Aptitude::UI::Default-Package-
  3887. View, and consists of a list of display elements:
  3888.  
  3889. Name Type {
  3890.   Row row;
  3891.   Column column;
  3892.   Width width;
  3893.   Height height;
  3894.  
  3895.   additional options...
  3896. };
  3897.  
  3898. This creates a display element named Name; the type of element created is
  3899. determined by Type. The Row, Column, Width, and Height options must be present;
  3900. they determine where the display element is placed. (see below for a detailed
  3901. explanation of how display elements are arranged)
  3902.  
  3903. For examples of how to change the display layout, see the theme definitions in
  3904. the file /usr/share/aptitude/aptitude-defaults.
  3905.  
  3906. The following types of display elements are available:
  3907.  
  3908.  
  3909.  
  3910.   Description
  3911.       This display element will contain the ``information area'' (typically a
  3912.       description of the currently selected package).
  3913.  
  3914.       The option PopUpDownKey gives the name of a keyboard command which will
  3915.       cause the display element to be shown or hidden. For instance, setting
  3916.       this to ShowHideDescription will give the current display element the same
  3917.       behavior as the default information area. The option PopUpDownLinked gives
  3918.       the name of another display element; the current element will be shown or
  3919.       hidden whenever the other element is.
  3920.  
  3921.  
  3922.   MainWidget
  3923.       This is a placeholder for the ``main'' display element: typically this is
  3924.       the list of packages. A display layout must contain exactly one MainWidget
  3925.       element: no more, no less.
  3926.  
  3927.  
  3928.   Static
  3929.       A region of the screen which displays some text, possibly containing
  3930.       formatting codes as described in the section called ``Customizing how
  3931.       packages are displayed''. The text to display can be given in the Columns
  3932.       option, or it can be stored in another configuration variable specified by
  3933.       the ColumnsCfg option. The color of the text is determined by the color
  3934.       named by the Color option.
  3935.  
  3936.       Static items can be displayed and hidden in the same way as Description
  3937.       items, using the PopUpDownKey and PopUpDownLinked options.
  3938.  
  3939.  
  3940.  
  3941. Placement of display elements
  3942.  
  3943. The display elements are arranged in a ``table''. The upper-left corner of an
  3944. element is in the cell given by its Row and Column options (typically starting
  3945. from row 0 and column 0, but this is not required). The width of an element in
  3946. cells is given by its Width option, and its height is given by its Height
  3947. option.
  3948.  
  3949. Once the display elements are arranged and have been given an initial amount of
  3950. space on the screen, there is likely to be space left over. If there is extra
  3951. vertical space, each row containing a display element whose RowExpand option is
  3952. true will be allocated a share of the extra space; similarly, if there is extra
  3953. horizontal space, each column containing a display element whose ColExpand
  3954. option is true will be allocated a share of the extra space.
  3955.  
  3956. In the event that there is not enough space, every row and column whose widgets
  3957. all have their RowShrink or ColShrink options set to true will be shrunk. If
  3958. this is not enough, all rows and columns are shrunk to fit into the available
  3959. space.
  3960.  
  3961. If a display element is not expanded, but its row or column is, its alignment is
  3962. determined by the RowAlign and ColAlign options. Setting them to Left, Right,
  3963. Top, Bottom, or Center will tell aptitude where to place the element within the
  3964. row or column.
  3965.  
  3966. For instance, the following configuration group creates a static element named
  3967. ``Header'', which is three cells wide and will expand horizontally but not
  3968. vertically. It has the same color as other header lines and uses the standard
  3969. display format for header lines:
  3970.  
  3971. Header Static {
  3972.   Row 0;
  3973.   Column 0;
  3974.   Width 3;
  3975.   Height 1;
  3976.  
  3977.   ColExpand true;
  3978.   ColAlign Center;
  3979.  
  3980.   RowAlign Center;
  3981.  
  3982.   Color ScreenHeaderColor;
  3983.   ColumnsCfg HEADER;
  3984. };
  3985.  
  3986.  
  3987. Display layout option reference
  3988.  
  3989. The following options are available for display elements:
  3990.  
  3991.  
  3992.  
  3993.   ColAlign alignment;
  3994.       alignment must be either Left, Right, or Center. If the row containing the
  3995.       current display element is wider than the element itself and ColExpand is
  3996.       false, the element will be placed within the row according to the value of
  3997.       alignment.
  3998.  
  3999.       If this option is not present, it defaults to Left.
  4000.  
  4001.  
  4002.   ColExpand true|false;
  4003.       If this option is set to true, the column containing this display element
  4004.       will be allocated a share of any extra horizontal space that is available.
  4005.  
  4006.       If this option is not present, it defaults to false.
  4007.  
  4008.  
  4009.   Color colorname;
  4010.       This option applies to Static elements. colorname is the name of a color
  4011.       (for instance, ScreenStatusColor) which should be used as the ``default''
  4012.       color for this display element.
  4013.  
  4014.       If this option is not present, it defaults to DefaultWidgetBackground.
  4015.  
  4016.  
  4017.   ColShrink true|false;
  4018.       If this option is set to true on each element in a column and there is not
  4019.       enough horizontal space, the column will be shrunk as necessary to fit the
  4020.       available space. Note that a column may be shrunk even if ColShrink is
  4021.       false; it simply indicates that aptitude should try shrinking a particular
  4022.       column before shrinking other columns.
  4023.  
  4024.       If this option is not present, it defaults to false.
  4025.  
  4026.  
  4027.   Column column;
  4028.       Specifies the leftmost column containing this display element.
  4029.  
  4030.  
  4031.   Columns format;
  4032.       This option applies to Static display elements for which the ColumnsCfg
  4033.       option is not set. It sets the displayed contents of the status item; it
  4034.       is a format string as described in the section called ``Customizing how
  4035.       packages are displayed''.
  4036.  
  4037.  
  4038.   ColumnsCfg HEADER|STATUS|name;
  4039.       This option applies to Static display elements. It sets the display format
  4040.       of the current element to the value of another configuration variable: if
  4041.       it is HEADER or STATUS, the options Aptitude::UI::Package-Header-Format
  4042.       and Aptitude::UI::Package-Status-Format, repectively, are used; otherwise,
  4043.       the option name is used.
  4044.  
  4045.       If this option is not present, the value of the Columns option is used to
  4046.       control the contents of the static item.
  4047.  
  4048.  
  4049.   Height height;
  4050.       Specifies the height of the current display element.
  4051.  
  4052.  
  4053.   PopUpDownKey command;
  4054.       This option applies to Description and Static display elements.
  4055.  
  4056.       command is the name of a keyboard command (for instance,
  4057.       ShowHideDescription). When this key is pressed, the display element will
  4058.       be hidden if it is visible, and displayed if it is hidden.
  4059.  
  4060.  
  4061.   PopUpDownLinked element;
  4062.       This option applies to Description and Static display elements.
  4063.  
  4064.       element is the name of a display element. When element is displayed, the
  4065.       current element will also be displayed; when element is hidden, the
  4066.       current element will also be hidden.
  4067.  
  4068.  
  4069.   Row row;
  4070.       Specifies the uppermost row containing this display element.
  4071.  
  4072.  
  4073.   RowAlign alignment;
  4074.       alignment must be either Top, Bottom, or Center. If the row containing the
  4075.       current display element is taller than the element itself and RowExpand is
  4076.       false, the element will be placed within the row according to the value of
  4077.       alignment.
  4078.  
  4079.       If this option is not present, it defaults to Top.
  4080.  
  4081.  
  4082.   RowExpand true|false;
  4083.       If this option is set to true, the row containing this display element
  4084.       will be allocated a share of any extra vertical space that is available.
  4085.  
  4086.       If this option is not present, it defaults to false.
  4087.  
  4088.  
  4089.   RowShrink true|false;
  4090.       If this option is set to true on each element in a row and there is not
  4091.       enough vertical space, the row will be shrunk as necessary to fit the
  4092.       available space. Note that a row may be shrunk even if RowShrink is false;
  4093.       it simply indicates that aptitude should try shrinking a particular row
  4094.       before shrinking other rows.
  4095.  
  4096.       If this option is not present, it defaults to false.
  4097.  
  4098.  
  4099.   Visible true|false;
  4100.       If set to false, this display element will initially be hidden. Presumably
  4101.       only useful in conjunction with PopUpDownKey and/or PopUpDownLinked.
  4102.  
  4103.       If this option is not present, it defaults to true.
  4104.  
  4105.  
  4106.   Width width;
  4107.       Specifies the width of the current display element.
  4108.  
  4109.  
  4110.  
  4111. Configuration file reference
  4112.  
  4113.  
  4114. Configuration file format
  4115.  
  4116. In its basic form, aptitude's configuration file is a list of options and their
  4117. values. Each line of the file should have the form ``Option Value;'': for
  4118. instance, the following line in the configuration file sets the option
  4119. Aptitude::Theme to ``Dselect''.
  4120.  
  4121. Aptitude::Theme "Dselect";
  4122.  
  4123. An option can ``contain'' other options if they are written in curly braces
  4124. between the option and the semicolon following it, like this:
  4125.  
  4126. Aptitude::UI {
  4127.   Package-Status-Format "";
  4128.   Package-Display-Format "";
  4129. };
  4130.  
  4131. An option that contains other options is sometimes called a group. In fact, the
  4132. double colons that appear in option names are actually a shorthand way of
  4133. indicating containment: the option Aptitude::UI::Default-Grouping is contained
  4134. in the group Aptitude::UI, which itself is contained in the group Aptitude.
  4135. Thus, if you wanted to, you could set this option to "" as follows:
  4136.  
  4137. Aptitude {
  4138.   UI {
  4139.     Default-Grouping "";
  4140.   };
  4141. };
  4142.  
  4143. For more information on the format of the configuration file, see the manual
  4144. page apt.conf(5).
  4145.  
  4146.  
  4147. Locations of configuration files
  4148.  
  4149. aptitude's configuration is read from the following sources, in order:
  4150.  
  4151.  
  4152.   1. The user's configuration file, ~/.aptitude/config. This file is overwritten
  4153.      when the user modifies settings in the Options menu.
  4154.  
  4155.   2. The system configuration file, /etc/apt/apt.conf.
  4156.  
  4157.   3. Default values stored in /usr/share/aptitude/aptitude-defaults.
  4158.  
  4159.   4. Default values built into the program.
  4160.  
  4161.  
  4162. When an option is being checked, these sources are searched in order, and the
  4163. first one that provides a value for the option is used. For instance, setting an
  4164. option in /etc/apt/apt.conf will override aptitude's defaults for that option,
  4165. but will not override user settings in ~/.aptitude/config.
  4166.  
  4167.  
  4168. Available configuration options
  4169.  
  4170. The following configuration options are used by aptitude. Note that these are
  4171. not the only available configuration options; options used by the underlying apt
  4172. system are not listed here. See the manual pages apt(8) and apt.conf(5) for
  4173. information on apt options.
  4174.  
  4175. Option:Dir::Aptitude::state
  4176.  
  4177. Default:/var/lib/aptitude
  4178.  
  4179. Description: The directory in which aptitude's persistent state information is
  4180. stored.
  4181.  
  4182. Option:Aptitude::Allow-Null-Upgrade
  4183.  
  4184. Default:false
  4185.  
  4186. Description: Normally, if you try to start an install run when no actions will
  4187. be performed, aptitude will print a warning and return to the package list. If
  4188. this option is true, aptitude will continue to the preview screen whenever there
  4189. are upgradable packages, rather than displaying a reminder about the Actions-
  4190. >Mark Upgradable (U) command.
  4191.  
  4192. Option:Aptitude::Autoclean-After-Update
  4193.  
  4194. Default:false
  4195.  
  4196. Description: If this option is true, aptitude will clean up obsolete files (see
  4197. Actions->Clean obsolete files) every time you update the package list.
  4198.  
  4199. Option:Aptitude::Auto-Install
  4200.  
  4201. Default:true
  4202.  
  4203. Description: If this option is true, aptitude will automatically attempt to
  4204. fulfill the dependencies of a package when you select it for installation.
  4205.  
  4206. Option:Aptitude::Auto-Fix-Broken
  4207.  
  4208. Default:true
  4209.  
  4210. Description: If this option is false, aptitude will ask for permission before
  4211. attempting to fix any broken packages.
  4212.  
  4213. Option:Aptitude::Auto-Upgrade
  4214.  
  4215. Default:false
  4216.  
  4217. Description: If this option is true, aptitude will automatically flag all
  4218. upgradable packages for upgrade when the program starts, as if you had issued
  4219. the command Actions->Mark Upgradable (U).
  4220.  
  4221. Option:Aptitude::CmdLine::Always-Prompt
  4222.  
  4223. Default:false
  4224.  
  4225. Description: In command-line mode, if this is set, aptitude will always prompt
  4226. before starting to install or remove packages, even if the prompt would normally
  4227. be skipped. This is equivalent to the -P command-line option.
  4228.  
  4229. Option:Aptitude::CmdLine::Assume-Yes
  4230.  
  4231. Default:false
  4232.  
  4233. Description: In command-line mode, if this option is true, aptitude will act as
  4234. if the user had answered ``yes'' to every prompt, causing most prompts to be
  4235. skipped. This is equivalent to the -y command-line option.
  4236.  
  4237. Option:Aptitude::CmdLine::Ignore-Trust-Violations
  4238.  
  4239. Default:false
  4240.  
  4241. Description: In command-line mode, causes the program to ignore the installation
  4242. of untrusted packages.
  4243.  
  4244. Option:Aptitude::CmdLine::Resolver-Debug
  4245.  
  4246. Default:false
  4247.  
  4248. Description: In command-line mode, if this option is true, aptitude will print
  4249. extremely verbose information while attempting to resolve broken dependencies.
  4250. As the name suggests, this option is primarily meant to aid in debugging the
  4251. problem resolver.
  4252.  
  4253. Option:Aptitude::CmdLine::Resolver-Dump
  4254.  
  4255. Default:
  4256.  
  4257. Description: In command-line mode, if it is necessary to resolve broken
  4258. dependencies and this option is set to the name of a writable file, the resolver
  4259. state will be dumped to this file before any calculations are undertaken.
  4260.  
  4261. Option:Aptitude::CmdLine::Request-Strictness
  4262.  
  4263. Default:0
  4264.  
  4265. Description: When run in command-line mode, if dependency problems are
  4266. encountered, aptitude will add this value to the problem resolver score of each
  4267. action that you explicitly request.
  4268.  
  4269. Option:Aptitude::CmdLine::Download-Only
  4270.  
  4271. Default:false
  4272.  
  4273. Description: In command-line mode, if this option is true, aptitude will
  4274. download package files but not install them. This is equivalent to the -
  4275. d command-line option.
  4276.  
  4277. Option:Aptitude::CmdLine::Fix-Broken
  4278.  
  4279. Default:false
  4280.  
  4281. Description: In command-line mode, if this option is true, aptitude will be more
  4282. aggressive when attempting to fix the dependencies of broken packages. This is
  4283. equivalent to the -f command-line option.
  4284.  
  4285. Option:Aptitude::CmdLine::Package-Display-Format
  4286.  
  4287. Default:%c%a%M %p# - %d#
  4288.  
  4289. Description: This is a format string, as described in the section called
  4290. ``Customizing how packages are displayed'', which is used to display the results
  4291. of a command-line search. This is equivalent to the -F command-line option.
  4292.  
  4293. Option:Aptitude::CmdLine::Package-Display-Width
  4294.  
  4295. Default:
  4296.  
  4297. Description: This option gives the width in characters for which command-line
  4298. search results should be formatted. If it is empty (the default; ie, ""), search
  4299. results will be formatted for the current terminal size, or for an 80-column
  4300. display if the terminal size cannot be determined.
  4301.  
  4302. Option:Aptitude::CmdLine::Show-Deps
  4303.  
  4304. Default:false
  4305.  
  4306. Description: In command-line mode, if this option is true, aptitude will display
  4307. a brief summary of the dependencies (if any) relating to a package's state. This
  4308. is equivalent to the -D command-line option.
  4309.  
  4310. Option:Aptitude::CmdLine::Show-Versions
  4311.  
  4312. Default:false
  4313.  
  4314. Description: In command-line mode, if this option is true, aptitude will display
  4315. the version of a package that is being installed or removed. This is equivalent
  4316. to the -V command-line option.
  4317.  
  4318. Option:Aptitude::CmdLine::Show-Size-Changes
  4319.  
  4320. Default:false
  4321.  
  4322. Description: In command-line mode, if this option is true, aptitude will display
  4323. the expected change in the amount of space used by each package. This is
  4324. equivalent to the -Z command-line option.
  4325.  
  4326. Option:Aptitude::CmdLine::Simulate
  4327.  
  4328. Default:false
  4329.  
  4330. Description: This option is deprecated; use Aptitude::Simulate instead. In
  4331. command-line mode, causes aptitude to just display the actions that would be
  4332. performed (rather than actually performing them); in the visual interface,
  4333. causes the program to start in read-only mode regardless of whether you are root
  4334. or not. This is equivalent to the -s command-line option.
  4335.  
  4336. Option:Aptitude::CmdLine::Visual-Preview
  4337.  
  4338. Default:false
  4339.  
  4340. Description: If this option is true, aptitude will enter its visual mode to
  4341. display the preview of an installation run and to download packages.
  4342.  
  4343. Option:Aptitude::CmdLine::Verbose
  4344.  
  4345. Default:0
  4346.  
  4347. Description: This controls how verbose the command-line mode of aptitude is.
  4348. Every occurance of the -v command-line option adds 1 to this value.
  4349.  
  4350. Option:Aptitude::Delete-Unused
  4351.  
  4352. Default:true
  4353.  
  4354. Description: If this option is true, automatically installed packages which are
  4355. no longer required will be automatically removed. For more information, see the
  4356. section called ``Managing automatically installed packages''.
  4357.  
  4358. Option:Aptitude::Delete-Unused-Pattern
  4359.  
  4360. Default:
  4361.  
  4362. Description: Deprecated alias for Aptitude::Keep-Unused-Pattern. If Aptitude::
  4363. Keep-Unused-Pattern is unset or set to an empty string, the value of this
  4364. configuration option will override it. Otherwise, Aptitude::Delete-Unused-
  4365. Pattern is ignored.
  4366.  
  4367. Option:Aptitude::Display-Planned-Action
  4368.  
  4369. Default:true
  4370.  
  4371. Description: If this option is true, aptitude will display a preview screen
  4372. before actually carrying out the actions you have requested.
  4373.  
  4374. Option:Aptitude::Forget-New-On-Update
  4375.  
  4376. Default:false
  4377.  
  4378. Description: If this option is true, aptitude will clear the list of new
  4379. packages whenever the package list is updated, as if you had issued the command
  4380. Actions->Forget new packages (f).
  4381.  
  4382. Option:Aptitude::Forget-New-On-Install
  4383.  
  4384. Default:false
  4385.  
  4386. Description: If this option is true, aptitude will clear the list of new
  4387. packages whenever you install, upgrade, or remove packages, as if you had issued
  4388. the command Actions->Forget new packages (f).
  4389.  
  4390. Option:Aptitude::Ignore-Old-Tmp
  4391.  
  4392. Default:false
  4393.  
  4394. Description: Old versions of aptitude created a directory ~/.aptitude/.tmp which
  4395. is no longer necessary. If the directory exists and Aptitude::Ignore-Old-Tmp is
  4396. true, aptitude will ask you whether to remove this directory. This option is
  4397. automatically set to true after you reply. On the other hand, if the directory
  4398. does not exist, this option is set to false so that you will be notified if it
  4399. reappears.
  4400.  
  4401. Option:Aptitude::Keep-Recommends
  4402.  
  4403. Default:false
  4404.  
  4405. Description: If this option is true, then packages will be kept on the system as
  4406. long as any installed package recommends them, even if Aptitude::Recommends-
  4407. Important is false.
  4408.  
  4409. Option:Aptitude::Keep-Suggests
  4410.  
  4411. Default:false
  4412.  
  4413. Description: If this option is true, aptitude will keep automatically installed
  4414. packages on the system as long as any installed package suggests them. For more
  4415. information, see the section called ``Managing automatically installed
  4416. packages''.
  4417.  
  4418. Option:Aptitude::Keep-Unused-Pattern
  4419.  
  4420. Default:
  4421.  
  4422. Description: If Aptitude::Delete-Unused is true, only unused packages which do
  4423. not match this pattern (see the section called ``Search Patterns'') will be
  4424. removed. If this option is set to an empty string (the default), all unused
  4425. packages will be removed.
  4426.  
  4427. Option:Aptitude::Log
  4428.  
  4429. Default:/var/log/aptitude
  4430.  
  4431. Description: If this is set to a nonempty string, aptitude will log the package
  4432. installations, removals, and upgrades that it performs. If the value of
  4433. Aptitude::Log begins with a pipe character (ie, ``|''), the remainder of its
  4434. value is used as the name of a command into which the log will be piped: for
  4435. instance, |mail -s 'Aptitude install run' root will cause the log to be emailed
  4436. to root. To log to multiple files or commands, you may set this option to a list
  4437. of log targets.
  4438.  
  4439. Option:Aptitude::Pkg-Display-Limit
  4440.  
  4441. Default:
  4442.  
  4443. Description: The default filter applied to the package list; see the section
  4444. called ``Search Patterns'' for details about its format.
  4445.  
  4446. Option:Aptitude::Recommends-Important
  4447.  
  4448. Default:true
  4449.  
  4450. Description: If this option is true and Aptitude::Auto-Install is true,
  4451. installing a new package will also install any packages that it recommends.
  4452. Furthermore, if this option is true, then packages will be kept on the system if
  4453. an installed package recommends them.
  4454.  
  4455. Option:Aptitude::ProblemResolver::BreakHoldScore
  4456.  
  4457. Default:-300
  4458.  
  4459. Description: How much to reward or penalize solutions that change the state of a
  4460. held package.
  4461.  
  4462. Option:Aptitude::ProblemResolver::BrokenScore
  4463.  
  4464. Default:-100
  4465.  
  4466. Description: How much to reward or penalize prospective solutions based on the
  4467. number of dependencies they break. For each dependency broken by a possible
  4468. solution, this many points are added to its score; typically this should be a
  4469. negative value.
  4470.  
  4471. Option:Aptitude::ProblemResolver::Discard-Null-Solution
  4472.  
  4473. Default:true
  4474.  
  4475. Description: If this option is true, aptitude will never suggest cancelling all
  4476. of your proposed actions in order to resolve a dependency problem.
  4477.  
  4478. Option:Aptitude::ProblemResolver::EssentialRemoveScore
  4479.  
  4480. Default:-100000
  4481.  
  4482. Description: How much to reward or penalize solutions that remove an Essential
  4483. package.
  4484.  
  4485. Option:Aptitude::ProblemResolver::ExtraScore
  4486.  
  4487. Default:-1
  4488.  
  4489. Description: Any version of a package whose Priority is ``extra'' will have this
  4490. many points added to its score.
  4491.  
  4492. Option:Aptitude::ProblemResolver::ImportantScore
  4493.  
  4494. Default:5
  4495.  
  4496. Description: Any version of a package whose Priority is ``important'' will have
  4497. this many points added to its score.
  4498.  
  4499. Option:Aptitude::ProblemResolver::Infinity
  4500.  
  4501. Default:1000000
  4502.  
  4503. Description: A ``maximum'' score for potential solutions. If a set of actions
  4504. has a score worse than -Infinity, it will be discarded immediately.
  4505.  
  4506. Option:Aptitude::ProblemResolver::InstallScore
  4507.  
  4508. Default:-20
  4509.  
  4510. Description: How much weight the problem resolver should give to installing a
  4511. package, if the package is not already going to be installed.
  4512.  
  4513. Option:Aptitude::ProblemResolver::KeepScore
  4514.  
  4515. Default:0
  4516.  
  4517. Description: How much weight the problem resolver should give to keeping a
  4518. package in its current state, if that package is not already going to be kept in
  4519. its current state.
  4520.  
  4521. Option:Aptitude::ProblemResolver::Max-Successors
  4522.  
  4523. Default:0
  4524.  
  4525. Description: When new possible solutions are being generated, this value
  4526. controls how long the generation procedure lasts. Successors are generated in
  4527. discrete bundles, and as soon as at least one and at most Max-Successors nodes
  4528. have been generated, successor generation terminates. Turning this value up
  4529. might cause the first few generated solutions to have higher scores; on the
  4530. other hand, it might cause each resolver ``step'' to take a long time.
  4531.  
  4532. Option:Aptitude::ProblemResolver::NonDefaultScore
  4533.  
  4534. Default:-40
  4535.  
  4536. Description: How much weight the problem resolver should give to installing a
  4537. non-default version of the package (one that is not the current version and not
  4538. the ``candidate version'').
  4539.  
  4540. Option:Aptitude::ProblemResolver::OptionalScore
  4541.  
  4542. Default:1
  4543.  
  4544. Description: Any version of a package whose Priority is ``optional'' will have
  4545. this many points added to its score.
  4546.  
  4547. Option:Aptitude::ProblemResolver::PreserveAutoScore
  4548.  
  4549. Default:0
  4550.  
  4551. Description: How much weight the problem resolver should give to preserving
  4552. automatic installations or removals.
  4553.  
  4554. Option:Aptitude::ProblemResolver::PreserveManualScore
  4555.  
  4556. Default:60
  4557.  
  4558. Description: How much weight the problem resolver should give to preserving
  4559. explicit user selections.
  4560.  
  4561. Option:Aptitude::ProblemResolver::ResolutionScore
  4562.  
  4563. Default:50
  4564.  
  4565. Description: In addition to all other scoring factors, proposed solutions that
  4566. actually resolve all unsatisfied dependencies are awarded this many extra
  4567. points.
  4568.  
  4569. Option:Aptitude::ProblemResolver::RemoveScore
  4570.  
  4571. Default:-300
  4572.  
  4573. Description: How much weight the problem resolver should give to removing a
  4574. package (if it is not already marked for removal).
  4575.  
  4576. Option:Aptitude::ProblemResolver::RequiredScore
  4577.  
  4578. Default:4
  4579.  
  4580. Description: Any version of a package whose Priority is ``required'' will have
  4581. this many points added to its score.
  4582.  
  4583. Option:Aptitude::ProblemResolver::StandardScore
  4584.  
  4585. Default:3
  4586.  
  4587. Description: Any version of a package whose Priority is ``standard'' will have
  4588. this many points added to its score.
  4589.  
  4590. Option:Aptitude::ProblemResolver::StepLimit
  4591.  
  4592. Default:5000
  4593.  
  4594. Description: The maximum number of ``steps'' which should be performed by the
  4595. problem resolver on each attempt to find a solution to a dependency problem.
  4596. Decreasing this number will make the program ``give up'' sooner; increasing it
  4597. will permit the search for a solution to consume much more time and memory
  4598. before it is aborted. The default value is large enough to accomodate commonly
  4599. encountered situations, while preventing the program from ``blowing up'' if an
  4600. overly complicated problem is encountered. (note: this applies only to command-
  4601. line searches; in the visual interface, the resolver will continue working until
  4602. it reaches a solution)
  4603.  
  4604. Option:Aptitude::ProblemResolver::StepScore
  4605.  
  4606. Default:10
  4607.  
  4608. Description: How much to reward or penalize prospective solutions based on their
  4609. length. For each action performed by a solution, this many points are added to
  4610. its score. Typically this should be a negative value.
  4611.  
  4612. Option:Aptitude::ProblemResolver::UnfixedSoftScore
  4613.  
  4614. Default:-200
  4615.  
  4616. Description: How much to reward or penalize leaving a Recommends relationship
  4617. unresolved. This should typically be less than RemoveScore, or aptitude will
  4618. tend to remove packages rather than leaving their Recommendations unfixed. See
  4619. the section called ``Solving Dependency Problems'' for details.
  4620.  
  4621. Option:Aptitude::ProblemResolver::UpgradeScore
  4622.  
  4623. Default:0
  4624.  
  4625. Description: How much weight the problem resolver should give to upgrading (or
  4626. downgrading) a package to its candidate version, if the package was not already
  4627. going to be upgraded.
  4628.  
  4629. Option:Aptitude::ProblemResolver::WaitSteps
  4630.  
  4631. Default:50
  4632.  
  4633. Description: The number of resolver steps to perform in the foreground before
  4634. moving the resolution to the background thread. aptitude will be unresponsive
  4635. while this computation takes place; decreasing this value will make the program
  4636. more responsive, but may cause the progress indicator to appear unnecessarily.
  4637.  
  4638. Option:Aptitude::Purge-Unused
  4639.  
  4640. Default:false
  4641.  
  4642. Description: If this option is true and Aptitude::Delete-Unused is also true,
  4643. then packages which are unused will be purged from the system, removing their
  4644. configuration files and perhaps other important data. For more information about
  4645. which packages are considered to be ``unused'', see the section called
  4646. ``Managing automatically installed packages''. THIS OPTION CAN CAUSE DATA LOSS!
  4647. DO NOT ENABLE IT UNLESS YOU KNOW WHAT YOU ARE DOING!
  4648.  
  4649. Option:Aptitude::Simulate
  4650.  
  4651. Default:false
  4652.  
  4653. Description: In command-line mode, causes aptitude to just display the actions
  4654. that would be performed (rather than actually performing them); in the visual
  4655. interface, causes the program to start in read-only mode regardless of whether
  4656. you are root or not. This is equivalent to the -s command-line option.
  4657.  
  4658. Option:Aptitude::Suggests-Important
  4659.  
  4660. Default:false
  4661.  
  4662. Description: This is an obsolete option; use Aptitude::Keep-Suggests instead.
  4663. Setting this option to true has the same effect as setting Aptitude::Keep-
  4664. Suggests to true.
  4665.  
  4666. Option:Aptitude::Theme
  4667.  
  4668. Default:
  4669.  
  4670. Description: The theme that aptitude should use; see the section called
  4671. ``Themes'' for more information.
  4672.  
  4673. Option:Aptitude::Spin-Interval
  4674.  
  4675. Default:500
  4676.  
  4677. Description: The number of milliseconds to delay in between updating the
  4678. ``spinner'' that appears while the problem resolver is running.
  4679.  
  4680. Option:Aptitude::Track-Dselect-State
  4681.  
  4682. Default:true
  4683.  
  4684. Description: If this option is set to true, aptitude will attempt to detect when
  4685. a change to a package's state has been made using dselect or dpkg: for instance,
  4686. if you remove a package using dpkg, aptitude will not try to reinstall it. Note
  4687. that this may be somewhat buggy.
  4688.  
  4689. Option:Aptitude::UI::Advance-On-Action
  4690.  
  4691. Default:false
  4692.  
  4693. Description: If this option is set to true, changing a package's state (for
  4694. instance, marking it for installation) will cause aptitude to advance the
  4695. highlight to the next package in the current group.
  4696.  
  4697. Option:Aptitude::UI::Auto-Show-Reasons
  4698.  
  4699. Default:true
  4700.  
  4701. Description: If this option is set to true, selecting a package which is broken
  4702. or which appears to be causing other packages to be broken will cause the
  4703. information area to automatically display some reasons why the breakage might be
  4704. occuring.
  4705.  
  4706. Option:Aptitude::UI::Default-Grouping
  4707.  
  4708. Default:filter(missing),status,section(subdir,passthrough),section(topdir)
  4709.  
  4710. Description: Sets the default grouping policy used for package lists. See the
  4711. section called ``Customizing the package hierarchy'' for additional information
  4712. on grouping policies.
  4713.  
  4714. Option:Aptitude::UI::Default-Preview-Grouping
  4715.  
  4716. Default:action
  4717.  
  4718. Description: Sets the default grouping policy used for preview screens. See the
  4719. section called ``Customizing the package hierarchy'' for additional information
  4720. on grouping policies.
  4721.  
  4722. Option:Aptitude::UI::Default-Sorting
  4723.  
  4724. Default:name
  4725.  
  4726. Description: The default sorting policy of package views. See the section called
  4727. ``Customizing how packages are sorted'' for more information.
  4728.  
  4729. Option:Aptitude::UI::Description-Visible-By-Default
  4730.  
  4731. Default:true
  4732.  
  4733. Description: When a package list is first displayed, the information area (which
  4734. typically contains the long description of the current package) will be visible
  4735. if this option is true and hidden if it is false.
  4736.  
  4737. Option:Aptitude::UI::Default-Package-View
  4738.  
  4739. Default:
  4740.  
  4741. Description: This option is a group whose members define the default layout of
  4742. aptitude's display. See the section called ``Customizing the display layout''
  4743. for more information.
  4744.  
  4745. Option:Aptitude::UI::Download-Poll-Interval
  4746.  
  4747. Default:50000
  4748.  
  4749. Description: This option gives the interval in milliseconds at which the user
  4750. interface will update its display and poll for new input while a download is
  4751. being performed. Smaller values will make the program more responsive, but will
  4752. consume a larger amount of CPU time.
  4753.  
  4754. Option:Aptitude::UI::Exit-On-Last-Close
  4755.  
  4756. Default:true
  4757.  
  4758. Description: If this option is true, closing all the active views will quit
  4759. aptitude; otherwise, aptitude will not exit until you issue the command Actions-
  4760. >Quit (Q). See the section called ``Working with multiple views'' for more
  4761. information.
  4762.  
  4763. Option:Aptitude::UI::Fill-Text
  4764.  
  4765. Default:false
  4766.  
  4767. Description: If this option is true, aptitude will format descriptions so that
  4768. each line is exactly the width of the screen.
  4769.  
  4770. Option:Aptitude::UI::HelpBar
  4771.  
  4772. Default:true
  4773.  
  4774. Description: If this option is true, a line of information about important
  4775. keystrokes will be displayed at the top of the screen.
  4776.  
  4777. Option:Aptitude::UI::Incremental-Search
  4778.  
  4779. Default:true
  4780.  
  4781. Description: If this option is true, aptitude will perform ``incremental''
  4782. searches: as you type the search pattern, it will search for the next package
  4783. matching what you have typed so far.
  4784.  
  4785. Option:Aptitude::UI::Keybindings
  4786.  
  4787. Default:
  4788.  
  4789. Description: This is a group whose members define the connections between
  4790. keystrokes and commands in aptitude. For more information, see the section
  4791. called ``Customizing keybindings''.
  4792.  
  4793. Option:Aptitude::UI::Menubar-Autohide
  4794.  
  4795. Default:false
  4796.  
  4797. Description: If this option is set to true, the menu bar will be hidden while it
  4798. is not in use.
  4799.  
  4800. Option:Aptitude::UI::Minibuf-Download-Bar
  4801.  
  4802. Default:false
  4803.  
  4804. Description: If this option is set to true, aptitude will use a less obtrusive
  4805. mechanism to display the progress of downloads: a bar at the bottom of the
  4806. screen will appear which displays the current download status. While the
  4807. download is active, pressing q will abort it.
  4808.  
  4809. Option:Aptitude::UI::Minibuf-Prompts
  4810.  
  4811. Default:false
  4812.  
  4813. Description: If this option is true, some prompts (such as yes/no and multiple-
  4814. choice prompts) will be displayed at the bottom of the screen instead of in
  4815. dialog boxes.
  4816.  
  4817. Option:Aptitude::UI::New-Package-Commands
  4818.  
  4819. Default:true
  4820.  
  4821. Description: If this option is set to false, commands such as Package->Install
  4822. (+) will have the same deprecated behavior that they did in antique versions of
  4823. aptitude.
  4824.  
  4825. Option:Aptitude::UI::Package-Display-Format
  4826.  
  4827. Default:%c%a%M %p %Z %v %V
  4828.  
  4829. Description: This option controls the format string used to display packages in
  4830. package lists. For more information on format strings, see the section called
  4831. ``Customizing how packages are displayed''.
  4832.  
  4833. Option:Aptitude::UI::Package-Header-Format
  4834.  
  4835. Default:%N %n #%B %u %o
  4836.  
  4837. Description: This option controls the format string used to display the header
  4838. line of package lists (ie, the line that appears between the package list and
  4839. the menu bar). For more information on format strings, see the section called
  4840. ``Customizing how packages are displayed''.
  4841.  
  4842. Option:Aptitude::UI::Package-Status-Format
  4843.  
  4844. Default:%d
  4845.  
  4846. Description: This option controls the format string used to display the status
  4847. line of package lists (ie, the line that appears between the package list and
  4848. the information area). For more information on format strings, see the section
  4849. called ``Customizing how packages are displayed''.
  4850.  
  4851. Option:Aptitude::UI::Pause-After-Download
  4852.  
  4853. Default:OnlyIfError
  4854.  
  4855. Description: If this option is true, aptitude will display a message after it
  4856. finishes downloading packages, asking you if you want to continue with the
  4857. installation. If it is OnlyIfError, a message will only be displayed if a
  4858. download failed. Otherwise, if the option is set to false, aptitude will
  4859. immediately proceed to the next screen after completing a download.
  4860.  
  4861. Option:Aptitude::Preview-Limit
  4862.  
  4863. Default:
  4864.  
  4865. Description: The default filter applied to the preview screen; see the section
  4866. called ``Search Patterns'' for details about its format.
  4867.  
  4868. Option:Aptitude::UI::Prompt-On-Exit
  4869.  
  4870. Default:true
  4871.  
  4872. Description: If this option is true, aptitude will display a confirmation prompt
  4873. before shutting down.
  4874.  
  4875. Option:Aptitude::UI::Styles
  4876.  
  4877. Default:
  4878.  
  4879. Description: This is a configuration group whose contents define what textual
  4880. styles aptitude uses to display information. For more information, see the
  4881. section called ``Customizing text colors and styles''.
  4882.  
  4883. Option:Aptitude::Suppress-Read-Only-Warning
  4884.  
  4885. Default:false
  4886.  
  4887. Description: If this option is false, aptitude will display a warning the first
  4888. time that you attempt to modify package states while the program is in read-only
  4889. mode.
  4890.  
  4891. Option:Aptitude::Warn-Not-Root
  4892.  
  4893. Default:true
  4894.  
  4895. Description: If this option is true, aptitude will detect when you need root
  4896. privileges to do something, and ask you whether you want to switch to the root
  4897. account if you aren't root already. See the section called ``Becoming root'' for
  4898. more information.
  4899.  
  4900. Option:DebTags::Vocabulary
  4901.  
  4902. Default:/usr/share/debtags/vocabulary
  4903.  
  4904. Description: The location of the debtags vocabulary file; used to load in the
  4905. package tag metadata.
  4906.  
  4907. Option:Quiet
  4908.  
  4909. Default:0
  4910.  
  4911. Description: This controls the quietness of the command-line mode. Setting it to
  4912. a higher value will disable more progress indicators.
  4913.  
  4914.  
  4915. Themes
  4916.  
  4917. A theme in aptitude is simply a collection of settings that ``go together''.
  4918. Themes work by overriding the default values of options: if an option is not set
  4919. in the system configuration file or in your personal configuration file,
  4920. aptitude will use the setting from the current theme, if one is available,
  4921. before using the standard default value.
  4922.  
  4923. A theme is simply a named group under Aptitude::Themes; each configuration
  4924. option contained in the group will override the corresponding option in the
  4925. global configuration. For instance, if the Dselect theme is selected, the option
  4926. Aptitude::Themes::Dselect::Aptitude::UI::Package-Display-Format will override
  4927. the default value of the option Aptitude::UI::Package-Display-Format.
  4928.  
  4929. To select a theme, set the configuration option Aptitude::Theme to the name of
  4930. the theme; for instance,
  4931.  
  4932. Aptitude::Theme Vertical-Split;
  4933.  
  4934. The following themes are shipped with aptitude in /usr/share/aptitude/aptitude-
  4935. defaults:
  4936.  
  4937.  
  4938.  
  4939.   Dselect
  4940.       This theme makes aptitude look and behave more like the legacy dselect
  4941.       package manager:
  4942.  
  4943.        Actions  Undo  Package  Search  Options  Views  Help
  4944.       f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  4945.       --\ Installed Packages
  4946.         --\ Priority required
  4947.           --\ base - The Debian base system
  4948.       c   base  base-file 3.0.16      3.0.16      Debian base system
  4949.       miscellaneous fil
  4950.       c   base  base-pass 3.5.7       3.5.7       Debian base system master
  4951.       password a
  4952.       c   base  bash      2.05b-15    2.05b-15    The GNU Bourne Again SHell
  4953.       c   base  bsdutils  1:2.12-7    1:2.12-7    Basic utilities from 4.4BSD-
  4954.       Lite
  4955.       c   base  coreutils 5.0.91-2    5.0.91-2    The GNU core utilities
  4956.       c   base  debianuti 2.8.3       2.8.3       Miscellaneous utilities
  4957.       specific to
  4958.       c   base  diff      2.8.1-6     2.8.1-6     File comparison utilities
  4959.       base-files                      installed ; none
  4960.       required
  4961.       This package contains the basic filesystem hierarchy of a Debian system,
  4962.       and
  4963.       several important miscellaneous files, such as /etc/debian_version,
  4964.       /etc/host.conf, /etc/issue, /etc/motd, /etc/profile, /etc/nsswitch.conf,
  4965.       and
  4966.       others, and the text of several common licenses in use on Debian systems.
  4967.  
  4968.  
  4969.  
  4970.  
  4971.  
  4972.  
  4973.  
  4974.   Vertical-Split
  4975.       This theme rearranges the display: instead of the current package's
  4976.       description appearing underneath the package list, it is displayed to the
  4977.       right of the package list. This theme is useful with very wide terminals,
  4978.       and perhaps also when editing the built-in hierarchy of packages.
  4979.  
  4980.        Actions  Undo  Package  Search  Options  Views  Help
  4981.       f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  4982.       aptitude 0.2.14.1
  4983.       --\ Installed Packages                  Modern computers support the
  4984.       Advanced  #
  4985.         --\ admin - Administrative utilities  Configuration and Power Interface
  4986.           --\ main - The main Debian archive  (ACPI) to allow intelligent power
  4987.       i   acpid         1.0.3-19   1.0.3-19   management on your system and to
  4988.       query
  4989.       i   alien         8.44       8.44       battery and configuration status.
  4990.       i   anacron       2.3-9      2.3-9
  4991.       i   apt-show-vers 0.07       0.07       ACPID is a completely flexible,
  4992.       totally
  4993.       i A apt-utils     0.5.25     0.5.25     extensible daemon for delivering
  4994.       ACPI
  4995.       i   apt-watch     0.3.2-2    0.3.2-2    events. It listens on a file
  4996.       i   aptitude      0.2.14.1-2 0.2.14.1-2 (/proc/acpi/event) and when an
  4997.       event
  4998.       i   at            3.1.8-11   3.1.8-11   occurs, executes programs to
  4999.       handle the
  5000.       i   auto-apt      0.3.20     0.3.20     event. The programs it executes
  5001.       are
  5002.       i   cron          3.0pl1-83  3.0pl1-83  configured through a set of
  5003.       i   debconf       1.4.29     1.4.29     configuration files, which can be
  5004.       i   debconf-i18n  1.4.29     1.4.29     dropped into place by packages or
  5005.       by
  5006.       i A debootstrap   0.2.39     0.2.39     the admin.
  5007.       i A deborphan     1.7.3      1.7.3
  5008.       i   debtags       0.16       0.16       In order to use this package you
  5009.       need a
  5010.       i A defoma        0.11.8     0.11.8     recent Kernel (=>2.4.7). This can
  5011.       be
  5012.       i   discover      2.0.4-5    2.0.4-5    one including the patches on
  5013.       Utilities for using ACPI power management
  5014.  
  5015.  
  5016.  
  5017. Playing Minesweeper
  5018.  
  5019. In case you get tired of installing and removing packages, aptitude includes a
  5020. version of the classic game ``Minesweeper''. To start it, select Actions->Play
  5021. Minesweeper; the initial Minesweeper board will appear:
  5022.  
  5023.  Actions  Undo  Package  Search  Options  Views  Help
  5024. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  5025. Minesweeper                                              10/10 mines  13 seconds
  5026.  
  5027.  
  5028.  
  5029.  
  5030.  
  5031.                                    +--------+
  5032.                                    |        |
  5033.                                    |        |
  5034.                                    |        |
  5035.                                    |        |
  5036.                                    |        |
  5037.                                    |        |
  5038.                                    |        |
  5039.                                    |        |
  5040.                                    +--------+
  5041.  
  5042.  
  5043.  
  5044.  
  5045.  
  5046. Within the rectangle that appears on the screen are hidden ten mines. Your goal
  5047. is to determine, through intuition, logic, and luck, where those mines are,
  5048. without setting any of them off! To do this, you must uncover all the squares
  5049. that do not contain mines; in doing so, you will learn important information
  5050. regarding which squares do contain mines. Beware, however: uncovering a square
  5051. that contains a mine will set it off, ending your game immediately!
  5052.  
  5053. To uncover a square (and find out whether a mine is hidden there), select the
  5054. square with the arrow keys and press Enter:
  5055.  
  5056.  Actions  Undo  Package  Search  Options  Views  Help
  5057. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  5058. Minesweeper                                             10/10 mines  387 seconds
  5059.  
  5060.  
  5061.  
  5062.  
  5063.  
  5064.                                    +--------+
  5065.                                    | 2......|
  5066.                                    | 2111...|
  5067.                                    |    1...|
  5068.                                    | 1111...|
  5069.                                    |11...111|
  5070.                                    |...113  |
  5071.                                    |1122    |
  5072.                                    |        |
  5073.                                    +--------+
  5074.  
  5075.  
  5076.  
  5077.  
  5078.  
  5079. As you can see, some of the hidden (blank) parts of the board have been revealed
  5080. in this screenshot. The squares containing a . are squares which are not next to
  5081. any mines; the numbers in the remaining squares indicate how many mines they are
  5082. next to.
  5083.  
  5084. If you think you know where a mine is, you can place a ``flag'' on it. To do
  5085. this, select the suspected square and press f. For instance, in the screenshot
  5086. below, I decided that the square on the left-hand side of the board looked
  5087. suspicious...
  5088.  
  5089.  Actions  Undo  Package  Search  Options  Views  Help
  5090. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  5091. Minesweeper                                              9/10 mines  961 seconds
  5092.  
  5093.  
  5094.  
  5095.  
  5096.  
  5097.                                    +--------+
  5098.                                    | 2......|
  5099.                                    | 2111...|
  5100.                                    |    1...|
  5101.                                    |F1111...|
  5102.                                    |11...111|
  5103.                                    |...113  |
  5104.                                    |1122    |
  5105.                                    |        |
  5106.                                    +--------+
  5107.  
  5108.  
  5109.  
  5110.  
  5111.  
  5112. As you can see, an F appeared in the selected square. It is no longer possible
  5113. to uncover this square, even accidentally, until the flag is removed (by
  5114. pressing f again). Once you have placed flags on all the mines that are next to
  5115. a square (for instance, the squares labelled 1 next to the flag above), you can
  5116. ``sweep'' around the square. This is just a convenient shortcut to uncover all
  5117. the squares next to it (except those containing a flag, of course). For
  5118. instance, sweeping around the 1 above:
  5119.  
  5120.  Actions  Undo  Package  Search  Options  Views  Help
  5121. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  5122. Minesweeper                                              9/10 mines  2290
  5123. seconds
  5124.  
  5125.  
  5126.  
  5127.  
  5128.  
  5129.                                    +--------+
  5130.                                    | 2......|
  5131.                                    | 2111...|
  5132.                                    |221 1...|
  5133.                                    |F1111...|
  5134.                                    |11...111|
  5135.                                    |...113  |
  5136.                                    |1122    |
  5137.                                    |        |
  5138.                                    +--------+
  5139.  
  5140.  
  5141.  
  5142.  
  5143.  
  5144. Luckily (or was it luck?), my guess about the location of that mine was correct.
  5145. If I had been wrong, I would have lost immediately:
  5146.  
  5147.  Actions  Undo  Package  Search  Options  Views  Help
  5148. f10: Menu  ?: Help  q: Quit  u: Update  g: Download/Install/Remove Pkgs
  5149. Minesweeper                                   Minesweeper    Lost in 2388
  5150. seconds
  5151.  
  5152.  
  5153.  
  5154.  
  5155.  
  5156.                                    +--------+
  5157.                                    |^2......|
  5158.                                    |^2111...|
  5159.                                    |221^1...|
  5160.                                    |^1111...|
  5161.                                    |11...111|
  5162.                                    |...113^ |
  5163.                                    |1122* ^ |
  5164.                                    | ^ ^   ^|
  5165.                                    +--------+
  5166.  
  5167.  
  5168.  
  5169.  
  5170.  
  5171. When you lose, the locations of all the mines are revealed: unexploded mines are
  5172. indicated by a caret symbol (^), and the one you ``stepped on'' is indicated by
  5173. an asterisk (*).
  5174.  
  5175.  
  5176.  
  5177. --------------------------------------------------------------------------------
  5178. [7]I am pleased to say that the number of requests of this sort fell off
  5179. precipitously following the initial publication of this Guide. It would be a
  5180. happy occurance if there was a connection between the two events.
  5181.  
  5182. [8]This is sometimes referred to as an ``install run'', even though you might be
  5183. upgrading or removing packages in addition to installing them.
  5184.  
  5185. [9]As noted above, it does not indicate that the packages in the archive are
  5186. secure, or even non-malicious; it merely shows that they are genuine.
  5187.  
  5188. [10] More precisely: they will be removed when there is no path via Depends,
  5189. PreDepends, or Recommends to them from a manually installed package. If
  5190. Aptitude::Keep-Suggests is true, a Suggests relationship is also enough to keep
  5191. a package installed.
  5192.  
  5193. [11] Regular expression metacharacters include: ``+'', ``-'', ``.'', ``('',
  5194. ``)'', ``|'', ``['', ``]'', ``^'', ``$'', and ``?''. Note that some of these are
  5195. also aptitude metacharacters, so if you want to type (for instance) a literal
  5196. ``|'', it must be double-escaped: ``\~|''.
  5197.  
  5198. [12] The backslash escapes \\, \n, and \t are also available.
  5199.  
  5200. [13] This is provided largely for symmetry with ~T.
  5201.  
  5202. [14]Currently tagging is not supported; this escape is for future use.
  5203.  
  5204. [15] On some terminals, a ``yellow'' background will actually come out brown.
  5205.  
  5206.  
  5207. Chapter 3. aptitude FAQ
  5208.  
  5209.  
  5210.   ``What ... is your name?''                                    
  5211.  
  5212.   ``I am Arthur, King of the Britons.''
  5213.  
  5214.   ``What ... is your quest?''
  5215.  
  5216.   ``I seek the Holy Grail!''
  5217.  
  5218.   ``What ... is the airspeed velocity of an unladen swallow?''
  5219.  
  5220.   ``What do you mean? An African or a European swallow?''
  5221.  
  5222.   ``Huh? I ... I don't kn---AAAAAUUUGGGHH!''
  5223.  
  5224.                               -- Monty Python and the Holy Grail
  5225.  
  5226.  
  5227.  
  5228.  
  5229.   3.1. How can I find exactly one package by name?
  5230.  
  5231.   3.2. How can I find broken packages?
  5232.  
  5233.   3.3. I want to select text, why doesn't aptitude let me disable the mouse?
  5234.  
  5235.  
  5236. 3.1. How can I find exactly one package by name?
  5237.  
  5238.      As mentioned in the section called ``Search Patterns'', when you search for
  5239.      a package by name, the text you enter is actually a regular expression.
  5240.      Thus, the search pattern ``^name$'' will match only a package named name.
  5241.  
  5242.      For instance, you can find apt (but not aptitude or synaptic) by entering
  5243.      ^apt$; you can find g++ (but not g++-2.95 or g++-3.0) by entering ^g\+\+$.
  5244.  
  5245. 3.2. How can I find broken packages?
  5246.  
  5247.      Use the command Search->Find Broken (b).
  5248.  
  5249. 3.3. I want to select text, why doesn't aptitude let me disable the mouse?
  5250.  
  5251.      When a program running in an xterm is using the mouse, the xterm disables
  5252.      text selection. However, you can override this behavior and perform a
  5253.      selection by holding the Shift key down.
  5254.  
  5255.  
  5256.  
  5257. Chapter 4. Credits
  5258.  
  5259.  
  5260.   No-one remembers the singer. The song remains.  
  5261.  
  5262.                  -- Terry Pratchett, The Last Hero
  5263.  
  5264.  
  5265. This section commemorates some of the people who have contributed to aptitude
  5266. over its lifetime.
  5267.  
  5268.  
  5269.  [Note]  Note
  5270.  
  5271.          This section is presently rather incomplete and will likely be updated
  5272.          and expanded as time goes on (in particular, there are many missing
  5273.          translation credits due to the huge number of sources of translations
  5274.          [16]). If you think you should be on this list, please email
  5275.          <dburrows@debian.org> with an explanation of why you think so.
  5276.  
  5277.  
  5278. Translations and Internationalization
  5279.  
  5280.  
  5281.  
  5282.   Brazilian translation
  5283.       Andre Luis Lopes, Gustavo Silva
  5284.  
  5285.  
  5286.   Chinese translation
  5287.       Carlos Z.F. Liu
  5288.  
  5289.  
  5290.   Czech translation
  5291.       Miroslav Kure
  5292.  
  5293.  
  5294.   Danish translation
  5295.       Morten Brix Pedersen, Morten Bo Johansen
  5296.  
  5297.  
  5298.   Dutch translation
  5299.       Luk Claes
  5300.  
  5301.  
  5302.   Finnish translation
  5303.       Jaakko Kangasharju
  5304.  
  5305.  
  5306.   French translation
  5307.       Martin Quinson, Jean-Luc Coulon
  5308.  
  5309.  
  5310.   German translation
  5311.       Sebastian Schaffert, Erich Schubert, Sebastian Kapfe
  5312.  
  5313.  
  5314.   Italian translation
  5315.       Danilo Piazzalunga
  5316.  
  5317.  
  5318.   Japanese translation
  5319.       YasuoEto,
  5320.  
  5321.  
  5322.   Lithuanian translation
  5323.       Darius ?itkevicius
  5324.  
  5325.  
  5326.   Polish translation
  5327.       Michal Politowski
  5328.  
  5329.  
  5330.   Portuguese translation
  5331.       Nuno SΘnica, Miguel Figueiredo
  5332.  
  5333.  
  5334.   Norwegian translation
  5335.       Hσvard Korsvoll
  5336.  
  5337.  
  5338.   Spanish translation
  5339.       Jordi Malloch, Ruben Porras
  5340.  
  5341.  
  5342.   Initial i18n patch
  5343.       Masato Taruishi
  5344.  
  5345.  
  5346.   i18n triaging and maintainence
  5347.       Christian Perrier
  5348.  
  5349.  
  5350. Documentation
  5351.  
  5352.  
  5353.  
  5354.   User's Manual
  5355.       Daniel Burrows
  5356.  
  5357.  
  5358. Programming
  5359.  
  5360.  
  5361.  
  5362.   Program design and implementation
  5363.       Daniel Burrows
  5364.  
  5365.  
  5366.  
  5367.  
  5368. --------------------------------------------------------------------------------
  5369. [16] It should be possible to compile a fairly complete list of i18n
  5370. contributors based on the ChangeLog, its references to the Debian bug tracking
  5371. system, and the revision history of aptitude, but doing so will require a large
  5372. investment of time that is not currently available.
  5373.  
  5374.  
  5375.  
  5376. aptitude command-line reference
  5377.  
  5378. --------------------------------------------------------------------------------
  5379. Table of Contents
  5380.  
  5381.  
  5382.  
  5383.   aptitude - high-level interface to the package manager
  5384.  
  5385.  
  5386. Name
  5387.  
  5388. aptitude --; high-level interface to the package manager
  5389.  
  5390.  
  5391. Synopsis
  5392.  
  5393. aptitude [options...] { autoclean | clean | forget-new | keep-all | update |
  5394. upgrade }
  5395.  
  5396. aptitude [options...] { changelog | dist-upgrade | download | forbid-version |
  5397. hold | install | keep-all | markauto | purge | reinstall | remove | show |
  5398. unmarkauto } packages...
  5399.  
  5400. aptitude [options...] search patterns...
  5401.  
  5402. aptitude [-S fname] [ -u | -i ]
  5403.  
  5404. aptitude help
  5405.  
  5406.  
  5407. Description
  5408.  
  5409. aptitude is a text-based interface to the Debian GNU/Linux package system.
  5410.  
  5411. It allows the user to view the list of packages and to perform package
  5412. management tasks such as installing, upgrading, and removing packages. Actions
  5413. may be performed from a visual interface or from the command-line.
  5414.  
  5415.  
  5416. Command-Line Actions
  5417.  
  5418. The first argument which does not begin with a hyphen (``-'') is considered to
  5419. be an action that the program should perform. If an action is not specified on
  5420. the command-line, aptitude will start up in visual mode.
  5421.  
  5422. The following actions are available:
  5423.  
  5424.  
  5425.  
  5426.   install
  5427.       Install one or more packages. The packages should be listed after the
  5428.       ``install'' command; if a package name contains a tilde character (``~''),
  5429.       it will be treated as a search pattern and every package matching the
  5430.       pattern will be installed (see the section ``Search Patterns'' in the
  5431.       aptitude reference manual).
  5432.  
  5433.       To select a particular version of the package, append ``=version'' to the
  5434.       package name: for instance, ``aptitude install apt=0.3.1''. Similarly, to
  5435.       select a package from a particular archive, append ``/archive'' to the
  5436.       package name: for instance, ``aptitude install apt/experimental''.
  5437.  
  5438.        Not every package listed on the command line has to be installed; you can
  5439.       tell aptitude to do something different with a package by appending an
  5440.       ``override specifier'' to the name of the package. For example, aptitude
  5441.       remove wesnoth+ will install wesnoth, not remove it. The following
  5442.       override specifiers are available:
  5443.  
  5444.  
  5445.  
  5446.         package+
  5447.             Install package.
  5448.  
  5449.  
  5450.         package+M
  5451.             Install package and immediately mark it as automatically installed
  5452.             (note that if nothing depends on package, this will cause it to be
  5453.             immediately removed).
  5454.  
  5455.  
  5456.         package-
  5457.             Remove package.
  5458.  
  5459.  
  5460.         package_
  5461.             Purge package: remove it and all its associated configuration and
  5462.             data files.
  5463.  
  5464.  
  5465.         package=
  5466.             Place package on hold: cancel any active installation, upgrade, or
  5467.             removal, and prevent this package from being automatically upgraded
  5468.             in the future.
  5469.  
  5470.  
  5471.         package:
  5472.             Keep package at its current version: cancel any installation,
  5473.             removal, or upgrade. Unlike ``hold'' (above) this does not prevent
  5474.             automatic upgrades in the future.
  5475.  
  5476.  
  5477.         package&M
  5478.             Mark package as having been automatically installed.
  5479.  
  5480.  
  5481.         package&m
  5482.             Mark package as having been manually installed.
  5483.  
  5484.  
  5485.       As a special case, ``install'' with no arguments will act on any stored/
  5486.       pending actions.
  5487.  
  5488.  
  5489.        [Note]  Note
  5490.  
  5491.                Once you enter Y at the final confirmation prompt, the
  5492.                ``install'' command will modify aptitude's stored information
  5493.                about what actions to perform. Therefore, if you issue (e.g.) the
  5494.                command ``aptitude install foo bar'' and then abort the
  5495.                installation once aptitude has started downloading and installing
  5496.                packages, you will need to run ``aptitude remove foo bar'' to
  5497.                cancel that order.
  5498.  
  5499.  
  5500.  
  5501.   remove, purge, hold, keep, reinstall
  5502.       These commands are the same as ``install'', but apply the named action to
  5503.       all packages given on the command line for which it is not overridden. The
  5504.       difference between hold and keep is that hold will cause a package to be
  5505.       ignored by future upgrade commands, while keep merely cancels any
  5506.       scheduled actions on the package.
  5507.  
  5508.       For instance, ``aptitude remove '~ndeity''' will remove all packages whose
  5509.       name contains ``deity''.
  5510.  
  5511.  
  5512.   markauto, unmarkauto
  5513.       Mark packages as automatically installed or manually installed,
  5514.       respectively. Packages are specified in exactly the same way as for the
  5515.       ``install'' command. For instance, ``aptitude markauto '~slibs''' will
  5516.       mark all packages in the ``libs'' section as having been automatically
  5517.       installed.
  5518.  
  5519.       For more information on automatically installed packages, see the section
  5520.       ``Managing Automatically Installed Packages'' in the aptitude reference
  5521.       manual.
  5522.  
  5523.  
  5524.   forbid-version
  5525.       Forbid a package from being upgraded to a particular version. This will
  5526.       prevent aptitude from automatically upgrading to this version, but will
  5527.       allow automatic upgrades to future versions. By default, aptitude will
  5528.       select the version to which the package would normally be upgraded; you
  5529.       may override this selection by appending ``=version'' to the package name:
  5530.       for instance, ``aptitude forbid-version vim=1.2.3.broken-4''.
  5531.  
  5532.       This command is useful for avoiding broken versions of packages without
  5533.       having to set and clear manual holds. If you decide you really want the
  5534.       forbidden version after all, the ``install'' command will remove the ban.
  5535.  
  5536.  
  5537.   update
  5538.       Updates the list of available packages from the apt sources (this is
  5539.       equivalent to ``apt-get update'')
  5540.  
  5541.  
  5542.   upgrade
  5543.       Upgrades installed packages to their most recent version. Installed
  5544.       packages will not be removed unless they are unused (see the section
  5545.       ``Managing Automatically Installed Packages'' in the aptitude reference
  5546.       manual); packages which are not currently installed will not be installed.
  5547.  
  5548.       If a package cannot be upgraded without violating these constraints, it
  5549.       will be kept at its current version. Use the dist-upgrade command to
  5550.       upgrade these packages as well.
  5551.  
  5552.  
  5553.   dist-upgrade
  5554.       Upgrades installed packages to their most recent version, removing or
  5555.       installing packages as necessary. This command is less conservative than
  5556.       upgrade and thus more likely to perform unwanted actions. Users are
  5557.       advised to either use upgrade instead or to carefully inspect the list of
  5558.       packages to be installed and removed.
  5559.  
  5560.  
  5561.   keep-all
  5562.       Cancels all scheduled actions on all packages; any packages whose sticky
  5563.       state indicates an installation, removal, or upgrade will have this sticky
  5564.       state cleared.
  5565.  
  5566.  
  5567.   forget-new
  5568.       Forgets all internal information about what packages are ``new''
  5569.       (equivalent to pressing ``f'' when in visual mode).
  5570.  
  5571.  
  5572.   search
  5573.       Searches for packages matching one of the patterns supplied on the command
  5574.       line. All packages which match any of the given patterns will be
  5575.       displayed; for instance, ``aptitude search '~N''' will list all ``new''
  5576.       packages. For more information on search patterns, see the section
  5577.       ``Search Patterns'' in the aptitude reference manual.
  5578.  
  5579.       Unless you pass the -F option, the output of aptitude search will look
  5580.       something like this:
  5581.  
  5582.       i   apt                             - Advanced front-end for dpkg
  5583.  
  5584.       pi  apt-build                       - frontend to apt to build, optimize
  5585.       and in
  5586.       cp  apt-file                        - APT package searching utility -
  5587.       - command-
  5588.       ihA raptor-utils                    - Raptor RDF Parser utilities
  5589.  
  5590.       Each search result is listed on a separate line. The first character of
  5591.       each line indicates the current state of the package: the most common
  5592.       states are p, meaning that no trace of the package exists on the system,
  5593.       c, meaning that the package was deleted but its configuration files remain
  5594.       on the system, i, meaning that the package is installed, and v, meaning
  5595.       that the package is virtual. The second character indicates the stored
  5596.       action (if any; otherwise a blank space is displayed) to be performed on
  5597.       the package, with the most common actions being i, meaning that the
  5598.       package will be installed, d, meaning that the package will be deleted,
  5599.       and p, meaning that the package and its configuration files will be
  5600.       removed. If the third character is A, the package was automatically
  5601.       installed.
  5602.  
  5603.       For a complete list of the possible state and action flags, see the
  5604.       section ``Accessing Package Information'' in the aptitude reference guide.
  5605.  
  5606.  
  5607.   show
  5608.       Displays detailed information about one or more packages, listed following
  5609.       the search command. If a package name contains a tilde character (``~''),
  5610.       it will be treated as a search pattern and all matching packages will be
  5611.       displayed (see the section ``Search Patterns'' in the aptitude reference
  5612.       manual).
  5613.  
  5614.       If the verbosity level is 1 or greater (i.e., at least one -v is present
  5615.       on the command-line), information about all versions of the package is
  5616.       displayed. Otherwise, information about the ``candidate version'' (the
  5617.       version that ``aptitude install'' would download) is displayed.
  5618.  
  5619.       You can display information about a different version of the package by
  5620.       appending =version to the package name; you can display the version from a
  5621.       particular archive by appending /archive to the package name. If either of
  5622.       these is present, then only the version you request will be displayed,
  5623.       regardless of the verbosity level.
  5624.  
  5625.       If the verbosity level is 1 or greater, the package's architecture,
  5626.       compressed size, filename, and md5sum fields will be displayed. If the
  5627.       verbosity level is 2 or greater, the select version or versions will be
  5628.       displayed once for each archive in which they are found.
  5629.  
  5630.  
  5631.   clean
  5632.       Removes all previously downloaded .deb files from the package cache
  5633.       directory (usually /var/cache/apt/archives).
  5634.  
  5635.  
  5636.   autoclean
  5637.       Removes any cached packages which can no longer be downloaded. This allows
  5638.       you to prevent a cache from growing out of control over time without
  5639.       completely emptying it.
  5640.  
  5641.  
  5642.   changelog
  5643.       Downloads and displays the Debian changelog for each of the given source
  5644.       or binary packages.
  5645.  
  5646.       By default, the changelog for the version which would be installed with
  5647.       ``aptitude install'' is downloaded. You can select a particular version of
  5648.       a package by appending =version to the package name; you can select the
  5649.       version from a particular archive by appending /archive to the package
  5650.       name.
  5651.  
  5652.  
  5653.   download
  5654.       Downloads the .deb file for the given package to the current directory.
  5655.  
  5656.       By default, the version which would be installed with ``aptitude install''
  5657.       is downloaded. You can select a particular version of a package by
  5658.       appending =version to the package name; you can select the version from a
  5659.       particular archive by appending /archive to the package name.
  5660.  
  5661.  
  5662.   help
  5663.       Displays a brief summary of the available commands and options.
  5664.  
  5665.  
  5666.  
  5667. Options
  5668.  
  5669. The following options may be used to modify the behavior of the actions
  5670. described above. Note that while all options will be accepted for all commands,
  5671. some options don't apply to particular commands and will be ignored by those
  5672. commands.
  5673.  
  5674.  
  5675.  
  5676.   -D, --show-deps
  5677.       For commands that will install or remove packages (install, upgrade, etc),
  5678.       show brief explanations of automatic installations and removals.
  5679.  
  5680.       This corresponds to the configuration option Aptitude::CmdLine::Show-Deps.
  5681.  
  5682.  
  5683.   -d, --download-only
  5684.       Download packages to the package cache as necessary, but do not install or
  5685.       remove anything. By default, the package cache is stored in /var/cache/
  5686.       apt/archives.
  5687.  
  5688.       This corresponds to the configuration option Aptitude::CmdLine::Download-
  5689.       Only.
  5690.  
  5691.  
  5692.    -F format, --display-format format
  5693.       Specify the format which should be used to display output from the search
  5694.       command. For instance, passing ``%p %V %v'' for format will display a
  5695.       package's name, followed by its currently installed version and its
  5696.       available version (see the section ``Customizing how packages are
  5697.       displayed'' in the aptitude reference manual for more information).
  5698.  
  5699.       This corresponds to the configuration option Aptitude::CmdLine::Package-
  5700.       Display-Format.
  5701.  
  5702.  
  5703.   -f
  5704.       Try hard to fix the dependencies of broken packages, even if it means
  5705.       ignoring the actions requested on the command line.
  5706.  
  5707.       This corresponds to the configuration item Aptitude::CmdLine::Fix-Broken.
  5708.  
  5709.  
  5710.   -h, --help
  5711.       Display a brief help message. Identical to the help action.
  5712.  
  5713.  
  5714.   --purge-unused
  5715.       Purge packages that are no longer required by any installed package. This
  5716.       is equivalent to passing ``-o Aptitude::Purge-Unused=true'' as a command-
  5717.       line argument.
  5718.  
  5719.  
  5720.   -P, --prompt
  5721.       Always display a prompt, even when no actions other than those explicitly
  5722.       requested will be performed.
  5723.  
  5724.       This corresponds to the configuration option Aptitude::CmdLine::Always-
  5725.       Prompt.
  5726.  
  5727.  
  5728.   -R, --without-recommends
  5729.       Do not treat recommendations as dependencies when installing new packages
  5730.       (this overrides settings in /etc/apt/apt.conf and ~/.aptitude/config).
  5731.  
  5732.       This corresponds to the configuration option Aptitude::Recommends-
  5733.       Important
  5734.  
  5735.  
  5736.   -r, --with-recommends
  5737.       Treat recommendations as dependencies when installing new packages (this
  5738.       overrides settings in /etc/apt/apt.conf and ~/.aptitude/config).
  5739.  
  5740.       This corresponds to the configuration option Aptitude::Recommends-
  5741.       Important
  5742.  
  5743.  
  5744.   -s, --simulate
  5745.       In command-line mode, print the actions that would normally be performed,
  5746.       but don't actually perform them. This does not require root privileges. In
  5747.       the visual interface, always open the cache in read-only mode regardless
  5748.       of whether you are root.
  5749.  
  5750.       This corresponds to the configuration option Aptitude::Simulate.
  5751.  
  5752.  
  5753.   --schedule-only
  5754.       For commands that modify package states, schedule operations to be
  5755.       performed in the future, but don't perform them. You can execute scheduled
  5756.       actions by running aptitude install with no arguments. This is equivalent
  5757.       to making the corresponding selections in visual mode, then exiting the
  5758.       program normally.
  5759.  
  5760.       For instance, aptitude --schedule-only install evolution will schedule the
  5761.       evolution package for later installation.
  5762.  
  5763.  
  5764.   -t release, --target-release release
  5765.       Set the release from which packages should be installed. For instance,
  5766.       ``aptitude -t experimental ...'' will install packages from the
  5767.       experimental distribution unless you specify otherwise. For the command-
  5768.       line actions ``changelog'', ``download'', and ``show'', this is equivalent
  5769.       to appending /release to each package named on the command-line; for other
  5770.       commands, this will affect the default candidate version of packages
  5771.       according to the rules described in apt_preferences(5).
  5772.  
  5773.       This corresponds to the configuration item APT::Default-Release.
  5774.  
  5775.  
  5776.   -O order, --sort order
  5777.       Specify the order in which output from the search command should be
  5778.       displayed. For instance, passing ``installsize'' for order will list
  5779.       packages in order according to their size when installed (see the section
  5780.       ``Customizing how packages are sorted'' in the aptitude reference manual
  5781.       for more information).
  5782.  
  5783.  
  5784.   -o key=value
  5785.       Set a configuration file option directly; for instance, use -o Aptitude::
  5786.       Log=/tmp/my-log to log aptitude's actions to /tmp/my-log. For more
  5787.       information on configuration file options, see the section ``Configuration
  5788.       file reference'' in the aptitude reference manual.
  5789.  
  5790.  
  5791.   -q [=n], --quiet [=n]
  5792.       Suppress all incremental progress indicators, thus making the output
  5793.       loggable. This may be supplied multiple times to make the program quieter,
  5794.       but unlike apt-get, aptitude does not enable -y when -q is supplied more
  5795.       than once.
  5796.  
  5797.       The optional =n may be used to directly set the amount of quietness (for
  5798.       instance, to override a setting in /etc/apt/apt.conf); it causes the
  5799.       program to behave as if -q had been passed exactly n times.
  5800.  
  5801.  
  5802.   -V, --show-versions
  5803.       Show which versions of packages will be installed.
  5804.  
  5805.       This corresponds to the configuration option Aptitude::CmdLine::Show-
  5806.       Versions.
  5807.  
  5808.  
  5809.   -v, --verbose
  5810.       Causes some commands (for instance, show) to display extra information.
  5811.       This may be supplied multiple times to get more and more information.
  5812.  
  5813.       This corresponds to the configuration option Aptitude::CmdLine::Verbose.
  5814.  
  5815.  
  5816.   --version
  5817.       Display the version of aptitude and some information about how it was
  5818.       compiled.
  5819.  
  5820.  
  5821.   --visual-preview
  5822.       When installing or removing packages from the command line, instead of
  5823.       displaying the usual prompt, start up the visual interface and display its
  5824.       preview screen.
  5825.  
  5826.  
  5827.   -w width, --width width
  5828.       Specify the display width which should be used for output from the search
  5829.       command (by default, the terminal width is used).
  5830.  
  5831.       This corresponds to the configuration option Aptitude::CmdLine::Package-
  5832.       Display-Width
  5833.  
  5834.  
  5835.   -y, --assume-yes
  5836.       When a yes/no prompt would be presented, assume that the user entered
  5837.       ``yes''. In particular, suppresses the prompt that appears when
  5838.       installing, upgrading, or removing packages. Prompts for ``dangerous''
  5839.       actions, such as removing essential packages, will still be displayed.
  5840.       This option overrides -P.
  5841.  
  5842.       This corresponds to the configuration option Aptitude::CmdLine::Assume-
  5843.       Yes.
  5844.  
  5845.  
  5846.   -Z
  5847.       Show how much disk space will be used or freed by the individual packages
  5848.       being installed, upgraded, or removed.
  5849.  
  5850.       This corresponds to the configuration option Aptitude::CmdLine::Show-Size-
  5851.       Changes.
  5852.  
  5853.  
  5854. The following options apply to the visual mode of the program, but are primarily
  5855. for internal use; you generally won't need to use them yourself.
  5856.  
  5857.  
  5858.  
  5859.   -S fname
  5860.       Loads the extended state information from fname instead of the standard
  5861.       state file.
  5862.  
  5863.  
  5864.   -u
  5865.       Begins updating the package lists as soon as the program starts. You
  5866.       cannot use this option and -i at the same time.
  5867.  
  5868.  
  5869.   -i
  5870.       Displays a download preview when the program starts (equivalent to
  5871.       starting the program and immediately pressing ``g''). You cannot use this
  5872.       option and ``-u'' at the same time.
  5873.  
  5874.  
  5875.  
  5876. Environment
  5877.  
  5878. HOME
  5879.  
  5880. If $HOME/.aptitude exists, aptitude will store its configuration file in
  5881. $HOME/.aptitude/config. Otherwise, it will look up the current user's home
  5882. directory using getpwuid(2) and place its configuration file there.
  5883.  
  5884. PAGER
  5885.  
  5886. If this environment variable is set, aptitude will use it to display changelogs
  5887. when ``aptitude changelog'' is invoked. If not set, it defaults to more.
  5888.  
  5889. TMP
  5890.  
  5891. If TMPDIR is unset, aptitude will store its temporary files in TMP if that
  5892. variable is set. Otherwise, it will store them in /tmp.
  5893.  
  5894. TMPDIR
  5895.  
  5896. aptitude will store its temporary files in the directory indicated by this
  5897. environment variable. If TMPDIR is not set, then TMP will be used; if TMP is
  5898. also unset, then aptitude will use /tmp.
  5899.  
  5900.  
  5901. See Also
  5902.  
  5903. apt-get(8), apt(8), /usr/share/doc/aptitude/lang/html/index.html from the
  5904. package aptitude-doc-lang
  5905.  
  5906.