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:

89128

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-13
freerdp - 3.32.2
Ebuild name:

net-misc/freerdp-3.32.2

Description

Free implementation of the Remote Desktop Protocol

Added to portage

2026-10-13

javacc - 8.1.0
Ebuild name:

dev-java/javacc-8.1.0

Description

Core module of JavaCC

Added to portage

2026-10-13

javacc-java - 8.1.0
Ebuild name:

dev-java/javacc-java-8.1.0

Description

Java code generator module of JavaCC

Added to portage

2026-10-13

johntheripper-jumbo - 9999
Ebuild name:

app-crypt/johntheripper-jumbo-9999

Description

Fast password cracker, community enhanced version

Added to portage

2026-10-13

kup - 0.10.0
Ebuild name:

kde-plasma/kup-0.10.0

Description

Backup scheduler for the Plasma desktop

Added to portage

2026-10-13

tomcat - 10.1.61
Ebuild name:

www-servers/tomcat-10.1.61

Description

Tomcat Servlet-6.0/JSP-3.1/EL-5.0/WebSocket-2.1/JASPIC-3.0 Container

Added to portage

2026-10-13

tomcat - 11.0.27
Ebuild name:

www-servers/tomcat-11.0.27

Description

Tomcat Servlet-6.1/JSP-4.0/EL-6.0/WebSocket-2.2/JASPIC-3.1 Container

Added to portage

2026-10-13

tomcat - 9.0.123
Ebuild name:

www-servers/tomcat-9.0.123

Description

Tomcat Servlet-4.0/JSP-2.3/EL-3.0/WebSocket-1.1/JASPIC-1.1 Container

Added to portage

2026-10-13

wsjtx_improved - 3.2.0_p20260908
Ebuild name:

media-radio/wsjtx_improved-3.2.0_p20260908

Description

Weak signal ham radio communication with improvements

Added to portage

2026-10-13

2026-10-12
aioquic - 1.5.0
Ebuild name:

dev-python/aioquic-1.5.0

Description

An implementation of QUIC and HTTP/3

Added to portage

2026-10-12

ansible-compat - 26.10.0
Ebuild name:

dev-python/ansible-compat-26.10.0

Description

Contains functions that facilitate working with various versions

Added to portage

2026-10-12

aws-sdk-cpp - 1.11.909
Ebuild name:

dev-cpp/aws-sdk-cpp-1.11.909

Description

AWS SDK for C++

Added to portage

2026-10-12

beartype - 0.23.1
Ebuild name:

dev-python/beartype-0.23.1

Description

Unbearably fast runtime type checking in pure Python

Added to portage

2026-10-12

bitarray - 3.12.1
Ebuild name:

dev-python/bitarray-3.12.1

Description

Efficient arrays of booleans -- C extension

Added to portage

2026-10-12

bracex - 3.1
Ebuild name:

dev-python/bracex-3.1

Description

Bash style brace expansion for Python

Added to portage

2026-10-12

btrfs-assistant - 2.3.2
Ebuild name:

app-admin/btrfs-assistant-2.3.2

Description

GUI management tool to make managing a Btrfs filesystem easier

Added to portage

2026-10-12

cen64-jg - 0.4.1
Ebuild name:

games-emulation/cen64-jg-0.4.1

Description

Jolly Good fork of CEN64

Added to portage

2026-10-12

cen64-jg - 9999
Ebuild name:

games-emulation/cen64-jg-9999

Description

Jolly Good fork of CEN64

Added to portage

2026-10-12

dealii - 9.7.1-r1
Ebuild name:

sci-libs/dealii-9.7.1-r1

Description

Solving partial differential equations with the finite element method

Added to portage

2026-10-12

dealii - 9.8.0-r1
Ebuild name:

sci-libs/dealii-9.8.0-r1

Description

Solving partial differential equations with the finite element method

Added to portage

2026-10-12

dist-kernel - 6.18.56
Ebuild name:

virtual/dist-kernel-6.18.56

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-10-12

dist-kernel - 7.2.10
Ebuild name:

virtual/dist-kernel-7.2.10

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-10-12

docker - 29.9.0
Ebuild name:

app-containers/docker-29.9.0

Description

The core functions you need to create Docker images and run Docker con

Added to portage

2026-10-12

docker-cli - 29.9.0
Ebuild name:

app-containers/docker-cli-29.9.0

Description

the command line binary for docker

Added to portage

2026-10-12

doxygen - 1.17.0-r1
Ebuild name:

app-text/doxygen-1.17.0-r1

