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:

89219

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-10-15
argparse-manpage - 4.8
Ebuild name:

dev-python/argparse-manpage-4.8

Description

Automatically build man-pages for your Python project

Added to portage

2026-10-15

authlib - 1.9.1
Ebuild name:

dev-python/authlib-1.9.1

Description

A Python library in building OAuth and OpenID Connect servers and clients

Added to portage

2026-10-15

awscli - 2.38.1
Ebuild name:

app-admin/awscli-2.38.1

Description

Universal Command Line Environment for AWS

Added to portage

2026-10-15

bitarray - 3.12.2
Ebuild name:

dev-python/bitarray-3.12.2

Description

Efficient arrays of booleans -- C extension

Added to portage

2026-10-15

boto3 - 1.43.114
Ebuild name:

dev-python/boto3-1.43.114

Description

The AWS SDK for Python

Added to portage

2026-10-15

botocore - 1.43.114
Ebuild name:

dev-python/botocore-1.43.114

Description

Low-level, data-driven core of boto 3

Added to portage

2026-10-15

cftime - 1.6.6.1
Ebuild name:

dev-python/cftime-1.6.6.1

Description

Time-handling functionality from netcdf4-python

Added to portage

2026-10-15

entrypoints - 0.4.2
Ebuild name:

dev-python/entrypoints-0.4.2

Description

Discover and load entry points from installed packages

Added to portage

2026-10-15

fakeredis - 2.40.0
Ebuild name:

dev-python/fakeredis-2.40.0

Description

Fake implementation of redis API for testing purposes

Added to portage

2026-10-15

fastsimdjson - 0.8.0
Ebuild name:

dev-python/fastsimdjson-0.8.0

Description

fast JSON in Python

Added to portage

2026-10-15

filelock - 4.2.0
Ebuild name:

dev-python/filelock-4.2.0

Description

A platform independent file lock for Python

Added to portage

2026-10-15

gentoo-sources - 6.12.113
Ebuild name:

sys-kernel/gentoo-sources-6.12.113

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-10-15

gentoo-sources - 6.18.57
Ebuild name:

sys-kernel/gentoo-sources-6.18.57

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-10-15

gentoo-sources - 7.2.11
Ebuild name:

sys-kernel/gentoo-sources-7.2.11

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-10-15

gitpython - 3.2.1
Ebuild name:

dev-python/gitpython-3.2.1

Description

Library used to interact with Git repositories

Added to portage

2026-10-15

haskell-mode - 17.5_p20260206
Ebuild name:

app-emacs/haskell-mode-17.5_p20260206

Description

Mode for editing (and running) Haskell programs in Emacs

Added to portage

2026-10-15

haskell-mode - 9999
Ebuild name:

app-emacs/haskell-mode-9999

Description

Mode for editing (and running) Haskell programs in Emacs

Added to portage

2026-10-15

hypothesis - 6.169.3
Ebuild name:

dev-python/hypothesis-6.169.3

Description

A library for property based testing

Added to portage

2026-10-15

libarchive - 3.8.10
Ebuild name:

app-arch/libarchive-3.8.10

Description

Multi-format archive and compression library

Added to portage

2026-10-15

more-itertools - 11.2.1
Ebuild name:

dev-python/more-itertools-11.2.1

Description

More routines for operating on iterables, beyond itertools

Added to portage

2026-10-15

mpg123 - 1.33.7
Ebuild name:

media-sound/mpg123-1.33.7

Description

A meta package for realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2

Added to portage

2026-10-15

nodejs - 24.22.0
Ebuild name:

net-libs/nodejs-24.22.0

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2026-10-15

nodejs - 26.12.0
Ebuild name:

net-libs/nodejs-26.12.0

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2026-10-15

nsd - 4.15.3
Ebuild name:

net-dns/nsd-4.15.3

Description

An authoritative only, high performance, open source name server

Added to portage

2026-10-15

patiencediff - 1.0.1
Ebuild name:

dev-python/patiencediff-1.0.1

Description

Python implementation of the patiencediff algorithm

Added to portage

2026-10-15

pbs-installer - 2026.10.13
Ebuild name:

dev-python/pbs-installer-2026.10.13

Description

Installer for Python Build Standalone

Added to portage

2026-10-15

pixi - 0.82.0
Ebuild name:

dev-util/pixi-0.82.0

Description

A package management and workflow tool

Added to portage

2026-10-15

portage - 3.0.83-r1
Ebuild name:

sys-apps/portage-3.0.83-r1

Description

The package management and distribution system for Gentoo

