Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

42
linux/apt-get Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# apt-get
> Debian and Ubuntu package management utility.
> Search for packages using `apt-cache`.
> More information: <https://manpages.debian.org/latest/apt/apt-get.8.html>.
- Update the list of available packages and versions (it's recommended to run this before other `apt-get` commands):
`apt-get update`
- Install a package, or update it to the latest available version:
`apt-get install {{package}}`
- Remove a package:
`apt-get remove {{package}}`
- Remove a package and its configuration files:
`apt-get purge {{package}}`
- Upgrade all installed packages to their newest available versions:
`apt-get upgrade`
- Clean the local repository - removing package files (`.deb`) from interrupted downloads that can no longer be downloaded:
`apt-get autoclean`
- 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:
`apt-get dist-upgrade`