snippetbashTip
aptitude — Debian and Ubuntu package management utility. More information: <https://manned.org/aptitude>.
Viewed 0 times
managementcommandanddebiancliubuntupackageaptitude
linux
Problem
How to use the
aptitude command: Debian and Ubuntu package management utility. More information: <https://manned.org/aptitude>.Solution
aptitude — Debian and Ubuntu package management utility. More information: <https://manned.org/aptitude>.Synchronize list of packages and versions available. This should be run first, before running subsequent
aptitude commands:sudo aptitude updateInstall a new package and its dependencies:
sudo aptitude install {{package}}Search for a package:
aptitude search {{package}}Search for an installed package (
?installed is an aptitude search term):aptitude search '?installed({{package}})'Remove a package and all packages depending on it:
sudo aptitude remove {{package}}Upgrade installed packages to the newest available versions:
sudo aptitude upgradeUpgrade installed packages (like
aptitude upgrade) including removing obsolete packages and installing additional packages to meet new package dependencies:sudo aptitude full-upgradePut an installed package on hold to prevent it from being automatically upgraded:
sudo aptitude hold '?installed({{package}})'Code Snippets
Synchronize list of packages and versions available. This should be run first, before running subsequent `aptitude` commands
sudo aptitude updateInstall a new package and its dependencies
sudo aptitude install {{package}}Search for a package
aptitude search {{package}}Search for an installed package (`?installed` is an `aptitude` search term)
aptitude search '?installed({{package}})'Remove a package and all packages depending on it
sudo aptitude remove {{package}}Context
tldr-pages: linux/aptitude
Revisions (0)
No revisions yet.