Added to portage

2026-10-15

postgresql - 19_rc1
Ebuild name:

dev-db/postgresql-19_rc1

Description

PostgreSQL RDBMS

Added to portage

2026-10-15

procps - 4.0.5-r6
Ebuild name:

sys-process/procps-4.0.5-r6

Description

Standard informational utilities and process-handling tools

Added to portage

2026-10-15

pycares - 5.2.0
Ebuild name:

dev-python/pycares-5.2.0

Description

Python interface for c-ares

Added to portage

2026-10-15

pycryptodome - 4.0.0
Ebuild name:

dev-python/pycryptodome-4.0.0

Description

A self-contained cryptographic library for Python

Added to portage

2026-10-15

pydantic-settings - 2.16.0
Ebuild name:

dev-python/pydantic-settings-2.16.0

Description

Settings management using Pydantic

Added to portage

2026-10-15

pydyf - 0.13.0
Ebuild name:

dev-python/pydyf-0.13.0

Description

A low-level PDF generator

Added to portage

2026-10-15

pymdown-extensions - 12.3
Ebuild name:

dev-python/pymdown-extensions-12.3

Description

Extensions for Python Markdown

Added to portage

2026-10-15

pymongo - 4.19.0
Ebuild name:

dev-python/pymongo-4.19.0

Description

Python driver for MongoDB

Added to portage

2026-10-15

pyproject-api - 1.11.6
Ebuild name:

dev-python/pyproject-api-1.11.6

Description

API to interact with the python pyproject.toml based projects

Added to portage

2026-10-15

pypy - 2.7.8.0.0-r1
Ebuild name:

dev-lang/pypy-2.7.8.0.0-r1

Description

A fast, compliant alternative implementation of the Python () language

Added to portage

2026-10-15

pytest-check - 3.0.3
Ebuild name:

dev-python/pytest-check-3.0.3

Description

pytest plugin that allows multiple failures per test

Added to portage

2026-10-15

sc-im - 0.8.5-r1
Ebuild name:

app-office/sc-im-0.8.5-r1

Description

Ncurses based, vim-like spreadsheet calculator

Added to portage

2026-10-15

simdjson - 5.0.5
Ebuild name:

dev-libs/simdjson-5.0.5

Description

SIMD accelerated C++ JSON library

Added to portage

2026-10-15

sphinxcontrib-httpdomain - 2.2.1
Ebuild name:

dev-python/sphinxcontrib-httpdomain-2.2.1

Description

Sphinx domain for documenting HTTP APIs

Added to portage

2026-10-15

sqlglot - 30.23.0
Ebuild name:

dev-python/sqlglot-30.23.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2026-10-15

tokenizers - 0.23.3-r1
Ebuild name:

sci-ml/tokenizers-0.23.3-r1

Description

Implementation of today's most used tokenizers

Added to portage

2026-10-15

transformers - 5.18.0
Ebuild name:

sci-ml/transformers-5.18.0

Description

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Added to portage

2026-10-15

vanilla-sources - 6.1.190
Ebuild name:

sys-kernel/vanilla-sources-6.1.190

Description

Full sources for the Linux kernel

Added to portage

2026-10-15

vanilla-sources - 6.12.113
Ebuild name:

sys-kernel/vanilla-sources-6.12.113

Description

Full sources for the Linux kernel

Added to portage

2026-10-15

z3 - 5.3.0
Ebuild name:

sci-mathematics/z3-5.3.0

Description

An efficient theorem prover

Added to portage

2026-10-15

zmij - 1.2
Ebuild name:

dev-libs/zmij-1.2

Description

A fast floating-point-to-string conversion library for C and C++

Added to portage

2026-10-15

zope-interface - 8.7
Ebuild name:

dev-python/zope-interface-8.7

Description

Interfaces for Python

Added to portage

2026-10-15

2026-10-14
ant - 1.10.15-r2
Ebuild name:

dev-java/ant-1.10.15-r2

Description

Java-based build tool similar to 'make' that uses XML configuration files

Added to portage

2026-10-14

ant - 1.10.18
Ebuild name:

dev-java/ant-1.10.18

Description

Java-based build tool similar to 'make' that uses XML configuration files

Added to portage

2026-10-14

awscli - 2.38.0
Ebuild name:

app-admin/awscli-2.38.0

Description

Universal Command Line Environment for AWS

Added to portage

2026-10-14

boto3 - 1.43.113
Ebuild name:

dev-python/boto3-1.43.113

Description

The AWS SDK for Python

Added to portage

