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:

85091

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-05-11
acme-tiny - 5.0.3
Ebuild name:

app-crypt/acme-tiny-5.0.3

Description

Tiny, auditable script for Let's Encrypt's ACME Protocol

Added to portage

2026-05-11

antimicrox - 3.6.0
Ebuild name:

games-util/antimicrox-3.6.0

Description

Graphical program used to map keyboard buttons and mouse controls to a

Added to portage

2026-05-11

btrfs-progs - 7.0
Ebuild name:

sys-fs/btrfs-progs-7.0

Description

Btrfs filesystem utilities

Added to portage

2026-05-11

btrfsutil - 7.0
Ebuild name:

dev-python/btrfsutil-7.0

Description

Library for managing Btrfs filesystems

Added to portage

2026-05-11

coverage - 7.14.0
Ebuild name:

dev-python/coverage-7.14.0

Description

Code coverage measurement for Python

Added to portage

2026-05-11

devcontainer - 0.86.1
Ebuild name:

app-containers/devcontainer-0.86.1

Description

Reference implementation of the Development Containers specifica

Added to portage

2026-05-11

dns-lexicon - 3.25.2
Ebuild name:

dev-python/dns-lexicon-3.25.2

Description

Manipulate DNS records on various DNS providers in a standardized/agn

Added to portage

2026-05-11

ecl - 26.5.5
Ebuild name:

dev-lisp/ecl-26.5.5

Description

ECL is an embeddable Common Lisp implementation

Added to portage

2026-05-11

eisl - 5.66
Ebuild name:

dev-lang/eisl-5.66

Description

Interpreter and compiler compatible with the ISLisp standard

Added to portage

2026-05-11

elogind - 255.24
Ebuild name:

sys-auth/elogind-255.24

Description

The systemd project's logind, extracted to a standalone package

Added to portage

2026-05-11

expat - 2.8.1
Ebuild name:

dev-libs/expat-2.8.1

Description

Stream-oriented XML parser library

Added to portage

2026-05-11

gcc - 17.0.0_p20260510
Ebuild name:

sys-devel/gcc-17.0.0_p20260510

Description

The GNU Compiler Collection

Added to portage

2026-05-11

gdb - 17.2
Ebuild name:

dev-debug/gdb-17.2

Description

GNU debugger

Added to portage

2026-05-11

git-sources - 7.1_rc3
Ebuild name:

sys-kernel/git-sources-7.1_rc3

Description

The very latest -git version of the Linux kernel

Added to portage

2026-05-11

hypothesis - 6.152.5
Ebuild name:

dev-python/hypothesis-6.152.5

Description

A library for property based testing

Added to portage

2026-05-11

idna - 3.14
Ebuild name:

dev-python/idna-3.14

Description

Internationalized Domain Names in Applications (IDNA)

Added to portage

2026-05-11

joplin-desktop - 3.6.11
Ebuild name:

app-office/joplin-desktop-3.6.11

Description

Secure note taking and to-do app with synchronization capabilities

Added to portage

2026-05-11

librt - 0.11.0
Ebuild name:

dev-python/librt-0.11.0

Description

Mypyc runtime library

Added to portage

2026-05-11

libtmux - 0.56.0
Ebuild name:

dev-python/libtmux-0.56.0

Description

Typed library that provides an ORM wrapper for tmux, a terminal multiplex

Added to portage

2026-05-11

moto - 5.2.1
Ebuild name:

dev-python/moto-5.2.1

Description

Mock library for boto

Added to portage

2026-05-11

nxml-libvirt-schemas - 11.10.0
Ebuild name:

app-emacs/nxml-libvirt-schemas-11.10.0

Description

Extension for nxml-mode with libvirt schemas

Added to portage

2026-05-11

nxml-libvirt-schemas - 12.0.0
Ebuild name:

app-emacs/nxml-libvirt-schemas-12.0.0

Description

Extension for nxml-mode with libvirt schemas

Added to portage

2026-05-11

onak - 0.6.4
Ebuild name:

app-crypt/onak-0.6.4

Description

onak is an OpenPGP keyserver

Added to portage

2026-05-11

open-vm-tools - 13.0.10-r1
Ebuild name:

app-emulation/open-vm-tools-13.0.10-r1

Description

Tools for VMware guests

Added to portage

2026-05-11

ophcrack - 3.8.0-r2
Ebuild name:

app-crypt/ophcrack-3.8.0-r2

Description

A time-memory-trade-off-cracker

Added to portage

2026-05-11

pdm - 2.26.9
Ebuild name:

dev-python/pdm-2.26.9

Description

Python package and dependency manager supporting the latest PEP standards

Added to portage

2026-05-11

pytest-subprocess - 1.6.0
Ebuild name:

dev-python/pytest-subprocess-1.6.0

Description

A plugin to fake subprocess for pytest

Added to portage

2026-05-11

python - 0.3.14.5
Ebuild name:

dev-lang/python-0.3.14.5

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2026-05-11

