Contents
How to see the installed packages in aptitude?
To know the list of packages available in configured repository, use search option of aptitude along with the string pattern of the package name. The following will display all the packages that has “xvnc” anywhere in the name. 5. Display all Installed Packages In order to list all the installed packages, use the search option as shown below:
What is the default version of the aptitude command?
By default, aptitude selects the version of the package; you may override this selection by appending = 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.
What should the output of aptitude show?
In the above output, aptitude will display the following: List of all dependent packages that will be installed. Total size of all the packages that will be downloaded, which is helpful to know how much data it will download from the repository. Total disk size required after unpacking the packages.
Can you specify both archive and version in aptitude?
You cannot specify both an archive and a version for a package. Not every package listed on the command line has to be installed; you can tell aptitude to do something different with a package by appending an “override specifier” to the name of the package.
How to search for available packages from the..?
Using aptitude, apt-cache, and apt all format the output differently. (None of these require the use of sudo when searching for a package.) I prefer using apt for its readability. It highlights the package name and puts a space between the different packages. It also has [installed] listed next to each package that is already installed. Usage:
Which is an example of an aptitude command?
This article explains several aptitude command examples including the following: Install a specific version of a package. Install multiple packages using pattern. Search for a package using pattern. Get packages under a section. Don’t update a specific package (Using hold and keep) Mark a package with a specific install type. Perform system update.
How to remove Vim-GTK in aptitude command?
# aptitude remove vim-gtk The following packages will be REMOVED: vim-gtk 0 packages upgraded, 0 newly installed, 1 to remove and 317 not upgraded. Need to get 0 B of archives. After unpacking 2,442 kB will be freed.