tldr/pages/linux/apt-cache.md

24 lines
443 B
Markdown
Raw Normal View History

2015-12-30 19:53:12 +00:00
# apt-cache
> Debian and Ubuntu package query tool.
2015-12-30 19:53:12 +00:00
- Search for a package in your current sources:
2015-12-30 19:53:12 +00:00
`apt-cache search {{query}}`
- Show information about a package:
2015-12-30 19:53:12 +00:00
`apt-cache show {{package}}`
- Show whether a package is installed and up to date:
2015-12-31 10:33:21 +00:00
2015-12-30 19:53:12 +00:00
`apt-cache policy {{package}}`
2016-03-02 09:51:25 +00:00
- Show dependencies for a package:
`apt-cache depends {{package}}`
- Show packages that depend on a particular package:
`apt-cache rdepends {{package}}`