2016-12-22 02:09:01 +03:00
|
|
|
# apt
|
|
|
|
|
|
|
|
> Package management utility for Debian based distributions.
|
|
|
|
|
|
|
|
- Update list of packages and versions available. This should be run before running further apt commands:
|
|
|
|
|
2017-04-17 18:02:14 +03:00
|
|
|
`sudo apt update`
|
2016-12-22 02:09:01 +03:00
|
|
|
|
|
|
|
- Search for packages:
|
|
|
|
|
|
|
|
`apt search {{package}}`
|
|
|
|
|
2017-04-17 12:47:20 +03:00
|
|
|
- Show information for a package:
|
|
|
|
|
|
|
|
`apt show {{package}}`
|
|
|
|
|
2016-12-22 02:09:01 +03:00
|
|
|
- Install a new package:
|
|
|
|
|
2017-04-17 18:02:14 +03:00
|
|
|
`sudo apt install {{package}}`
|
2016-12-22 02:09:01 +03:00
|
|
|
|
|
|
|
- Remove a package (using "purge" instead also removes its configuration files):
|
|
|
|
|
2017-04-17 18:02:14 +03:00
|
|
|
`sudo apt remove {{package}}`
|
2016-12-22 02:09:01 +03:00
|
|
|
|
|
|
|
- Upgrade installed packages to the newest available versions:
|
|
|
|
|
2017-04-17 18:02:14 +03:00
|
|
|
`sudo apt upgrade`
|