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:

88485

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-09-19
clang-runtime - 19.1.7-r2
Ebuild name:

llvm-runtimes/clang-runtime-19.1.7-r2

Description

Meta-ebuild for clang runtime libraries

Added to portage

2026-09-19

clang-runtime - 20.1.8-r2
Ebuild name:

llvm-runtimes/clang-runtime-20.1.8-r2

Description

Meta-ebuild for clang runtime libraries

Added to portage

2026-09-19

clang-runtime - 21.1.8-r1
Ebuild name:

llvm-runtimes/clang-runtime-21.1.8-r1

Description

Meta-ebuild for clang runtime libraries

Added to portage

2026-09-19

clang-runtime - 22-r1
Ebuild name:

llvm-runtimes/clang-runtime-22-r1

Description

Meta-ebuild for clang runtime libraries

Added to portage

2026-09-19

clang-runtime - 23-r2
Ebuild name:

llvm-runtimes/clang-runtime-23-r2

Description

Meta-ebuild for clang runtime libraries

Added to portage

2026-09-19

parse - 1.22.2
Ebuild name:

dev-python/parse-1.22.2

Description

Parse strings using a specification based on the Python format() syntax

Added to portage

2026-09-19

2026-09-18
Coro - 6.570.0-r1
Ebuild name:

dev-perl/Coro-6.570.0-r1

Description

The only real threads in perl

Added to portage

2026-09-18

awkward - 2.14.0
Ebuild name:

dev-python/awkward-2.14.0

Description

Manipulate JSON-like data with NumPy-like idioms

Added to portage

2026-09-18

awkward-cpp - 57
Ebuild name:

dev-python/awkward-cpp-57

Description

CPU kernels and compiled extensions for Awkward Array

Added to portage

2026-09-18

awscli - 2.36.48
Ebuild name:

app-admin/awscli-2.36.48

Description

Universal Command Line Environment for AWS

Added to portage

2026-09-18

barman - 3.20.0
Ebuild name:

dev-db/barman-3.20.0

Description

Administration tool for disaster recovery of PostgreSQL servers

Added to portage

2026-09-18

blockbuster - 1.5.28
Ebuild name:

dev-python/blockbuster-1.5.28

Description

Utility to detect blocking calls in the async event loop

Added to portage

2026-09-18

boto3 - 1.43.97
Ebuild name:

dev-python/boto3-1.43.97

Description

The AWS SDK for Python

Added to portage

2026-09-18

botocore - 1.43.97
Ebuild name:

dev-python/botocore-1.43.97

Description

Low-level, data-driven core of boto 3

Added to portage

2026-09-18

cfn-lint - 1.57.0
Ebuild name:

dev-python/cfn-lint-1.57.0

Description

CloudFormation Linter

Added to portage

2026-09-18

elfutils - 0.196
Ebuild name:

dev-libs/elfutils-0.196

Description

Libraries/utilities to handle ELF objects (drop in replacement for libelf)

Added to portage

2026-09-18

firewalld - 2.5.2
Ebuild name:

net-firewall/firewalld-2.5.2

Description

Firewall daemon with D-Bus interface providing a dynamic firewall

Added to portage

2026-09-18

flang-rt - 21.1.8-r1
Ebuild name:

llvm-runtimes/flang-rt-21.1.8-r1

Description

LLVM's Fortran runtime

Added to portage

2026-09-18

flang-rt - 22.1.8-r1
Ebuild name:

llvm-runtimes/flang-rt-22.1.8-r1

Description

LLVM's Fortran runtime

Added to portage

2026-09-18

flang-rt - 23.1.1-r1
Ebuild name:

llvm-runtimes/flang-rt-23.1.1-r1

Description

LLVM's Fortran runtime

Added to portage

2026-09-18

gcc - 14.4.1_p20260917
Ebuild name:

sys-devel/gcc-14.4.1_p20260917

Description

The GNU Compiler Collection

Added to portage

2026-09-18

git-lfs - 3.8.0
Ebuild name:

dev-vcs/git-lfs-3.8.0

Description

Command line extension and specification for managing large files with git

Added to portage

2026-09-18

google-api-core - 2.38.0
Ebuild name:

dev-python/google-api-core-2.38.0

Description

Core Library for Google Client Libraries

Added to portage

2026-09-18

grafana-bin - 12.1.10
Ebuild name:

www-apps/grafana-bin-12.1.10

Description

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

Added to portage

