from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

83866

userrating:

average rating: 1.2 (52 votes) (1=very good 6=terrible)


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tips&Tricks

Querying Portage with etcat

This tip shows you how to use the etcat command to retrieve information on Portage, USE flags, package versions, and much more.

While there are other package query utilities such as qpkg or epm, etcat has some unique features. Some of these features include the ability to display the amount of disk space a particular package is using, the USE flags the package was compiled with, and the versions available for a package.

The first step is installing the app-admin/gentoolkit package from Portage. This installs etcat (among other utilities) to /usr/bin/.

Code Listing 1: Getting etcat>

# emerge app-admin/gentoolkit

To view the size of the package, use etcat size [package].

Code Listing 2: Displaying the size of a package

# etcat size mozilla
[ Results for search key : mozilla ]
[ Applications found : 4 ]  
  
 Only printing found installed programs.  
  
* mozilla-firebird-bin-0.5  
           Total Files : 338  
            Total Size : 20925.18 KB  
* mozilla-1.3-r1  
           Total Files : 3155  
            Total Size : 52073.05 KB  
  
# etcat size evolution  
[ Results for search key : evolution ]  
[ Applications found : 1 ]  
  
 Only printing found installed programs.  
  
* evolution-1.2.4  
           Total Files : 1421  
            Total Size : 33456.65 KB  
  
# etcat size fluxbox  
[ Results for search key : fluxbox ]  
[ Applications found : 1 ]  
  
 Only printing found installed programs.  
  
* fluxbox-0.1.14-r1  
           Total Files : 26  
            Total Size : 806.92 KB

To look at the USE flags a package was compiled with, use etcat uses [package]. For example, the following command shows which USE flags Postfix was compiled with.

Code Listing 3: Displaying USE flags

# etcat uses net-mail/postfix  
[ Colour Code : set unset ]  
[ Legend      : (U) Col 1 - Current USE flags        ]  
[             : (I) Col 2 - Installed With USE flags ]  
  
 U I [ Found these USE variables in : net-mail/postfix-2.0.9 ]  
 + + ssl     : Adds support for Secure Socket Layer connections  
 + + mysql   : Adds mySQL support  
 + + sasl    : Adds support for the Simple Authentication and Security Layer  
 + + ldap    : Adds LDAP support (Lightweight Directory Access Protocol)  
 - - ipv6    : Adds support for IP version 6  
 - - maildir : Adds support for maildir (~/.maildir) style mail spools  
 - - mbox    : Adds support for mbox (/var/spool/mail) style mail spools  
  
# etcat uses fluxbox  
[ Colour Code : set unset ]  
[ Legend      : (U) Col 1 - Current USE flags        ]  
[             : (I) Col 2 - Installed With USE flags ]  
  
 U I [ Found these USE variables in : x11-wm/fluxbox-0.1.14-r1 ]  
 - - kde      : Adds support for kde-base/kde (K Desktop Enviroment)  
 + + gnome    : Adds GNOME support  
 + + nls      : unknown  
 + - xinerama : Add support for XFree86's xinerama extension,
                which allows you to stretch  your display across
                multiple monitors  
 + + truetype : Adds support for FreeType and/or FreeType2 fonts

To see which versions of a specific package are available, use etcat versions [package]

Code Listing 4: Displaying available package versions

# etcat versions kde-base/kde  
[ Results for search key : kde-base/kde ]  
[ Applications found : 1 ]  
  
*  kde-base/kde :  
        [   ] kde-base/kde-2.2.2-r1 (2)  
        [   ] kde-base/kde-3.0.4 (3.0)  
        [   ] kde-base/kde-3.0.5a (3.0)  
        [   ] kde-base/kde-3.0.5b (3.0)  
        [   ] kde-base/kde-3.1.1a (3.1)  
        [   ] kde-base/kde-3.1.1 (3.1)  
        [   ] kde-base/kde-3.1.2 (3.1)  
        [   ] kde-base/kde-3.1 (3.1)  
  
# etcat versions net-mail/evolution  
[ Results for search key : net-mail/evolution ]  
[ Applications found : 1 ]  
  
*  net-mail/evolution :  
        [   ] net-mail/evolution-1.2.3 (0)  
        [  I] net-mail/evolution-1.2.4 (0)  
        [M~ ] net-mail/evolution-1.3.92 (2)  
        [M~ ] net-mail/evolution-1.4.0 (0)  
  
# etcat versions net-www/apache  
[ Results for search key : net-www/apache ]  
[ Applications found : 1 ]  
  
