Linux command
pacgraph 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
pacgraph
Example
pacgraph -s
Example
pacgraph -c
Example
pacgraph -f [path/to/file]
Example
pacgraph -t [color]
Example
pacgraph -d [color]
Example
pacgraph -b [color]
Example
pacgraph -l [color]
说明
pacgraph visualizes the dependency relationships between installed packages on Arch-based systems. It generates a graph showing packages as nodes sized by their disk usage, with lines connecting packages to their dependencies. The output can be an SVG image, PNG image, or console text summary. The tool helps users understand their system's package structure, identify large packages, and visualize dependency chains. Colors distinguish between explicitly installed packages and dependencies.
参数
- -s, --svg
- Produce SVG output only (no PNG)
- -c, --console
- Print summary to console instead of generating graph
- -f, --file _path_
- Output filename (without extension)
- -t, --top _color_
- Color for explicitly installed packages
- -d, --dep _color_
- Color for dependency packages
- -b, --background _color_
- Background color of the graph
- -l, --link _color_
- Color for dependency links
- -p, --point _size_
- Font point size
- -n, --no-compression
- Disable SVGZ compression
- -e, --explicits
- Include only explicitly installed packages
- -o, --optdeps
- Include optional dependencies
- --show-req-by
- Show packages that require the listed package (reverse dependencies)
- -m _repo_
- Draw only the specified package/repo and its dependencies
FAQ
What is the pacgraph command used for?
pacgraph visualizes the dependency relationships between installed packages on Arch-based systems. It generates a graph showing packages as nodes sized by their disk usage, with lines connecting packages to their dependencies. The output can be an SVG image, PNG image, or console text summary. The tool helps users understand their system's package structure, identify large packages, and visualize dependency chains. Colors distinguish between explicitly installed packages and dependencies.
How do I run a basic pacgraph example?
Run `pacgraph` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s, --svg do in pacgraph?
Produce SVG output only (no PNG)