2026-09-18

grafana-bin - 12.2.10
Ebuild name:

www-apps/grafana-bin-12.2.10

Description

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

Added to portage

2026-09-18

grafana-bin - 12.3.11
Ebuild name:

www-apps/grafana-bin-12.3.11

Description

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

Added to portage

2026-09-18

grafana-bin - 12.4.11
Ebuild name:

www-apps/grafana-bin-12.4.11

Description

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

Added to portage

2026-09-18

grafana-bin - 13.1.6
Ebuild name:

www-apps/grafana-bin-13.1.6

Description

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

Added to portage

2026-09-18

grafana-bin - 13.2.2
Ebuild name:

www-apps/grafana-bin-13.2.2

Description

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

Added to portage

2026-09-18

hatch-jupyter-builder - 0.10.0
Ebuild name:

dev-python/hatch-jupyter-builder-0.10.0

Description

A hatch plugin to help build Jupyter packages

Added to portage

2026-09-18

hidapi-hotplug - 0.15.0
Ebuild name:

dev-libs/hidapi-hotplug-0.15.0

Description

Fork of dev-libs/hidapi with hotplug support

Added to portage

2026-09-18

imapclient - 4.1.0
Ebuild name:

dev-python/imapclient-4.1.0

Description

easy-to-use, pythonic, and complete IMAP client library

Added to portage

2026-09-18

iminuit - 2.33.0
Ebuild name:

dev-python/iminuit-2.33.0

Description

Minuit numerical function minimization in Python

Added to portage

2026-09-18

inform-mode - 2.0.1
Ebuild name:

app-emacs/inform-mode-2.0.1

Description

A major mode for editing Inform programs

Added to portage

2026-09-18

kirigami-addons - 1.14.0
Ebuild name:

dev-libs/kirigami-addons-1.14.0

Description

Visual end user components for Kirigami-based applications

Added to portage

2026-09-18

libde265 - 1.1.3
Ebuild name:

media-libs/libde265-1.1.3

Description

Open h.265 video codec implementation

Added to portage

2026-09-18

libdwarf - 2.3.2
Ebuild name:

dev-libs/libdwarf-2.3.2

Description

Library intended to simplify reading (and writing) applications using DWARF

Added to portage

2026-09-18

libmaxminddb - 1.14.1
Ebuild name:

dev-libs/libmaxminddb-1.14.1

Description

C library for the MaxMind DB file format

Added to portage

2026-09-18

lyx - 2.5.3
Ebuild name:

app-office/lyx-2.5.3

Description

WYSIWYM (What You See Is What You Mean) document processor based on LaTeX

Added to portage

2026-09-18

moarvm - 2026.08
Ebuild name:

dev-lang/moarvm-2026.08

Description

A 6model-based VM for NQP and Raku

Added to portage

2026-09-18

multidict - 6.9.0
Ebuild name:

dev-python/multidict-6.9.0

Description

multidict implementation

Added to portage

2026-09-18

nqp - 2026.08
Ebuild name:

dev-lang/nqp-2026.08

Description

Not Quite Perl, a Raku bootstrapping compiler

Added to portage

2026-09-18

openrgb - 1.0
Ebuild name:

app-misc/openrgb-1.0

Description

Open source RGB lighting control

Added to portage

2026-09-18

openrgb-plugin-effects - 1.0
Ebuild name:

app-misc/openrgb-plugin-effects-1.0

Description

Plugin for OpenRGB with various Effects that can be synced acro

Added to portage

2026-09-18

openrgb-plugin-effects - 1.0_rc2-r1
Ebuild name:

app-misc/openrgb-plugin-effects-1.0_rc2-r1

Description

Plugin for OpenRGB with various Effects that can be sync

Added to portage

2026-09-18

openrgb-plugin-skin - 1.0_rc2-r1
Ebuild name:

app-misc/openrgb-plugin-skin-1.0_rc2-r1

Description

Plugin for OpenRGB that allows you to customize the look an

Added to portage

2026-09-18

openrgb-plugin-visualmap - 1.0
Ebuild name:

app-misc/openrgb-plugin-visualmap-1.0

Description

Plugin for OpenRGB to create virtual devices out of multiple

Added to portage

2026-09-18

openrgb-plugin-visualmap - 1.0_rc2-r1
Ebuild name:

app-misc/openrgb-plugin-visualmap-1.0_rc2-r1

Description

