Linux command
equery 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List
equery list '*'
Example
equery list -po [package1] [package2]
Example
equery depends [package]
Example
equery depgraph [package]
Example
equery files --tree [package]
Example
equery uses [package]
Example
equery belongs [/path/to/file]
说明
equery is a powerful query tool for viewing information about Portage packages on Gentoo Linux. It provides detailed information about installed packages, their dependencies, owned files, USE flag settings, and more. The tool can search both the local installed package database and the Portage tree including overlays. As part of the gentoolkit package, equery offers a more user-friendly interface than raw Portage queries, making it easier to investigate package relationships, troubleshoot installation issues, and understand the state of the system. It's an essential tool for Gentoo system administration and package management.
参数
- list _pattern_
- List packages matching pattern
- depends _package_
- Show reverse dependencies
- depgraph _package_
- Show dependency graph
- files _package_
- List installed files
- uses _package_
- Show USE flags for a package
- belongs _file_
- Find which package owns a file
- hasuse _flag_
- Find packages with a specific USE flag
- size _package_
- Show disk space used by a package
- -p, --portage-tree
- Include Portage tree
- -o, --overlay-tree
- Include overlays
- --tree
- Display as tree
FAQ
What is the equery command used for?
equery is a powerful query tool for viewing information about Portage packages on Gentoo Linux. It provides detailed information about installed packages, their dependencies, owned files, USE flag settings, and more. The tool can search both the local installed package database and the Portage tree including overlays. As part of the gentoolkit package, equery offers a more user-friendly interface than raw Portage queries, making it easier to investigate package relationships, troubleshoot installation issues, and understand the state of the system. It's an essential tool for Gentoo system administration and package management.
How do I run a basic equery example?
Run `equery list '*'` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does list _pattern_ do in equery?
List packages matching pattern