mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
27 lines
558 B
Markdown
27 lines
558 B
Markdown
# apt
|
|
|
|
> Package management utility for Debian based distributions.
|
|
|
|
- Update list of packages and versions available. This should be run before running further apt commands:
|
|
|
|
`sudo apt update`
|
|
|
|
- Search for packages:
|
|
|
|
`apt search {{package}}`
|
|
|
|
- Show information for a package:
|
|
|
|
`apt show {{package}}`
|
|
|
|
- Install a new package:
|
|
|
|
`sudo apt install {{package}}`
|
|
|
|
- Remove a package (using "purge" instead also removes its configuration files):
|
|
|
|
`sudo apt remove {{package}}`
|
|
|
|
- Upgrade installed packages to the newest available versions:
|
|
|
|
`sudo apt upgrade`
|