2014-03-05 15:53:06 +00:00
# aptitude
2016-01-07 17:31:27 +00:00
> Debian and Ubuntu package management utility.
2021-04-17 14:26:03 +01:00
> More information: <https://manpages.debian.org/latest/aptitude/aptitude.8.html>.
2014-03-05 15:53:06 +00:00
2023-10-27 05:53:22 +01:00
- Synchronize list of packages and versions available. This should be run first, before running subsequent `aptitude` commands:
2015-10-22 08:00:05 +01:00
2014-03-05 15:53:06 +00:00
`aptitude update`
2016-01-31 08:44:21 +00:00
- Install a new package and its dependencies:
2014-03-05 15:53:06 +00:00
`aptitude install {{package}}`
2016-01-07 17:31:27 +00:00
- Search for a package:
2014-03-05 15:53:06 +00:00
`aptitude search {{package}}`
2023-10-27 05:53:22 +01:00
- Search for an installed package (`?installed` is an `aptitude` search term):
2019-10-13 12:15:33 +01:00
`aptitude search '?installed({{package}})'`
2016-01-31 08:44:21 +00:00
- Remove a package and all packages depending on it:
2015-10-22 08:00:05 +01:00
2014-03-05 15:53:06 +00:00
`aptitude remove {{package}}`
2021-08-15 18:59:09 +01:00
- Upgrade installed packages to the newest available versions:
2014-03-05 15:53:06 +00:00
`aptitude upgrade`
2016-01-07 17:31:27 +00:00
- Upgrade installed packages (like `aptitude upgrade` ) including removing obsolete packages and installing additional packages to meet new package dependencies:
2014-03-05 15:53:06 +00:00
`aptitude full-upgrade`
2019-10-13 12:15:33 +01:00
- Put an installed package on hold to prevent it from being automatically upgraded:
`aptitude hold '?installed({{package}})'`