Plugin for OpenRGB to create virtual devices out of mu

Added to portage

2026-09-18

pandas - 3.0.6
Ebuild name:

dev-python/pandas-3.0.6

Description

Powerful data structures for data analysis and statistics

Added to portage

2026-09-18

pipewire - 1.6.9
Ebuild name:

media-video/pipewire-1.6.9

Description

Multimedia processing graphs

Added to portage

2026-09-18

platformdirs - 4.11.10
Ebuild name:

dev-python/platformdirs-4.11.10

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-09-18

pulseaudio-qt - 1.9.0
Ebuild name:

media-libs/pulseaudio-qt-1.9.0

Description

Qt bindings for libpulse

Added to portage

2026-09-18

pyproject-api - 1.11.2
Ebuild name:

dev-python/pyproject-api-1.11.2

Description

API to interact with the python pyproject.toml based projects

Added to portage

2026-09-18

python-discovery - 1.6.1
Ebuild name:

dev-python/python-discovery-1.6.1

Description

Python interpreter discovery

Added to portage

2026-09-18

quiche - 0.30.0
Ebuild name:

net-libs/quiche-0.30.0

Description

Implementation of the QUIC transport protocol and HTTP/3

Added to portage

2026-09-18

rakudo - 2026.08
Ebuild name:

dev-lang/rakudo-2026.08

Description

A compiler for the Raku programming language

Added to portage

2026-09-18

redis - 8.10.2
Ebuild name:

dev-db/redis-8.10.2

Description

A persistent caching system, key-value, and data structures database

Added to portage

2026-09-18

redis - 8.2.10
Ebuild name:

dev-db/redis-8.2.10

Description

A persistent caching system, key-value, and data structures database

Added to portage

2026-09-18

redis - 8.4.7
Ebuild name:

dev-db/redis-8.4.7

Description

A persistent caching system, key-value, and data structures database

Added to portage

2026-09-18

redis - 8.6.7
Ebuild name:

dev-db/redis-8.6.7

Description

A persistent caching system, key-value, and data structures database

Added to portage

2026-09-18

redis - 8.8.3
Ebuild name:

dev-db/redis-8.8.3

Description

A persistent caching system, key-value, and data structures database

Added to portage

2026-09-18

secret-service - 0-r2
Ebuild name:

virtual/secret-service-0-r2

Description

Virtual for a freedesktop.org Secret Service API provider

Added to portage

2026-09-18

sphinx-autodoc-typehints - 3.13.7
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.13.7

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-09-18

strace - 7.2
Ebuild name:

dev-debug/strace-7.2

Description

Useful diagnostic, instructional, and debugging tool

Added to portage

2026-09-18

stunnel - 5.81
Ebuild name:

net-misc/stunnel-5.81

Description

TLS/SSL - Port Wrapper

Added to portage

2026-09-18

tree-sitter - 0.26.0_p20260816-r1
Ebuild name:

dev-python/tree-sitter-0.26.0_p20260816-r1

Description

Python bindings to the Tree-sitter parsing library

Added to portage

2026-09-18

urwid - 4.1.5
Ebuild name:

dev-python/urwid-4.1.5

Description

Curses-based user interface library for Python

Added to portage

2026-09-18

uv - 0.12.16
Ebuild name:

dev-python/uv-0.12.16

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-09-18

uv-build - 0.12.16
Ebuild name:

dev-python/uv-build-0.12.16

Description

PEP517 uv build backend

Added to portage

2026-09-18

virtualenv - 21.7.11
Ebuild name:

dev-python/virtualenv-21.7.11

Description

Virtual Python Environment builder

Added to portage

2026-09-18

virtualenv - 21.7.14
Ebuild name:

dev-python/virtualenv-21.7.14

Description

Virtual Python Environment builder

Added to portage

2026-09-18

wcwidth - 0.8.4
Ebuild name:

dev-python/wcwidth-0.8.4

Description

Measures number of Terminal column cells of wide-character codes

Added to portage

2026-09-18

wireplumber - 0.5.17
Ebuild name:

media-video/wireplumber-0.5.17

Description

Replacement for pipewire-media-session

Added to portage

2026-09-18

wordpress - 7.1.1
Ebuild name:

www-apps/wordpress-7.1.1

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2026-09-18

xfsprogs - 7.2.0
Ebuild name:

sys-fs/xfsprogs-7.2.0

Description

XFS filesystem utilities

Added to portage

2026-09-18

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