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:

90639

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-11-25
aseprite - 1.3.18.6
Ebuild name:

dev-games/aseprite-1.3.18.6

Description

Animated sprite editor & pixel art tool

Added to portage

2026-11-25

kbfs - 9999
Ebuild name:

app-crypt/kbfs-9999

Description

Keybase Filesystem (KBFS)

Added to portage

2026-11-25

keepsecret - 26.08.3
Ebuild name:

app-crypt/keepsecret-26.08.3

Description

Password manager GUI for SecretService providers

Added to portage

2026-11-25

keybase - 6.0.2
Ebuild name:

app-crypt/keybase-6.0.2

Description

Keybase client

Added to portage

2026-11-25

keybase - 6.2.4
Ebuild name:

app-crypt/keybase-6.2.4

Description

Keybase client

Added to portage

2026-11-25

keybase - 9999
Ebuild name:

app-crypt/keybase-9999

Description

Keybase client

Added to portage

2026-11-25

krita - 6.0.5
Ebuild name:

media-gfx/krita-6.0.5

Description

Free digital painting application. Digital Painting, Creative Freedom

Added to portage

2026-11-25

libetonyek - 0.1.15
Ebuild name:

app-text/libetonyek-0.1.15

Description

Library parsing Apple Keynote presentations

Added to portage

2026-11-25

libetonyek - 9999
Ebuild name:

app-text/libetonyek-9999

Description

Library parsing Apple Keynote presentations

Added to portage

2026-11-25

libmspub - 0.1.6
Ebuild name:

app-text/libmspub-0.1.6

Description

Library parsing Microsoft Publisher documents

Added to portage

2026-11-25

libvisio - 0.1.12
Ebuild name:

media-libs/libvisio-0.1.12

Description

Library parsing the file format of MS Visio documents

Added to portage

2026-11-25

ollama - 0.40.18
Ebuild name:

sci-ml/ollama-0.40.18

Description

Get up and running with Llama 3, Mistral, Gemma, and other language models

Added to portage

2026-11-25

quazip - 1.7.2
Ebuild name:

dev-libs/quazip-1.7.2

Description

Simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package

Added to portage

2026-11-25

rr - 5.10.0
Ebuild name:

dev-debug/rr-5.10.0

Description

Record and Replay Framework

Added to portage

2026-11-25

2026-11-24
aws-c-mqtt - 1.1.4
Ebuild name:

dev-libs/aws-c-mqtt-1.1.4

Description

AWS C MQTT C99 implementation

Added to portage

2026-11-24

c-blosc2 - 3.8.0
Ebuild name:

dev-libs/c-blosc2-3.8.0

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-11-24

chrome-binary-plugins - 158.0.8127.88
Ebuild name:

www-plugins/chrome-binary-plugins-158.0.8127.88

Description

Binary plugins from Google Chrome for use in Chromi

Added to portage

2026-11-24

chrome-binary-plugins - 159.0.8154.13_beta
Ebuild name:

www-plugins/chrome-binary-plugins-159.0.8154.13_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-11-24

chrome-binary-plugins - 160.0.8171.0_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-160.0.8171.0_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-11-24

chromedriver-bin - 158.0.8127.88
Ebuild name:

www-apps/chromedriver-bin-158.0.8127.88

Description

WebDriver for Chrome

Added to portage

2026-11-24

cli-helpers - 2.15.4
Ebuild name:

dev-python/cli-helpers-2.15.4

Description

Python helpers for common CLI tasks

Added to portage

2026-11-24

clojure - 1.12.7
Ebuild name:

dev-lang/clojure-1.12.7

Description

General-purpose programming language with an emphasis on functional program

Added to portage

2026-11-24

coverage - 7.17.5
Ebuild name:

dev-python/coverage-7.17.5

Description

Code coverage measurement for Python

Added to portage

2026-11-24

debtcollector - 3.2.0
Ebuild name:

