computer_knowledge_notes/Software/包管理/apt-cache.md

16 lines
302 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

```
apt-cache [options] <command> # 检索apt缓存
```
#### 命令
```
depends <pkgs> # 列出pkg所依赖的包
rdepends <pkgs> # 列出所有依赖pkg的包
search <regex...> # 通过正则表达式搜索
show <pkg...> # 显示包的记录类似于dpkg --print-avail的功能
```
#### 选项