mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 05:42:09 +02:00
apt: add page (#1205)
This commit is contained in:
parent
a6983d4063
commit
c07f9624f9
1 changed files with 31 additions and 0 deletions
31
pages/linux/apt.md
Normal file
31
pages/linux/apt.md
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# apt
|
||||||
|
|
||||||
|
> Package management utility for Debian based distributions.
|
||||||
|
|
||||||
|
- Update list of packages and versions available. This should be run before running further apt commands:
|
||||||
|
|
||||||
|
`apt update`
|
||||||
|
|
||||||
|
- Search for packages:
|
||||||
|
|
||||||
|
`apt search {{package}}`
|
||||||
|
|
||||||
|
- Install a new package:
|
||||||
|
|
||||||
|
`apt install {{package}}`
|
||||||
|
|
||||||
|
- Remove a package (using "purge" instead also removes its configuration files):
|
||||||
|
|
||||||
|
`apt remove {{package}}`
|
||||||
|
|
||||||
|
- Upgrade installed packages to the newest available versions:
|
||||||
|
|
||||||
|
`apt upgrade`
|
||||||
|
|
||||||
|
- Remove no longer needed packages:
|
||||||
|
|
||||||
|
`apt autoremove`
|
||||||
|
|
||||||
|
- Upgrade installed packages and remove no longer needed packages:
|
||||||
|
|
||||||
|
`apt full-upgrade`
|
Loading…
Add table
Reference in a new issue