Files
tldr/pages.zh/linux/pkgfile.md

37 lines
861 B
Markdown
Raw Permalink 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.

# pkgfile
> 在基于Arch的系统中从官方仓库搜索文件。
> 另见:`pacman files`,描述了`pacman --files`的用法。
> 更多信息:<https://manned.org/pkgfile>。
- 同步pkgfile数据库
`sudo pkgfile --update`
- 搜索拥有特定文件的包:
`pkgfile {{filename}}`
- 列出包提供的所有文件:
`pkgfile --list {{package}}`
- 列出包提供的可执行文件:
`pkgfile --list --binaries {{package}}`
- 使用不区分大小写的匹配搜索拥有特定文件的包:
`pkgfile --ignorecase {{filename}}`
- 搜索拥有特定文件的包,文件位于`bin``sbin`目录中:
`pkgfile --binaries {{filename}}`
- 搜索拥有特定文件的包,并显示包版本:
`pkgfile --verbose {{filename}}`
- 在特定仓库中搜索拥有特定文件的包:
`pkgfile --repo {{repository_name}} {{filename}}`