2026-10-14

botocore - 1.43.113
Ebuild name:

dev-python/botocore-1.43.113

Description

Low-level, data-driven core of boto 3

Added to portage

2026-10-14

bpf-linker - 0.12.0
Ebuild name:

dev-util/bpf-linker-0.12.0

Description

Simple BPF static linker

Added to portage

2026-10-14

bsh - 3.0.0_rc1
Ebuild name:

dev-java/bsh-3.0.0_rc1

Description

A small embeddable Java source interpreter

Added to portage

2026-10-14

bsh-bsf-engine - 3.0.0_rc1
Ebuild name:

dev-java/bsh-bsf-engine-3.0.0_rc1

Description

Beanshell BSF engine

Added to portage

2026-10-14

cramjam - 2.14.0
Ebuild name:

dev-python/cramjam-2.14.0

Description

Thin Python bindings to de/compression algorithms in Rust

Added to portage

2026-10-14

crengine-ng - 0.9.14.1
Ebuild name:

app-text/crengine-ng-0.9.14.1

Description

Cross-platform library designed to implement e-book readers

Added to portage

2026-10-14

curl - 8.23.0
Ebuild name:

net-misc/curl-8.23.0

Description

A Client that groks URLs

Added to portage

2026-10-14

datasets - 5.1.0
Ebuild name:

sci-ml/datasets-5.1.0

Description

Access and share datasets for Audio, Computer Vision, and NLP tasks

Added to portage

2026-10-14

firefox - 153.5.0
Ebuild name:

www-client/firefox-153.5.0

Description

Firefox Web Browser

Added to portage

2026-10-14

firefox-bin - 153.5.0
Ebuild name:

www-client/firefox-bin-153.5.0

Description

Firefox Web Browser

Added to portage

2026-10-14

firefox-l10n - 153.5.0
Ebuild name:

www-client/firefox-l10n-153.5.0

Description

Firefox Web Browser's translation files

Added to portage

2026-10-14

freetype - 2.15.0
Ebuild name:

media-libs/freetype-2.15.0

Description

High-quality and portable font engine

Added to portage

2026-10-14

gcc - 17.0.0_p20261011-r1
Ebuild name:

sys-devel/gcc-17.0.0_p20261011-r1

Description

The GNU Compiler Collection

Added to portage

2026-10-14

glibc - 2.43-r6
Ebuild name:

sys-libs/glibc-2.43-r6

Description

GNU libc C library

Added to portage

2026-10-14

glibc - 2.44-r4
Ebuild name:

sys-libs/glibc-2.44-r4

Description

GNU libc C library

Added to portage

2026-10-14

gpxsee - 16.17
Ebuild name:

sci-geosciences/gpxsee-16.17

Description

Viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea fil

Added to portage

2026-10-14

grafana-bin - 12.4.13
Ebuild name:

www-apps/grafana-bin-12.4.13

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Ope

Added to portage

2026-10-14

grafana-bin - 13.1.8
Ebuild name:

www-apps/grafana-bin-13.1.8

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Open

Added to portage

2026-10-14

grafana-bin - 13.2.4
Ebuild name:

www-apps/grafana-bin-13.2.4

Description

Gorgeous metric viz, dashboards & editors for Graphite, InfluxDB & Open

Added to portage

2026-10-14

haproxy - 3.0.30
Ebuild name:

net-proxy/haproxy-3.0.30

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-10-14

haproxy - 3.2.26
Ebuild name:

net-proxy/haproxy-3.2.26

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-10-14

haproxy - 3.4.7
Ebuild name:

net-proxy/haproxy-3.4.7

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-10-14

haxe-mode - 0.3.3
Ebuild name:

app-emacs/haxe-mode-0.3.3

Description

Major mode for editing Haxe files

Added to portage

2026-10-14

huggingface_hub - 1.26.1
Ebuild name:

sci-ml/huggingface_hub-1.26.1

Description

a client library to interact with the Hugging Face Hub

Added to portage

2026-10-14

huggingface_hub - 1.31.0
Ebuild name:

sci-ml/huggingface_hub-1.31.0

Description

a client library to interact with the Hugging Face Hub

Added to portage

2026-10-14

hypothesis - 6.169.1
Ebuild name:

dev-python/hypothesis-6.169.1

Description

A library for property based testing

Added to portage

2026-10-14

incus - 7.5.1
Ebuild name:

app-containers/incus-7.5.1

Description

Modern, secure and powerful system container and virtual machine manager

Added to portage

2026-10-14