Description

Documentation system for most programming languages

Added to portage

2026-10-12

doxygen - 1.18.0-r1
Ebuild name:

app-text/doxygen-1.18.0-r1

Description

Documentation system for most programming languages

Added to portage

2026-10-12

duckdb - 1.5.6
Ebuild name:

dev-db/duckdb-1.5.6

Description

high-performance analytical database system

Added to portage

2026-10-12

filelock - 4.1.1
Ebuild name:

dev-python/filelock-4.1.1

Description

A platform independent file lock for Python

Added to portage

2026-10-12

firefox-bin - 158.0
Ebuild name:

www-client/firefox-bin-158.0

Description

Firefox Web Browser

Added to portage

2026-10-12

gcc - 14.4.1_p20261008
Ebuild name:

sys-devel/gcc-14.4.1_p20261008

Description

The GNU Compiler Collection

Added to portage

2026-10-12

gcc - 15.3.1_p20261009
Ebuild name:

sys-devel/gcc-15.3.1_p20261009

Description

The GNU Compiler Collection

Added to portage

2026-10-12

gcc - 16.2.1_p20261010
Ebuild name:

sys-devel/gcc-16.2.1_p20261010

Description

The GNU Compiler Collection

Added to portage

2026-10-12

gcc - 17.0.0_p20261011
Ebuild name:

sys-devel/gcc-17.0.0_p20261011

Description

The GNU Compiler Collection

Added to portage

2026-10-12

gentoo-kernel - 6.18.56
Ebuild name:

sys-kernel/gentoo-kernel-6.18.56

Description

Linux kernel built with Gentoo patches

Added to portage

2026-10-12

gentoo-kernel - 7.2.10
Ebuild name:

sys-kernel/gentoo-kernel-7.2.10

Description

Linux kernel built with Gentoo patches

Added to portage

2026-10-12

gentoo-kernel-bin - 6.18.56
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.56

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-10-12

gentoo-kernel-bin - 7.2.10
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.2.10

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-10-12

gentoo-kernel-modprep - 6.18.56
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.56

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-10-12

gentoo-kernel-modprep - 7.2.10
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.2.10

Description

Minimal subset of gentoo-kernel-bin for building modules, f

Added to portage

2026-10-12

git-sources - 7.3_rc7
Ebuild name:

sys-kernel/git-sources-7.3_rc7

Description

The very latest -git version of the Linux kernel

Added to portage

2026-10-12

go - 1.26.9
Ebuild name:

dev-lang/go-1.26.9

Description

A concurrent garbage collected and typesafe programming language

Added to portage

2026-10-12

go - 1.27.2
Ebuild name:

dev-lang/go-1.27.2

Description

A concurrent garbage collected and typesafe programming language

Added to portage

2026-10-12

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-12

hypothesis - 6.169.0
Ebuild name:

dev-python/hypothesis-6.169.0

Description

A library for property based testing

Added to portage

2026-10-12

inline-snapshot - 0.36.1
Ebuild name:

dev-python/inline-snapshot-0.36.1

Description

Create and update inline snapshots in your Python tests

Added to portage

2026-10-12

jacksum - 4.0.2
Ebuild name:

app-crypt/jacksum-4.0.2

Description

Java utility for working with checksums, CRCs, and message digests (hashes)

Added to portage

2026-10-12

jgemu - 1.0.0-r2
Ebuild name:

games-emulation/jgemu-1.0.0-r2

Description

Meta ebuild for the Jolly Good API

Added to portage

2026-10-12

jna - 5.19.1
Ebuild name:

dev-java/jna-5.19.1

Description

Java Native Access

Added to portage

2026-10-12

jsonpath-ng - 1.10.1
Ebuild name:

dev-python/jsonpath-ng-1.10.1

Description

Python JSONPath Next-Generation

Added to portage

2026-10-12

keystoneauth1 - 5.18.1
Ebuild name:

dev-python/keystoneauth1-5.18.1

Description

This package contains tools for authenticating to an OpenStack-base

Added to portage

2026-10-12

libhubbub - 9999
Ebuild name:

net-libs/libhubbub-9999

Description

HTML5 compliant parsing library, written in C

Added to portage

2026-10-12

libnsbmp - 9999
Ebuild name:

media-libs/libnsbmp-9999

Description

Decoding library for BMP and ICO image file formats, written in C

Added to portage

2026-10-12

libnsfb - 9999
Ebuild name:

dev-libs/libnsfb-9999

Description

C library for framebuffer abstraction

Added to portage

