Create a free Team What is Teams? Learn more. How to install aptitude? Ask Question. Asked 7 years, 5 months ago. Active 4 months ago. Viewed k times. I've tried to install aptitude on a clean install of Ubuntu Server Building dependency tree Reading state information The following extra packages will be installed: apt-xapian-index aptitude-common iso-codes libboost-iostreams1.
Need to get kB of archives. After this operation, Do you want to continue? Once you are done with the package, you can also remove it by using apt remove aptitude -y command as shown below. Save my name, email, and website in this browser for the next time I comment. Table of Contents. Mark package as having been automatically installed. Mark package as having been manually installed.
Therefore, if you issue e. Satisfy the build-dependencies of a package. If the command-line parameter --arch-only is present, only architecture-dependent build dependencies i. Mark packages as automatically installed or manually installed, respectively. Mark packages to be on hold, remove this property, or set to keep in the current state.
The difference between hold and keep is that hold will cause a package to be ignored by future safe-upgrade or full-upgrade commands, while keep merely cancels any scheduled actions on the package. Cancels all scheduled actions on all packages; any packages whose sticky state indicates an installation, removal, or upgrade will have this sticky state cleared.
This command accepts package names or patterns as arguments. Forbid a package from being upgraded to a particular version, while allowing automatic upgrades to future versions.
This is useful for example to avoid a known broken version of a package, without having to set and clear manual holds. By default, aptitude will select the forbidden version to be the one which the package would normally be upgraded the candidate version. Upgrades installed packages to their most recent version. Packages which are not currently installed may be installed to resolve dependencies unless the --no-new-installs command-line option is supplied. If no package s are listed on the command line, aptitude will attempt to upgrade every package that can be upgraded.
Otherwise, aptitude will attempt to upgrade only the packages which it is instructed to upgrade. The package s can be extended with suffixes in the same manner as arguments to aptitude install , so you can also give additional instructions to aptitude here; for instance, aptitude safe-upgrade bash dash- will attempt to upgrade the bash package and remove the dash package.
It is sometimes necessary to remove one package in order to upgrade another; this command is not able to upgrade packages in such situations. Use the full-upgrade command to upgrade as many packages as possible. Upgrades installed packages to their most recent version, removing or installing packages as necessary. It also installs new Essential or Required packages. This command is less conservative than safe-upgrade and thus more likely to perform unwanted actions.
However, it is capable of upgrading packages that safe-upgrade cannot upgrade. The package s can be extended with suffixes in the same manner as arguments to aptitude install , so you can also give additional instructions to aptitude here; for instance, aptitude full-upgrade bash dash- will attempt to upgrade the bash package and remove the dash package. This command was originally named dist-upgrade for historical reasons, and aptitude still recognizes dist-upgrade as a synonym for full-upgrade.
Searches for packages matching one of the patterns supplied on the command line. Unless you pass the -F option, the output of aptitude search will look something like this:. 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. To customize the output of search , see the command-line options -F and --sort. Displays detailed information about one or more packages. If the verbosity level is 1 or greater i. 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. This is a thin wrapper over apt 8. Each version is listed on a separate line.
The leftmost three characters indicate the current state, planned state if any , and whether the package was automatically installed; for more information on their meanings, see the documentation of aptitude search. To the right of the version number you can find the releases from which the version is available, and the pin priority of the version.
If the input is a search pattern, or if more than one package's versions are to be displayed, aptitude will automatically group the output by package, as shown above.
In addition to the above options, the information printed for each version can be controlled by the command-line option -F. The primary command is "aptitude", as is the name of its primary Debian package. Aptitude User Manual Online: The manual for the latest version of aptitude is usually available in English on the Debian website. If you have just aptitude installed e. Interactive Use To run interactively, enter the following from a terminal emulator : aptitude After running it, use: F10 or Ctrl-T to access the menu.
Some time when you need to resolve conflicts, you discover that you made a mistake; you can easily use 'Cancel pending actions' in the 'Actions' menu so that you can re-select. But you should try the aptitude search foo way. You should discover that the output is a bit different from apt-cache , in some cases, it may be useful to search for a package to see if it is already installed.
0コメント