python - 3.14.5
Ebuild name:

dev-lang/python-3.14.5

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-05-11

python-multipart - 0.0.28
Ebuild name:

dev-python/python-multipart-0.0.28

Description

A streaming multipart parser for Python

Added to portage

2026-05-11

python-tests - 0.3.14.5
Ebuild name:

dev-python/python-tests-0.3.14.5

Description

Test modules from dev-lang/python

Added to portage

2026-05-11

python-tests - 3.14.5
Ebuild name:

dev-python/python-tests-3.14.5

Description

Test modules from dev-lang/python

Added to portage

2026-05-11

rclone - 1.74.1
Ebuild name:

net-misc/rclone-1.74.1

Description

A program to sync files to and from various cloud storage providers

Added to portage

2026-05-11

reuse - 6.2.0
Ebuild name:

dev-util/reuse-6.2.0

Description

Manage license information according to the SPDX standard

Added to portage

2026-05-11

textile - 4.0.4
Ebuild name:

dev-python/textile-4.0.4

Description

A Python port of Textile, A humane web text generator

Added to portage

2026-05-11

tomlkit - 0.15.0
Ebuild name:

dev-python/tomlkit-0.15.0

Description

Style preserving TOML library

Added to portage

2026-05-11

transient - 0.13.3
Ebuild name:

app-emacs/transient-0.13.3

Description

Transient commands abstraction for GNU Emacs

Added to portage

2026-05-11

tuxpaint - 0.9.35
Ebuild name:

media-gfx/tuxpaint-0.9.35

Description

Drawing program designed for young children

Added to portage

2026-05-11

tuxpaint-stamps - 20241025
Ebuild name:

media-gfx/tuxpaint-stamps-20241025

Description

Set of 'Rubber Stamp' images which can be used within Tux Paint

Added to portage

2026-05-11

uv - 0.11.13
Ebuild name:

dev-python/uv-0.11.13

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-05-11

uv-build - 0.11.13
Ebuild name:

dev-python/uv-build-0.11.13

Description

PEP517 uv build backend

Added to portage

2026-05-11

xfsprogs - 7.0.0
Ebuild name:

sys-fs/xfsprogs-7.0.0

Description

XFS filesystem utilities

Added to portage

2026-05-11

2026-05-10
bpf-linker - 0.10.3
Ebuild name:

dev-util/bpf-linker-0.10.3

Description

Simple BPF static linker

Added to portage

2026-05-10

cachelib - 0.14.0
Ebuild name:

dev-python/cachelib-0.14.0

Description

Collection of cache libraries in the same API interface. Extracted from

Added to portage

2026-05-10

dash - 0.5.13.4
Ebuild name:

app-shells/dash-0.5.13.4

Description

Debian Almquist Shell

Added to portage

2026-05-10

docutils - 0.23_rc1
Ebuild name:

dev-python/docutils-0.23_rc1

Description

Python Documentation Utilities (reference reStructuredText impl.)

Added to portage

2026-05-10

dropbear - 2026.91
Ebuild name:

net-misc/dropbear-2026.91

Description

Small SSH 2 client/server designed for small memory environments

Added to portage

2026-05-10

drupal - 10.5.9
Ebuild name:

www-apps/drupal-10.5.9

Description

PHP-based open-source platform and content management system

Added to portage

2026-05-10

drupal - 10.6.8
Ebuild name:

www-apps/drupal-10.6.8

Description

PHP-based open-source platform and content management system

Added to portage

2026-05-10

drupal - 11.1.9
Ebuild name:

www-apps/drupal-11.1.9

Description

PHP-based open-source platform and content management system

Added to portage

2026-05-10

drupal - 11.2.11
Ebuild name:

www-apps/drupal-11.2.11

Description

PHP-based open-source platform and content management system

Added to portage

2026-05-10

drupal - 11.3.9
Ebuild name:

www-apps/drupal-11.3.9

Description

PHP-based open-source platform and content management system

Added to portage

2026-05-10

fastcore - 1.12.46
Ebuild name:

sci-ml/fastcore-1.12.46

Description

Python supercharged for the fastai library

Added to portage

2026-05-10

fastcore - 1.8.18
Ebuild name:

sci-ml/fastcore-1.8.18

Description

Python supercharged for the fastai library

Added to portage

2026-05-10

fastprogress - 1.0.5
Ebuild name:

sci-ml/fastprogress-1.0.5

Description

Simple and flexible progress bar for Jupyter Notebook and console

Added to portage

2026-05-10

fastprogress - 1.1.6
Ebuild name:

sci-ml/fastprogress-1.1.6

Description

Simple and flexible progress bar for Jupyter Notebook and console

Added to portage

2026-05-10

feh - 3.12.2
Ebuild name:

media-gfx/feh-3.12.2

Description

A fast, lightweight imageviewer using imlib2

Added to portage

2026-05-10

fex-xtajit - 2605
Ebuild name:

app-emulation/fex-xtajit-2605

Description