2026-10-12

libnspsl - 9999
Ebuild name:

media-libs/libnspsl-9999

Description

Public Suffix List (PSL) for the NetSurf browser

Added to portage

2026-10-12

libparserutils - 9999
Ebuild name:

dev-libs/libparserutils-9999

Description

C library for building efficient parsers

Added to portage

2026-10-12

librosprite - 9999
Ebuild name:

media-libs/librosprite-9999

Description

Framebuffer abstraction library, written in C

Added to portage

2026-10-12

libwapcaplet - 9999
Ebuild name:

dev-libs/libwapcaplet-9999

Description

string internment library, written in C

Added to portage

2026-10-12

libxmp - 4.7.4
Ebuild name:

media-libs/libxmp-4.7.4

Description

Library that renders module files to PCM data

Added to portage

2026-10-12

lollypop - 1.4.48
Ebuild name:

media-sound/lollypop-1.4.48

Description

Modern music player for GNOME

Added to portage

2026-10-12

ls-qpack - 2.6.4
Ebuild name:

dev-libs/ls-qpack-2.6.4

Description

QPACK compression library for use with HTTP/3

Added to portage

2026-10-12

ls-qpack - 2.7.0
Ebuild name:

dev-libs/ls-qpack-2.7.0

Description

QPACK compression library for use with HTTP/3

Added to portage

2026-10-12

moto - 5.2.4
Ebuild name:

dev-python/moto-5.2.4

Description

Mock library for boto

Added to portage

2026-10-12

mumps - 5.6.2-r1
Ebuild name:

sci-libs/mumps-5.6.2-r1

Description

MUltifrontal Massively Parallel sparse direct matrix Solver

Added to portage

2026-10-12

nbconvert - 7.17.2
Ebuild name:

dev-python/nbconvert-7.17.2

Description

Converting Jupyter Notebooks

Added to portage

2026-10-12

netsurf-buildsystem - 9999
Ebuild name:

dev-build/netsurf-buildsystem-9999

Description

Build system used for netsurf and its libraries

Added to portage

2026-10-12

nsgenbind - 9999
Ebuild name:

dev-libs/nsgenbind-9999

Description

Generate Javascript-to-DOM bindings from w3c webidl files

Added to portage

2026-10-12

paraview - 6.2.0
Ebuild name:

sci-visualization/paraview-6.2.0

Description

Powerful scientific data visualization application

Added to portage

2026-10-12

patiencediff - 1.0.0
Ebuild name:

dev-python/patiencediff-1.0.0

Description

Python implementation of the patiencediff algorithm

Added to portage

2026-10-12

pikepdf - 10.17.0
Ebuild name:

dev-python/pikepdf-10.17.0

Description

Python library to work with pdf files based on qpdf

Added to portage

2026-10-12

platformdirs - 4.13.0
Ebuild name:

dev-python/platformdirs-4.13.0

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-10-12

ps2eps - 1.70
Ebuild name:

app-text/ps2eps-1.70

Description

Generate Encapsulated Postscript Format files from one-page Postscript documen

Added to portage

2026-10-12

pycryptodome - 3.24.1
Ebuild name:

dev-python/pycryptodome-3.24.1

Description

A self-contained cryptographic library for Python

Added to portage

2026-10-12

pydantic - 2.14.1
Ebuild name:

dev-python/pydantic-2.14.1

Description

Data parsing and validation using Python type hints

Added to portage

2026-10-12

pyglet - 2.1.19
Ebuild name:

dev-python/pyglet-2.1.19

Description

Cross-platform windowing and multimedia library for Python

Added to portage

2026-10-12

pylint - 4.1.3
Ebuild name:

dev-python/pylint-4.1.3

Description

Python code static checker

Added to portage

2026-10-12

pylsqpack - 1.0.0
Ebuild name:

dev-python/pylsqpack-1.0.0

Description

Python wrapper for the ls-qpack QPACK library

Added to portage

2026-10-12

pypdf - 6.20.1
Ebuild name:

dev-python/pypdf-6.20.1

Description

Python library to work with PDF files

Added to portage

2026-10-12

pyrfc3339 - 2.1.1
Ebuild name:

dev-python/pyrfc3339-2.1.1

Description

Generates and parses RFC 3339 timestamps

Added to portage

2026-10-12

pyspelling - 2.13
Ebuild name:

dev-python/pyspelling-2.13

Description

Spell checker automation tool

Added to portage

2026-10-12

pytest-check - 3.0.0
Ebuild name:

dev-python/pytest-check-3.0.0