*  net-www/apache :  
        [   ] net-www/apache-1.3.27 (1)  
        [   ] net-www/apache-1.3.27-r1 (1)  
        [M~ ] net-www/apache-1.3.27-r2 (1)  
        [   ] net-www/apache-1.3.27-r3 (1)  
        [M~ ] net-www/apache-1.3.27-r4 (1)  
        [M~ ] net-www/apache-2.0.43-r1 (2)  
        [M~ ] net-www/apache-2.0.44 (2)  
        [M~ ] net-www/apache-2.0.45 (2)  
        [M~I] net-www/apache-2.0.46 (2)

Note: If you don't specify the category, etcat will try to find all possible matches in Portage. If the package name is common or occurs in many other package names, you may get a lot more output that you wanted.

For more detailed information, type man etcat. For a quick overview of available options, just type etcat.

From http://www.gentoo.org/news/en/gwn/20030623-newsletter.xml

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2026-03-21
asyncstdlib - 3.14.0
Ebuild name:

dev-python/asyncstdlib-3.14.0

Description

The missing async toolbox

Added to portage

2026-03-21

autoconf - 2.73
Ebuild name:

dev-build/autoconf-2.73

Description

Used to create autoconfiguration files

Added to portage

2026-03-21

autoconf-wrapper - 20260320
Ebuild name:

dev-build/autoconf-wrapper-20260320

Description

Wrapper for autoconf to manage multiple autoconf versions

Added to portage

2026-03-21

awscli - 1.44.63
Ebuild name:

app-admin/awscli-1.44.63

Description

Universal Command Line Environment for AWS

Added to portage

2026-03-21

boto3 - 1.42.73
Ebuild name:

dev-python/boto3-1.42.73

Description

The AWS SDK for Python

Added to portage

2026-03-21

botocore - 1.42.73
Ebuild name:

dev-python/botocore-1.42.73

Description

Low-level, data-driven core of boto 3

Added to portage

2026-03-21

dnsdist - 2.0.2-r1
Ebuild name:

net-dns/dnsdist-2.0.2-r1

Description

A highly DNS-, DoS- and abuse-aware loadbalancer

Added to portage

2026-03-21

eselect - 1.4.32
Ebuild name:

app-admin/eselect-1.4.32

Description

Gentoo's multi-purpose configuration and management tool

Added to portage

2026-03-21

importlib-metadata - 8.9.0
Ebuild name:

dev-python/importlib-metadata-8.9.0

Description

Read metadata from Python packages

Added to portage

2026-03-21

importlib-metadata - 9.0.0
Ebuild name:

dev-python/importlib-metadata-9.0.0

Description

Read metadata from Python packages

Added to portage

2026-03-21

jaraco-context - 6.1.2
Ebuild name:

dev-python/jaraco-context-6.1.2

Description

Context managers by jaraco

Added to portage

2026-03-21

jsonpointer - 3.1.0
Ebuild name:

dev-python/jsonpointer-3.1.0

Description

Identify specific nodes in a JSON document (according to draft 08)

Added to portage

2026-03-21

kitty - 0.46.2
Ebuild name:

x11-terms/kitty-0.46.2

Description

Fast, feature-rich, GPU-based terminal

Added to portage

2026-03-21

kitty-shell-integration - 0.46.2
Ebuild name:

x11-terms/kitty-shell-integration-0.46.2

Description

Shell integration scripts for kitty, a GPU-based terminal

Added to portage

2026-03-21

kitty-terminfo - 0.46.2
Ebuild name:

x11-terms/kitty-terminfo-0.46.2

Description

Terminfo for kitty, a GPU-based terminal emulator

Added to portage

2026-03-21

libhtp - 0.5.53
Ebuild name:

net-libs/libhtp-0.5.53

Description

Security-aware parser for the HTTP protocol and the related bits and pieces

Added to portage

2026-03-21

mesa - 26.0.3
Ebuild name:

media-libs/mesa-26.0.3

Description

OpenGL-like graphic library for Linux

Added to portage

2026-03-21

mesa_clc - 26.0.3
Ebuild name:

dev-util/mesa_clc-26.0.3

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2026-03-21

mirrorselect - 2.6.2
Ebuild name:

app-portage/mirrorselect-2.6.2

Description

Tool to help select distfiles mirrors for Gentoo

Added to portage

2026-03-21

multi-term - 1.4-r1
Ebuild name:

app-emacs/multi-term-1.4-r1

Description

Manage multiple terminal buffers in Emacs

Added to portage

