← 返回命令列表

Linux command

portageq 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

portageq envvar [VARIABLE]

Example

portageq repos_config /

Example

portageq get_repos /

Example

portageq has_version / [category]/[package]

Example

portageq best_visible / ebuild [category]/[package]

Example

portageq metadata / ebuild [category]/[package] [DEPEND]

说明

portageq queries Portage configuration and package database on Gentoo Linux. It provides programmatic access to Portage's internal data, useful for scripts and build automation. The tool can retrieve environment variables, repository information, and detailed package metadata without parsing configuration files directly.

参数

root
Root directory for queries (usually /)
variable
Environment variable name
category/package
Package atom for queries

FAQ

What is the portageq command used for?

portageq queries Portage configuration and package database on Gentoo Linux. It provides programmatic access to Portage's internal data, useful for scripts and build automation. The tool can retrieve environment variables, repository information, and detailed package metadata without parsing configuration files directly.

How do I run a basic portageq example?

Run `portageq envvar [VARIABLE]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does root do in portageq?

Root directory for queries (usually /)