mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 05:52:57 +00:00
Update cheatsheets
This commit is contained in:
26
tldr/linux/portageq
Normal file
26
tldr/linux/portageq
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# portageq
|
||||
|
||||
> Query for information about Portage, the Gentoo Linux package manager.
|
||||
> Queryable Portage-specific environment variables are listed in `/var/db/repos/gentoo/profiles/info_vars`.
|
||||
> More information: <https://wiki.gentoo.org/wiki/Portageq>.
|
||||
|
||||
- Display the value of a Portage-specific environment variable:
|
||||
|
||||
`portageq envvar {{variable}}`
|
||||
|
||||
- Display a detailed list of repositories configured with Portage:
|
||||
|
||||
`portageq repos_config /`
|
||||
|
||||
- Display a list of repositories sorted by priority (highest first):
|
||||
|
||||
`portageq get_repos /`
|
||||
|
||||
- Display a specific piece of metadata about an atom (i.e. package name including the version):
|
||||
|
||||
`portageq metadata / {{ebuild|porttree|binary|...}} {{category}}/{{package}} {{BDEPEND|DEFINED_PHASES|DEPEND|...}}`
|
||||
Reference in New Issue
Block a user