A wine emulation dll for running x86 application on an arm64 host

Added to portage

2026-05-10

gcc - 16.1.1_p20260509
Ebuild name:

sys-devel/gcc-16.1.1_p20260509

Description

The GNU Compiler Collection

Added to portage

2026-05-10

gdbus-codegen - 2.88.1
Ebuild name:

dev-util/gdbus-codegen-2.88.1

Description

GDBus code and documentation generator

Added to portage

2026-05-10

glib - 2.88.1
Ebuild name:

dev-libs/glib-2.88.1

Description

The GLib library of C routines

Added to portage

2026-05-10

glib-utils - 2.88.1
Ebuild name:

dev-util/glib-utils-2.88.1

Description

Build utilities for GLib using projects

Added to portage

2026-05-10

grass - 8.5.0
Ebuild name:

sci-geosciences/grass-8.5.0

Description

Free GIS with raster and vector functionality, as well as 3D vizualizat

Added to portage

2026-05-10

incus - 7.0.0
Ebuild name:

app-containers/incus-7.0.0

Description

Modern, secure and powerful system container and virtual machine manager

Added to portage

2026-05-10

ktextaddons - 2.0.2
Ebuild name:

dev-libs/ktextaddons-2.0.2

Description

Various text handling addons

Added to portage

2026-05-10

limine - 12.2.0
Ebuild name:

sys-boot/limine-12.2.0

Description

Limine is a modern, advanced, and portable BIOS/UEFI multiprotocol bootloade

Added to portage

2026-05-10

limnoria - 20260508
Ebuild name:

net-irc/limnoria-20260508

Description

Python based extensible IRC infobot and channel bot

Added to portage

2026-05-10

maturin - 1.13.2
Ebuild name:

dev-util/maturin-1.13.2

Description

Build and publish crates with pyo3, rust-cpython and cffi bindings

Added to portage

2026-05-10

mit-krb5 - 1.22.2-r2
Ebuild name:

app-crypt/mit-krb5-1.22.2-r2

Description

MIT Kerberos V

Added to portage

2026-05-10

ophcrack - 3.8.0-r2
Ebuild name:

app-crypt/ophcrack-3.8.0-r2

Description

A time-memory-trade-off-cracker

Added to portage

2026-05-10

paramiko - 5.0.0
Ebuild name:

dev-python/paramiko-5.0.0

Description

SSH2 protocol library

Added to portage

2026-05-10

poetry - 2.4.1
Ebuild name:

dev-python/poetry-2.4.1

Description

A frontend for poetry - a python dependency management and packaging tool

Added to portage

2026-05-10

poppler - 26.05.0
Ebuild name:

app-text/poppler-26.05.0

Description

PDF rendering library based on the xpdf-3.0 code base

Added to portage

2026-05-10

pygobject - 3.50.2
Ebuild name:

dev-python/pygobject-3.50.2

Description

Python bindings for GObject Introspection

Added to portage

2026-05-10

pygobject - 3.56.3
Ebuild name:

dev-python/pygobject-3.56.3

Description

Python bindings for GObject Introspection

Added to portage

2026-05-10

pypdf - 6.11.0
Ebuild name:

dev-python/pypdf-6.11.0

Description

Python library to work with PDF files

Added to portage

2026-05-10

regex - 2026.5.9
Ebuild name:

dev-python/regex-2026.5.9

Description

Alternative regular expression module to replace re

Added to portage

2026-05-10

sandbox - 2.49
Ebuild name:

sys-apps/sandbox-2.49

Description

sandbox'd LD_PRELOAD hack

Added to portage

2026-05-10

scribus - 1.7.3
Ebuild name:

app-office/scribus-1.7.3

Description

Desktop publishing (DTP) and layout program

Added to portage

2026-05-10

sentencepiece - 0.2.1
Ebuild name:

sci-ml/sentencepiece-0.2.1

Description

Text tokenizer for Neural Network-based text generation

Added to portage

2026-05-10

systemd - 260.1-r1
Ebuild name:

sys-apps/systemd-260.1-r1

Description

System and service manager for Linux

Added to portage

2026-05-10

tree - 2.3.2
Ebuild name:

app-text/tree-2.3.2

Description

Lists directories recursively, and produces an indented listing of files

Added to portage

2026-05-10

uriparser - 1.0.2
Ebuild name:

dev-libs/uriparser-1.0.2

Description

Strictly RFC 3986 compliant URI parsing library in C

Added to portage

2026-05-10

volatility3 - 2.28.0
Ebuild name:

app-forensics/volatility3-2.28.0

Description

Framework for analyzing volatile memory

Added to portage

2026-05-10

xcp - 0.24.8
Ebuild name:

sys-fs/xcp-0.24.8

Description

A 'cp' alternative with user-friendly feedback and performance optimisations

Added to portage

2026-05-10

yara-x - 1.16.0
Ebuild name:

app-forensics/yara-x-1.16.0

Description

A malware identification and classification tool

Added to portage

2026-05-10

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