- As a special case, "install" with no arguments will act on any stored/pending actions.
Note Once you enter Y at the final confirmation prompt, the "install" command will modify aptitude's stored information about what actions to perform. Therefore, if you issue (e.g.) the command "aptitude install foo bar" and then abort the installation once aptitude has started downloading and installing packages, you will need to run "aptitude remove foo bar" to cancel that order.
- remove, purge, hold, unhold, keep, reinstall
- These commands are the same as "install", but apply the named action to all packages given on the command line for which it is not overridden. The difference between hold and keep is that hold will cause a package to be ignored by future upgrade commands, while keep merely cancels any scheduled actions on the package. unhold will cause a package to be upgraded by future upgrade commands, without otherwise altering its state.
For instance, "aptitude remove '~ndeity'" will remove all packages whose name contains "deity".
- markauto, unmarkauto
- Mark packages as automatically installed or manually installed, respectively. Packages are specified in exactly the same way as for the "install" command. For instance, "aptitude markauto '~slibs'" will mark all packages in the "libs" section as having been automatically installed.
For more information on automatically installed packages, see the section "Managing Automatically Installed Packages" in the aptitude reference manual.
- Forbid a package from being upgraded to a particular version. This will prevent aptitude from automatically upgrading to this version, but will allow automatic upgrades to future versions. By default, aptitude will select the version to which the package would normally be upgraded; you may override this selection by appending "=<version>" to the package name: for instance, "aptitude forbid-version vim=1.2.3.broken-4".
This command is useful for avoiding broken versions of packages without having to set and clear manual holds. If you decide you really want the forbidden version after all, the "install" command will remove the ban.
Updates the list of available packages from the apt sources (this is equivalent to "apt-get update")
- Upgrades installed packages to their most recent version. Installed packages will not be removed unless they are unused (see the section "Managing Automatically Installed Packages" in the aptitude reference manual); packages which are not currently installed will not be installed.
If a package cannot be upgraded without violating these constraints, it will be kept at its current version. Use the dist-upgrade command to upgrade these packages as well.
- Upgrades installed packages to their most recent version, removing or installing packages as necessary. This command is less conservative than upgrade and thus more likely to perform unwanted actions. Users are advised to either use upgrade instead or to carefully inspect the list of packages to be installed and removed.
- Cancels all scheduled actions on all packages; any packages whose sticky state indicates an installation, removal, or upgrade will have this sticky state cleared.
- Forgets all internal information about what packages are "new" (equivalent to pressing "f" when in visual mode).
Searches for packages matching one of the patterns supplied on the command line. All packages which match any of the given patterns will be displayed; for instance, "aptitude search '~N'" will list all "new" packages. For more information on search patterns, see the section "Search Patterns" in the aptitude reference manual.
- Unless you pass the -F option, the output of aptitude search will look something like this:
- i apt - Advanced front-end for dpkg pi apt-build - frontend to apt to build, optimize and in cp apt-file - APT package searching utility -- command- ihA raptor-utils - Raptor RDF Parser utilities Each search result is listed on a separate line. The first character of each line indicates the current state of the package: the most common states are p, meaning that no trace of the package exists on the system, c, meaning that the package was deleted but its configuration files remain on the system, i, meaning that the package is installed, and v, meaning that the package is virtual. The second character indicates the stored action (if any; otherwise a blank space is displayed) to be performed on the package, with the most common actions being i, meaning that the package will be installed, d, meaning that the package will be deleted, and p, meaning that the package and its configuration files will be removed. If the third character is A, the package was automatically installed.
For a complete list of the possible state and action flags, see the section "Accessing Package Information" in the aptitude reference guide.
Displays detailed information about one or more packages, listed following the search command. If a package name contains a tilde character ("~"), it will be treated as a search pattern and all matching packages will be displayed (see the section "Search Patterns" in the aptitude reference manual).
- If the verbosity level is 1 or greater (i.e., at least one -v is present on the command-line), information about all versions of the package is displayed. Otherwise, information about the "candidate version" (the version that "aptitude install" would download) is displayed.
You can display information about a different version of the package by appending =<version> to the package name; you can display the version from a particular archive by appending /<archive> to the package name. If either of these is present, then only the version you request will be displayed, regardless of the verbosity level.
If the verbosity level is 1 or greater, the package's architecture, compressed size, filename, and md5sum fields will be displayed. If the verbosity level is 2 or greater, the select version or versions will be displayed once for each archive in which they are found.
Removes all previously downloaded .deb files from the package cache directory (usually /var/cache/apt/archives).
- Removes any cached packages which can no longer be downloaded. This allows you to prevent a cache from growing out of control over time without completely emptying it.
- Downloads and displays the Debian changelog for each of the given source or binary packages.
By default, the changelog for the version which would be installed with "aptitude install" is downloaded. You can select a particular version of a package by appending =<version> to the package name; you can select the version from a particular archive by appending /<archive> to the package name.
- Downloads the .deb file for the given package to the current directory.
By default, the version which would be installed with "aptitude install" is downloaded. You can select a particular version of a package by appending =<version> to the package name; you can select the version from a particular archive by appending /<archive> to the package name.
Displays a brief summary of the available commands and options.