apt-get: add example for upgrading a single package (#1500)

This commit is contained in:
Waldir Pimenta 2017-09-23 11:27:18 +01:00 committed by Starbeamrainbowlabs
parent 7cce91b3c0
commit 0d6202fa89
2 changed files with 10 additions and 10 deletions

View File

@ -2,11 +2,11 @@
> Debian and Ubuntu package management utility.
- Synchronize list of packages and versions available. This should be run first, before running subsequent apt-get commands:
- Update the list of available packages and versions (it's recommended to run this before other `apt-get` commands):
`apt-get update`
- Install a new package:
- Install a package, or update it to the latest available version:
`apt-get install {{package}}`
@ -14,14 +14,14 @@
`apt-get remove {{package}}`
- Upgrade installed packages to newest available versions:
- Upgrade all installed packages to their newest available versions:
`apt-get upgrade`
- Remove no longer needed packages:
- Remove all packages that are no longer needed:
`apt-get autoremove`
- Upgrade installed packages (like "upgrade"), but remove obsolete packages and install additional packages to meet new dependencies:
- Upgrade installed packages (like `upgrade`), but remove obsolete packages and install additional packages to meet new dependencies:
`apt-get dist-upgrade`

View File

@ -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`