apt-get: add example for upgrading a single package (#1500)
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
7cce91b3c0
commit
0d6202fa89
@@ -2,11 +2,11 @@
|
||||
|
||||
> Package management utility for Debian based distributions.
|
||||
|
||||
- Update list of packages and versions available. This should be run before running further apt commands:
|
||||
- Update the list of available packages and versions (it's recommended to run this before other `apt` commands):
|
||||
|
||||
`sudo apt update`
|
||||
|
||||
- Search for packages:
|
||||
- Search for a given package:
|
||||
|
||||
`apt search {{package}}`
|
||||
|
||||
@@ -14,14 +14,14 @@
|
||||
|
||||
`apt show {{package}}`
|
||||
|
||||
- Install a new package:
|
||||
- Install a package, or update it to the latest available version:
|
||||
|
||||
`sudo apt install {{package}}`
|
||||
|
||||
- Remove a package (using "purge" instead also removes its configuration files):
|
||||
- Remove a package (using `purge` instead also removes its configuration files):
|
||||
|
||||
`sudo apt remove {{package}}`
|
||||
|
||||
- Upgrade installed packages to the newest available versions:
|
||||
- Upgrade all installed packages to their newest available versions:
|
||||
|
||||
`sudo apt upgrade`
|
||||
|
Reference in New Issue
Block a user