ispc - 1.32.0
Ebuild name:

dev-lang/ispc-1.32.0

Description

Intel SPMD Program Compiler

Added to portage

2026-10-14

jemalloc - 5.4.0-r2
Ebuild name:

dev-libs/jemalloc-5.4.0-r2

Description

Jemalloc is a general-purpose scalable concurrent allocator

Added to portage

2026-10-14

libpng - 1.6.59-r1
Ebuild name:

media-libs/libpng-1.6.59-r1

Description

Portable Network Graphics library

Added to portage

2026-10-14

libzip - 1.12-r1
Ebuild name:

dev-libs/libzip-1.12-r1

Description

Library for manipulating zip archives

Added to portage

2026-10-14

markdown - 3.11.1
Ebuild name:

dev-python/markdown-3.11.1

Description

Python implementation of the markdown markup language

Added to portage

2026-10-14

moarvm - 2026.09
Ebuild name:

dev-lang/moarvm-2026.09

Description

A 6model-based VM for NQP and Raku

Added to portage

2026-10-14

nodejs - 24.21.0-r1
Ebuild name:

net-libs/nodejs-24.21.0-r1

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2026-10-14

nqp - 2026.09
Ebuild name:

dev-lang/nqp-2026.09

Description

Not Quite Perl, a Raku bootstrapping compiler

Added to portage

2026-10-14

openntpd - 7.9_p1
Ebuild name:

net-misc/openntpd-7.9_p1

Description

Lightweight NTP server ported from OpenBSD

Added to portage

2026-10-14

podman - 6.1.4
Ebuild name:

app-containers/podman-6.1.4

Description

A tool for managing OCI containers and pods with Docker-compatible CLI

Added to portage

2026-10-14

pudb - 2026.1
Ebuild name:

dev-python/pudb-2026.1

Description

A full-screen, console-based Python debugger

Added to portage

2026-10-14

python-utils - 4.1.2
Ebuild name:

dev-python/python-utils-4.1.2

Description

Collection of small Python functions & classes

Added to portage

2026-10-14

pyzotero - 1.16.0
Ebuild name:

dev-python/pyzotero-1.16.0

Description

A Python client for the Zotero API

Added to portage

2026-10-14

rakudo - 2026.09
Ebuild name:

dev-lang/rakudo-2026.09

Description

A compiler for the Raku programming language

Added to portage

2026-10-14

rutorrent - 5.3.16
Ebuild name:

www-apps/rutorrent-5.3.16

Description

ruTorrent is a front-end for the popular Bittorrent client rTorrent

Added to portage

2026-10-14

sphinx-autodoc-typehints - 3.13.10
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.13.10

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-10-14

sphinxcontrib-httpdomain - 2.2.0
Ebuild name:

dev-python/sphinxcontrib-httpdomain-2.2.0

Description

Sphinx domain for documenting HTTP APIs

Added to portage

2026-10-14

starlette - 1.8.0
Ebuild name:

dev-python/starlette-1.8.0

Description

The little ASGI framework that shines

Added to portage

2026-10-14

thunderbird - 153.5.0
Ebuild name:

mail-client/thunderbird-153.5.0

Description

Thunderbird Mail Client

Added to portage

2026-10-14

thunderbird - 158.0
Ebuild name:

mail-client/thunderbird-158.0

Description

Thunderbird Mail Client

Added to portage

2026-10-14

thunderbird-bin - 153.5.0
Ebuild name:

mail-client/thunderbird-bin-153.5.0

Description

Thunderbird Mail Client

Added to portage

2026-10-14

thunderbird-bin - 158.0
Ebuild name:

mail-client/thunderbird-bin-158.0

Description

Thunderbird Mail Client

Added to portage

2026-10-14

thunderbird-l10n - 153.5.0
Ebuild name:

mail-client/thunderbird-l10n-153.5.0

Description

Thunderbird mail client's translation files

Added to portage

2026-10-14

thunderbird-l10n - 158.0
Ebuild name:

mail-client/thunderbird-l10n-158.0

Description

Thunderbird mail client's translation files

Added to portage

2026-10-14

tox - 4.65.5
Ebuild name:

dev-python/tox-4.65.5

Description

virtualenv-based automation of test activities

Added to portage

2026-10-14

vnstat - 2.13-r3
Ebuild name:

net-analyzer/vnstat-2.13-r3

Description

Console-based network traffic monitor that keeps statistics of network

Added to portage

2026-10-14

wrapt - 2.5.1
Ebuild name:

dev-python/wrapt-2.5.1

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-10-14

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