mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 21:47:29 +00:00
Update cheatsheets
This commit is contained in:
@@ -12,23 +12,23 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Update the list of available packages and versions (it's recommended to run this before other `apt-get` commands):
|
||||
|
||||
`apt-get update`
|
||||
`sudo apt-get update`
|
||||
|
||||
- Install a package, or update it to the latest available version:
|
||||
|
||||
`apt-get install {{package}}`
|
||||
`sudo apt-get install {{package}}`
|
||||
|
||||
- Remove a package:
|
||||
|
||||
`apt-get remove {{package}}`
|
||||
`sudo apt-get remove {{package}}`
|
||||
|
||||
- Remove a package and its configuration files:
|
||||
|
||||
`apt-get purge {{package}}`
|
||||
`sudo apt-get purge {{package}}`
|
||||
|
||||
- Upgrade all installed packages to their newest available versions:
|
||||
|
||||
`apt-get upgrade`
|
||||
`sudo apt-get upgrade`
|
||||
|
||||
- Clean the local repository - removing package files (`.deb`) from interrupted downloads that can no longer be downloaded:
|
||||
|
||||
@@ -36,8 +36,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Remove all packages that are no longer needed:
|
||||
|
||||
`apt-get autoremove`
|
||||
`sudo apt-get autoremove`
|
||||
|
||||
- Upgrade installed packages (like `upgrade`), but remove obsolete packages and install additional packages to meet new dependencies:
|
||||
|
||||
`apt-get dist-upgrade`
|
||||
`sudo apt-get dist-upgrade`
|
||||
|
||||
Reference in New Issue
Block a user