2026-03-21

multiple-cursors - 1.5.0
Ebuild name:

app-emacs/multiple-cursors-1.5.0

Description

Multiple cursors for Emacs

Added to portage

2026-03-21

muse - 3.20.2
Ebuild name:

app-emacs/muse-3.20.2

Description

An authoring and publishing environment for Emacs

Added to portage

2026-03-21

musl - 1.2.6
Ebuild name:

sys-libs/musl-1.2.6

Description

Light, fast and, simple C library focused on standards-conformance and safety

Added to portage

2026-03-21

openpgp-keys-oisf - 20260319
Ebuild name:

sec-keys/openpgp-keys-oisf-20260319

Description

OpenPGP key used by Open InfoSec Foundation (OISF) software rel

Added to portage

2026-03-21

openrc - 0.63-r2
Ebuild name:

sys-apps/openrc-0.63-r2

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2026-03-21

pbs-installer - 2026.3.20
Ebuild name:

dev-python/pbs-installer-2026.3.20

Description

Installer for Python Build Standalone

Added to portage

2026-03-21

pipdeptree - 2.33.0
Ebuild name:

dev-python/pipdeptree-2.33.0

Description

Utility for displaying installed packages in a dependency tree

Added to portage

2026-03-21

protobuf - 7.34.1
Ebuild name:

dev-python/protobuf-7.34.1

Description

Google's Protocol Buffers - Python bindings

Added to portage

2026-03-21

pyicu - 2.16.2
Ebuild name:

dev-python/pyicu-2.16.2

Description

Python bindings for dev-libs/icu

Added to portage

2026-03-21

pytest-check - 2.7.7
Ebuild name:

dev-python/pytest-check-2.7.7

Description

pytest plugin that allows multiple failures per test

Added to portage

2026-03-21

qtile - 0.35.0
Ebuild name:

x11-wm/qtile-0.35.0

Description

A full-featured, hackable tiling window manager written in Python

Added to portage

2026-03-21

seedfiles - 1.1
Ebuild name:

sys-apps/seedfiles-1.1

Description

Portable drop-in reimplementation of systemd-tmpfiles

Added to portage

2026-03-21

seedfiles - 9999
Ebuild name:

sys-apps/seedfiles-9999

Description

Portable drop-in reimplementation of systemd-tmpfiles

Added to portage

2026-03-21

sphinx-autodoc-typehints - 3.9.9
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.9.9

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-03-21

suricata - 7.0.15
Ebuild name:

net-analyzer/suricata-7.0.15

Description

High performance Network IDS, IPS and Network Security Monitoring engi

Added to portage

2026-03-21

systemd - 260-r2
Ebuild name:

sys-apps/systemd-260-r2

Description

System and service manager for Linux

Added to portage

2026-03-21

systemd-utils - 260-r1
Ebuild name:

sys-apps/systemd-utils-260-r1

Description

Utilities split out from systemd for OpenRC users

Added to portage

2026-03-21

texlive-core - 2024-r2
Ebuild name:

app-text/texlive-core-2024-r2

Description

A complete TeX distribution

Added to portage

2026-03-21

tmpfiles - 0-r7
Ebuild name:

virtual/tmpfiles-0-r7

Description

Virtual to select between different tmpfiles.d handlers

Added to portage

2026-03-21

toml-fmt-common - 1.3.2
Ebuild name:

dev-python/toml-fmt-common-1.3.2

Description

Common logic to the TOML formatter

Added to portage

2026-03-21

treepy - 0.1.3
Ebuild name:

app-emacs/treepy-0.1.3

Description

Generic tree traversing tools for Emacs Lisp

Added to portage

2026-03-21

vit - 2.3.4
Ebuild name:

app-misc/vit-2.3.4

Description

A lightweight, fast, curses-based front end to Taskwarrior

Added to portage

2026-03-21

warzone2100 - 4.6.1-r1
Ebuild name:

games-strategy/warzone2100-4.6.1-r1

Description

3D real-time strategy game

Added to portage

2026-03-21

wayland - 1.25.0
Ebuild name:

dev-libs/wayland-1.25.0

Description

Wayland protocol libraries

Added to portage

2026-03-21

wayland-scanner - 1.25.0
Ebuild name:

dev-util/wayland-scanner-1.25.0

Description

wayland-scanner tool

Added to portage

2026-03-21

whenever - 0.10.0_beta1
Ebuild name:

dev-python/whenever-0.10.0_beta1

Description

Modern datetime library for Python

Added to portage

2026-03-21