dev-python/debtcollector-3.2.0

Description

Python deprecation patterns and strategies that collect technical de

Added to portage

2026-11-24

distrobox - 1.8.2.6
Ebuild name:

app-containers/distrobox-1.8.2.6

Description

Use any Linux distribution inside your terminal (powered by docker

Added to portage

2026-11-24

expat - 2.11.0
Ebuild name:

dev-libs/expat-2.11.0

Description

Stream-oriented XML parser library

Added to portage

2026-11-24

fakeredis - 2.41.0
Ebuild name:

dev-python/fakeredis-2.41.0

Description

Fake implementation of redis API for testing purposes

Added to portage

2026-11-24

ffmpeg-chromium - 160.0.8157.0
Ebuild name:

media-video/ffmpeg-chromium-160.0.8157.0

Description

FFmpeg built specifically for codec support in Chromium-ba

Added to portage

2026-11-24

firefox - 153.8.0
Ebuild name:

www-client/firefox-153.8.0

Description

Firefox Web Browser

Added to portage

2026-11-24

firefox - 161.0
Ebuild name:

www-client/firefox-161.0

Description

Firefox Web Browser

Added to portage

2026-11-24

firefox-bin - 153.8.0
Ebuild name:

www-client/firefox-bin-153.8.0

Description

Firefox Web Browser

Added to portage

2026-11-24

firefox-l10n - 153.8.0
Ebuild name:

www-client/firefox-l10n-153.8.0

Description

Firefox Web Browser's translation files

Added to portage

2026-11-24

firefox-l10n - 161.0
Ebuild name:

www-client/firefox-l10n-161.0

Description

Firefox Web Browser's translation files

Added to portage

2026-11-24

flann - 1.9.2_p20221027-r2
Ebuild name:

sci-libs/flann-1.9.2_p20221027-r2

Description

Fast approximate nearest neighbor searches in high dimensional sp

Added to portage

2026-11-24

gallery-dl - 1.32.21
Ebuild name:

net-misc/gallery-dl-1.32.21

Description

Download image galleries and collections from several image hosting sit

Added to portage

2026-11-24

gaul-devel - 0.1850
Ebuild name:

sci-libs/gaul-devel-0.1850

Description

Genetic Algorithm Utility Library

Added to portage

2026-11-24

google-chrome - 158.0.8127.88
Ebuild name:

www-client/google-chrome-158.0.8127.88

Description

The web browser from Google

Added to portage

2026-11-24

google-chrome-beta - 159.0.8154.13
Ebuild name:

www-client/google-chrome-beta-159.0.8154.13

Description

The web browser from Google

Added to portage

2026-11-24

google-chrome-unstable - 160.0.8171.0
Ebuild name:

www-client/google-chrome-unstable-160.0.8171.0

Description

The web browser from Google

Added to portage

2026-11-24

grub - 2.16-r2
Ebuild name:

sys-boot/grub-2.16-r2

Description

GNU GRUB boot loader

Added to portage

2026-11-24

ipython - 9.19.1
Ebuild name:

dev-python/ipython-9.19.1

Description

Advanced interactive shell for Python

Added to portage

2026-11-24

jwcrypto - 1.6.2
Ebuild name:

dev-python/jwcrypto-1.6.2

Description

Implements JWK,JWS,JWE specifications using python-cryptography

Added to portage

2026-11-24

kalarm - 26.08.3-r2
Ebuild name:

kde-apps/kalarm-26.08.3-r2

Description

Application to manage alarms and other timer based alerts for the deskto

Added to portage

2026-11-24

kwin - 6.7.6-r1
Ebuild name:

kde-plasma/kwin-6.7.6-r1

Description

Flexible, composited Window Manager for windowing systems on Linux

Added to portage

2026-11-24

kwin - 6.8.3-r1
Ebuild name:

kde-plasma/kwin-6.8.3-r1

Description

Flexible, composited Window Manager for windowing systems on Linux

Added to portage

2026-11-24

luaposix - 39
Ebuild name:

dev-lua/luaposix-39

Description

Bindings for POSIX APIs

Added to portage

2026-11-24

marknote - 1.6.0-r1
Ebuild name:

app-text/marknote-1.6.0-r1

Description

Markdown editor with a wide range of formating options for everyday note

Added to portage

2026-11-24

microsoft-edge - 158.0.4370.33
Ebuild name:

www-client/microsoft-edge-158.0.4370.33

Description

The web browser from Microsoft

Added to portage

2026-11-24

microsoft-edge-beta - 159.0.4402.13
Ebuild name:

www-client/microsoft-edge-beta-159.0.4402.13

Description

The web browser from Microsoft

Added to portage

2026-11-24

microsoft-edge-dev - 160.0.4408.0
Ebuild name:

www-client/microsoft-edge-dev-160.0.4408.0

Description

The web browser from Microsoft

Added to portage

2026-11-24

mod_qos - 11.80
Ebuild name:

www-apache/mod_qos-11.80

Description

A QOS module for the apache webserver

Added to portage

2026-11-24

moto - 5.2.6
Ebuild name:

dev-python/moto-5.2.6

Description

Mock library for boto

Added to portage

2026-11-24

nattka - 0.6.0
Ebuild name:

app-portage/nattka-0.6.0

Description

A New Arch Tester Toolkit -- open-source stable-bot replacement

Added to portage

2026-11-24

nginx - 1.30.8
Ebuild name:

www-servers/nginx-1.30.8

Description

Added to portage

2026-11-24

nginx - 1.31.10
Ebuild name:

www-servers/nginx-1.31.10

Description

Added to portage

2026-11-24

nodejs - 22.23.5-r2
Ebuild name:

net-libs/nodejs-22.23.5-r2

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2026-11-24

nss-pam-ldapd - 0.9.14
Ebuild name:

sys-auth/nss-pam-ldapd-0.9.14

Description

NSS module for name lookups using LDAP

Added to portage

2026-11-24

openjdk-bin - 25.0.5.1_p2
Ebuild name:

dev-java/openjdk-bin-25.0.5.1_p2

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-11-24

openjdk-bin - 27.0.1.1_p4
Ebuild name:

dev-java/openjdk-bin-27.0.1.1_p4

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-11-24

openstackdocstheme - 3.7.1
Ebuild name:

dev-python/openstackdocstheme-3.7.1

Description

Theme and extension support for Sphinx documentation

Added to portage

2026-11-24

opera-gx - 140.0.6074.48
Ebuild name:

www-client/opera-gx-140.0.6074.48

Description

Opera, but for 'gamers'

Added to portage

2026-11-24

packaging - 26.4
Ebuild name:

dev-python/packaging-26.4

Description

Core utilities for Python packages

Added to portage

2026-11-24

pam_mysql - 0.8.2-r3
Ebuild name:

sys-auth/pam_mysql-0.8.2-r3

Description

pam_mysql is a module for pam to authenticate users with mysql

Added to portage

2026-11-24

pbs-installer - 2026.11.23
Ebuild name:

dev-python/pbs-installer-2026.11.23

Description

Installer for Python Build Standalone

Added to portage

2026-11-24

plasma-workspace - 6.7.6-r1
Ebuild name:

kde-plasma/plasma-workspace-6.7.6-r1

Description

KDE Plasma workspace

Added to portage

2026-11-24

pypi-attestations - 0.0.32
Ebuild name:

dev-python/pypi-attestations-0.0.32

Description

Convert between Sigstore Bundles and PEP-740 Attestation object

Added to portage

2026-11-24

qbs - 3.4.0
Ebuild name:

dev-util/qbs-3.4.0

Description

Modern build tool for software projects

Added to portage

2026-11-24

qdirstat - 2.0.1
Ebuild name:

sys-apps/qdirstat-2.0.1

Description

Qt-based directory statistics

Added to portage

2026-11-24

qt-creator - 21.0.0
Ebuild name:

dev-qt/qt-creator-21.0.0

Description

Lightweight IDE for C++/QML development centering around Qt

Added to portage

2026-11-24

qtcanvaspainter - 6.12.1
Ebuild name:

dev-qt/qtcanvaspainter-6.12.1

Description

Accelerated 2D painting solution for Qt Quick and QRhi-based render t

Added to portage

2026-11-24

qtcanvaspainter - 6.12.9999
Ebuild name:

dev-qt/qtcanvaspainter-6.12.9999

Description

Accelerated 2D painting solution for Qt Quick and QRhi-based rende

Added to portage

2026-11-24

qtcanvaspainter - 6.9999
Ebuild name:

dev-qt/qtcanvaspainter-6.9999

Description

Accelerated 2D painting solution for Qt Quick and QRhi-based render t

Added to portage

2026-11-24

reaper-bin - 7.86-r1
Ebuild name:

media-sound/reaper-bin-7.86-r1

Description

Digital audio workstation

Added to portage

2026-11-24

redis - 8.2.0
Ebuild name:

dev-python/redis-8.2.0

Description

Python client for Redis key-value store

Added to portage

2026-11-24

regex - 2026.11.23
Ebuild name:

dev-python/regex-2026.11.23

Description

Alternative regular expression module to replace re

Added to portage

2026-11-24

selenium - 4.54.0
Ebuild name:

dev-python/selenium-4.54.0

Description

Python language binding for Selenium Remote Control

Added to portage

2026-11-24

selenium-manager - 4.54.0
Ebuild name:

dev-util/selenium-manager-4.54.0

Description

CLI tool that manages the browser/driver infrastructure required b

Added to portage

2026-11-24

sngrep - 1.9.0
Ebuild name:

net-analyzer/sngrep-1.9.0

Description

Ncurses SIP Messages flow viewer

Added to portage

2026-11-24

sqlglot - 30.34.0
Ebuild name:

dev-python/sqlglot-30.34.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2026-11-24

sundials - 7.9.0
Ebuild name:

sci-libs/sundials-7.9.0

Description

Suite of nonlinear solvers

Added to portage

2026-11-24

tmuxp - 1.81.0
Ebuild name:

app-misc/tmuxp-1.81.0

Description

tmux session manager. built on libtmux

Added to portage

2026-11-24

union - 6.8.3-r1
Ebuild name:

kde-plasma/union-6.8.3-r1

Description

Style engine providing a unified style description to separate output sty

Added to portage

2026-11-24

vivaldi - 8.3.4191.47
Ebuild name:

www-client/vivaldi-8.3.4191.47

Description

A browser for our friends

Added to portage

2026-11-24

vivaldi-snapshot - 8.4.4241.3
Ebuild name:

www-client/vivaldi-snapshot-8.4.4241.3

Description

A browser for our friends

Added to portage

2026-11-24

wine-proton - 11.0.3
Ebuild name:

app-emulation/wine-proton-11.0.3

Description

Valve Software's fork of Wine

Added to portage

2026-11-24

yt-dlp - 2026.11.23
Ebuild name:

net-misc/yt-dlp-2026.11.23

Description

youtube-dl fork with additional features and fixes

Added to portage

2026-11-24

zope-deprecation - 6.1
Ebuild name:

dev-python/zope-deprecation-6.1

Description

Zope Deprecation Infrastructure

Added to portage

2026-11-24

zope-exceptions - 6.1
Ebuild name:

dev-python/zope-exceptions-6.1

Description

General purpose exceptions for Zope packages

Added to portage

2026-11-24

zstd - 1.6.0
Ebuild name:

app-arch/zstd-1.6.0

Description

zstd fast compression library

Added to portage

2026-11-24

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