tldr/pages/linux/apt-cache.md

24 lines
443 B
Markdown
Raw Normal View History

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