wine-staging - 11.5
Ebuild name:

app-emulation/wine-staging-11.5

Description

Free implementation of Windows(tm) on Unix, with Wine-Staging patch

Added to portage

2026-03-21

wine-vanilla - 11.5
Ebuild name:

app-emulation/wine-vanilla-11.5

Description

Free implementation of Windows(tm) on Unix, without external patchs

Added to portage

2026-03-21

2026-03-20
accel-ppp - 1.14.0-r2
Ebuild name:

net-dialup/accel-ppp-1.14.0-r2

Description

High performance PPTP/L2TP/SSTP/PPPoE/IPoE server

Added to portage

2026-03-20

attrs - 26.1.0
Ebuild name:

dev-python/attrs-26.1.0

Description

Attributes without boilerplate

Added to portage

2026-03-20

awscli - 1.44.62
Ebuild name:

app-admin/awscli-1.44.62

Description

Universal Command Line Environment for AWS

Added to portage

2026-03-20

boto3 - 1.42.72
Ebuild name:

dev-python/boto3-1.42.72

Description

The AWS SDK for Python

Added to portage

2026-03-20

botocore - 1.42.72
Ebuild name:

dev-python/botocore-1.42.72

Description

Low-level, data-driven core of boto 3

Added to portage

2026-03-20

chibi - 0.12
Ebuild name:

dev-scheme/chibi-0.12

Description

Minimal Scheme implementation for use as an extension language

Added to portage

2026-03-20

coreutils - 9.9-r12
Ebuild name:

sys-apps/coreutils-9.9-r12

Description

Standard GNU utilities (chmod, cp, dd, ls, sort, tr, head, wc, who,...)

Added to portage

2026-03-20

deno-bin - 2.7.7
Ebuild name:

dev-lang/deno-bin-2.7.7

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2026-03-20

discord - 0.0.129
Ebuild name:

net-im/discord-0.0.129

Description

All-in-one voice and text chat for gamers

Added to portage

2026-03-20

dist-kernel - 6.18.19
Ebuild name:

virtual/dist-kernel-6.18.19

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-03-20

dist-kernel - 6.19.9
Ebuild name:

virtual/dist-kernel-6.19.9

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-03-20

gallery-dl - 1.31.10
Ebuild name:

net-misc/gallery-dl-1.31.10

Description

Download image galleries and collections from several image hosting sit

Added to portage

2026-03-20

gentoo-kernel - 6.18.19
Ebuild name:

sys-kernel/gentoo-kernel-6.18.19

Description

Linux kernel built with Gentoo patches

Added to portage

2026-03-20

gentoo-kernel - 6.19.9
Ebuild name:

sys-kernel/gentoo-kernel-6.19.9

Description

Linux kernel built with Gentoo patches

Added to portage

2026-03-20

gentoo-kernel-bin - 6.18.19
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.19

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-03-20

gentoo-kernel-bin - 6.19.9
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.19.9

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-03-20

gentoo-sources - 6.18.19
Ebuild name:

sys-kernel/gentoo-sources-6.18.19

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-03-20

gentoo-sources - 6.19.9
Ebuild name:

sys-kernel/gentoo-sources-6.19.9

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-03-20

gmpy2 - 2.4.0_alpha0
Ebuild name:

dev-python/gmpy2-2.4.0_alpha0

Description

Python bindings for GMP, MPC, MPFR and MPIR libraries

Added to portage

2026-03-20

godot - 4.5.2
Ebuild name:

dev-games/godot-4.5.2

Description

Multi-platform 2D and 3D game engine with a feature-rich editor

Added to portage

2026-03-20

haproxy - 2.8.20
Ebuild name:

net-proxy/haproxy-2.8.20

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-03-20

haproxy - 3.0.19
Ebuild name:

net-proxy/haproxy-3.0.19

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-03-20

haproxy - 3.2.15
Ebuild name:

net-proxy/haproxy-3.2.15

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-03-20

importlib-metadata - 8.8.0
Ebuild name:

dev-python/importlib-metadata-8.8.0

Description

Read metadata from Python packages

Added to portage

2026-03-20

jingoo - 1.5.2
Ebuild name:

dev-ml/jingoo-1.5.2

Description

OCaml template engine almost compatible with Jinja2

Added to portage

2026-03-20

keychain - 2.9.8
Ebuild name:

net-misc/keychain-2.9.8

Description

Agent manager for OpenSSH, ssh.com, Sun SSH, and GnuPG

Added to portage

2026-03-20