Description

pytest plugin that allows multiple failures per test

Added to portage

2026-10-12

python-utils - 4.1.1
Ebuild name:

dev-python/python-utils-4.1.1

Description

Collection of small Python functions & classes

Added to portage

2026-10-12

pyzstd - 0.20.0
Ebuild name:

dev-python/pyzstd-0.20.0

Description

Support for Zstandard (zstd) compression

Added to portage

2026-10-12

rust - 1.99.0
Ebuild name:

dev-lang/rust-1.99.0

Description

Systems programming language originally developed by Mozilla

Added to portage

2026-10-12

rust-bin - 1.99.0
Ebuild name:

dev-lang/rust-bin-1.99.0

Description

Added to portage

2026-10-12

rust-common - 1.99.0
Ebuild name:

dev-lang/rust-common-1.99.0

Description

Common files shared between multiple slots of Rust

Added to portage

2026-10-12

rust-std - 1.99.0
Ebuild name:

sys-devel/rust-std-1.99.0

Description

Rust standard library, standalone (for crossdev)

Added to portage

2026-10-12

sip - 6.17.1
Ebuild name:

dev-python/sip-6.17.1

Description

Python bindings generator for C/C++ libraries

Added to portage

2026-10-12

soupsieve - 3.0.2
Ebuild name:

dev-python/soupsieve-3.0.2

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2026-10-12

soupsieve - 3.0.3
Ebuild name:

dev-python/soupsieve-3.0.3

Description

A modern CSS selector implementation for BeautifulSoup

Added to portage

2026-10-12

source-highlight - 9999
Ebuild name:

dev-util/source-highlight-9999

Description

Generate highlighted source code as an (x)html document

Added to portage

2026-10-12

texttable - 1.7.1
Ebuild name:

dev-python/texttable-1.7.1

Description

Module to create simple ASCII tables

Added to portage

2026-10-12

tmux - 3.8
Ebuild name:

app-misc/tmux-3.8

Description

Terminal multiplexer

Added to portage

2026-10-12

tox - 4.65.3
Ebuild name:

dev-python/tox-4.65.3

Description

virtualenv-based automation of test activities

Added to portage

2026-10-12

tox - 4.65.4
Ebuild name:

dev-python/tox-4.65.4

Description

virtualenv-based automation of test activities

Added to portage

2026-10-12

tree-sitter - 0.27.1
Ebuild name:

dev-libs/tree-sitter-0.27.1

Description

Tree-sitter is a parser generator tool and an incremental parsing libra

Added to portage

2026-10-12

tree-sitter-cli - 0.27.1
Ebuild name:

dev-util/tree-sitter-cli-0.27.1

Description

Command-line tool for creating and testing tree-sitter grammars

Added to portage

2026-10-12

trilinos - 16.2.2
Ebuild name:

sci-libs/trilinos-16.2.2

Description

Scientific library collection for large scale problems

Added to portage

2026-10-12

trilinos - 17.1.2
Ebuild name:

sci-libs/trilinos-17.1.2

Description

Scientific library collection for large scale problems

Added to portage

2026-10-12

trilinos - 17.2.1
Ebuild name:

sci-libs/trilinos-17.2.1

Description

Scientific library collection for large scale problems

Added to portage

2026-10-12

upterm - 0.37.0
Ebuild name:

app-misc/upterm-0.37.0

Description

Instant Terminal Sharing

Added to portage

2026-10-12

utidylib - 1.1.0
Ebuild name:

dev-python/utidylib-1.1.0

Description

TidyLib Python wrapper

Added to portage

2026-10-12

validators - 0.36.0
Ebuild name:

dev-python/validators-0.36.0

Description

Python Data Validation for Humans

Added to portage

2026-10-12

valkey - 6.2.0
Ebuild name:

dev-python/valkey-6.2.0

Description

Python client for Valkey forked from redis-py

Added to portage

2026-10-12

vanilla-kernel - 6.18.56
Ebuild name:

sys-kernel/vanilla-kernel-6.18.56

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-10-12

vanilla-kernel - 7.2.10
Ebuild name:

sys-kernel/vanilla-kernel-7.2.10

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-10-12

virtualenv - 21.14.7
Ebuild name:

dev-python/virtualenv-21.14.7

Description

Virtual Python Environment builder

Added to portage

2026-10-12

zedis - 0.13.0
Ebuild name:

dev-db/zedis-0.13.0

Description

Blazing-fast native Redis GUI built with Rust and GPUI

Added to portage

2026-10-12

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