mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-10 13:46:53 +00:00
Update cheatsheets
This commit is contained in:
29
linux/apt-cache
Normal file
29
linux/apt-cache
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# apt-cache
|
||||
|
||||
> Debian and Ubuntu package query tool.
|
||||
> More information: <https://manpages.debian.org/latest/apt/apt-cache.8.html>.
|
||||
|
||||
- Search for a package in your current sources:
|
||||
|
||||
`apt-cache search {{query}}`
|
||||
|
||||
- Show information about a package:
|
||||
|
||||
`apt-cache show {{package}}`
|
||||
|
||||
- Show whether a package is installed and up to date:
|
||||
|
||||
`apt-cache policy {{package}}`
|
||||
|
||||
- Show dependencies for a package:
|
||||
|
||||
`apt-cache depends {{package}}`
|
||||
|
||||
- Show packages that depend on a particular package:
|
||||
|
||||
`apt-cache rdepends {{package}}`
|
||||
Reference in New Issue
Block a user