mpc - 1.4.0
Ebuild name:

dev-libs/mpc-1.4.0

Description

A library for multiprecision complex arithmetic with exact rounding

Added to portage

2026-03-20

multi-term - 1.4-r1
Ebuild name:

app-emacs/multi-term-1.4-r1

Description

Manage multiple terminal buffers in Emacs

Added to portage

2026-03-20

nitrocli - 0.4.1-r2
Ebuild name:

app-crypt/nitrocli-0.4.1-r2

Description

A command line tool for interacting with Nitrokey devices

Added to portage

2026-03-20

pandoc-bin - 3.9.0.2
Ebuild name:

app-text/pandoc-bin-3.9.0.2

Description

Conversion between markup formats (binary package)

Added to portage

2026-03-20

pipdeptree - 2.32.0
Ebuild name:

dev-python/pipdeptree-2.32.0

Description

Utility for displaying installed packages in a dependency tree

Added to portage

2026-03-20

pwsh - 7.6
Ebuild name:

virtual/pwsh-7.6

Description

Virtual for PowerShell

Added to portage

2026-03-20

pwsh - 7.6.0
Ebuild name:

app-shells/pwsh-7.6.0

Description

Cross-platform automation and configuration tool

Added to portage

2026-03-20

pwsh-bin - 7.6.0
Ebuild name:

app-shells/pwsh-bin-7.6.0

Description

Cross-platform automation and configuration tool (binary package)

Added to portage

2026-03-20

pysubs2 - 1.8.1
Ebuild name:

dev-python/pysubs2-1.8.1

Description

Python library for editing subtitle files

Added to portage

2026-03-20

ruff - 0.15.7
Ebuild name:

dev-util/ruff-0.15.7

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-03-20

sabctools - 9.4.0
Ebuild name:

dev-python/sabctools-9.4.0

Description

Module providing raw yEnc encoding/decoding for SABnzbd

Added to portage

2026-03-20

scitokens-cpp - 1.4.1
Ebuild name:

dev-cpp/scitokens-cpp-1.4.1

Description

C++ implementation of the SciTokens library with a C library interface

Added to portage

2026-03-20

setuptools-scm - 10.0.1
Ebuild name:

dev-python/setuptools-scm-10.0.1

Description

Manage versions by scm tags via setuptools

Added to portage

2026-03-20

shell-maker - 0.89.2
Ebuild name:

app-emacs/shell-maker-0.89.2

Description

Interaction mode for making comint shells for GNU Emacs

Added to portage

2026-03-20

simdjson - 4.4.2
Ebuild name:

dev-libs/simdjson-4.4.2

Description

SIMD accelerated C++ JSON library

Added to portage

2026-03-20

systemd-initctl - 4
Ebuild name:

sys-apps/systemd-initctl-4

Description

initctl Compatibility Daemon

Added to portage

2026-03-20

tox - 4.50.3
Ebuild name:

dev-python/tox-4.50.3

Description

virtualenv-based automation of test activities

Added to portage

2026-03-20

unifi - 10.1.89
Ebuild name:

net-wireless/unifi-10.1.89

Description

A Management Controller for Ubiquiti Networks UniFi APs

Added to portage

2026-03-20

uv - 0.10.12
Ebuild name:

dev-python/uv-0.10.12

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-03-20

uv-build - 0.10.12
Ebuild name:

dev-python/uv-build-0.10.12

Description

PEP517 uv build backend

Added to portage

2026-03-20

vanilla-kernel - 6.18.19
Ebuild name:

sys-kernel/vanilla-kernel-6.18.19

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-03-20

vanilla-kernel - 6.19.9
Ebuild name:

sys-kernel/vanilla-kernel-6.19.9

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-03-20

vcs-versioning - 1.0.1
Ebuild name:

dev-python/vcs-versioning-1.0.1

Description

Core VCS versioning functionality from setuptools-scm

Added to portage

2026-03-20

vivaldi - 7.9.3970.39
Ebuild name:

www-client/vivaldi-7.9.3970.39

Description

A browser for our friends

Added to portage

2026-03-20

whenever - 0.10.0_alpha1
Ebuild name:

dev-python/whenever-0.10.0_alpha1

Description

Modern datetime library for Python

Added to portage

2026-03-20

whois - 5.6.6
Ebuild name:

net-misc/whois-5.6.6

Description

Improved Whois Client

Added to portage

2026-03-20

rdf newsfeed | rss newsfeed | Atom newsfeed
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
- Copyright and legal notices -
Time to create this page: 66.1 ms