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:

88567

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-21
ddcutil - 2.2.7
Ebuild name:

app-misc/ddcutil-2.2.7

Description

Program for querying and changing monitor settings

Added to portage

2026-09-21

gcc - 17.0.0_p20260920
Ebuild name:

sys-devel/gcc-17.0.0_p20260920

Description

The GNU Compiler Collection

Added to portage

2026-09-21

geekbench - 7.1.0
Ebuild name:

app-benchmarks/geekbench-7.1.0

Description

A Cross-Platform Benchmark for Android, iOS, Linux, MacOS and Window

Added to portage

2026-09-21

geekbench-ai - 1.8.0
Ebuild name:

app-benchmarks/geekbench-ai-1.8.0

Description

A Cross-Platform AI Benchmark for Android, iOS, Linux, MacOS and

Added to portage

2026-09-21

git-sources - 7.3_rc4
Ebuild name:

sys-kernel/git-sources-7.3_rc4

Description

The very latest -git version of the Linux kernel

Added to portage

2026-09-21

gzip - 1.15
Ebuild name:

app-arch/gzip-1.15

Description

Standard GNU compressor

Added to portage

2026-09-21

ima-evm-utils - 1.4-r1
Ebuild name:

app-crypt/ima-evm-utils-1.4-r1

Description

Supporting tools for IMA and EVM

Added to portage

2026-09-21

intel-graphics-compiler - 2.41.9
Ebuild name:

dev-util/intel-graphics-compiler-2.41.9

Description

LLVM-based OpenCL compiler for OpenCL targetting Intel Gen

Added to portage

2026-09-21

ollama - 0.34.2
Ebuild name:

sci-ml/ollama-0.34.2

Description

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

Added to portage

2026-09-21

pahole - 1.32
Ebuild name:

dev-util/pahole-1.32

Description

pahole (Poke-a-Hole) and other DWARF utilities

Added to portage

2026-09-21

pypy - 3.11.8.0.0
Ebuild name:

dev-lang/pypy-3.11.8.0.0

Description

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

Added to portage

2026-09-21

pypy3-exe - 3.11.8.0.0
Ebuild name:

dev-lang/pypy3-exe-3.11.8.0.0

Description

PyPy3.11 executable (build from source)

Added to portage

2026-09-21

pypy3-exe-bin - 3.11.8.0.0
Ebuild name:

dev-lang/pypy3-exe-bin-3.11.8.0.0

Description

PyPy3.11 executable (pre-built version)

Added to portage

2026-09-21

uutils-coreutils - 0.12.0
Ebuild name:

sys-apps/uutils-coreutils-0.12.0

Description

GNU coreutils rewritten in Rust

Added to portage

2026-09-21

2026-09-20
adwaita-icon-theme - 50.0
Ebuild name:

x11-themes/adwaita-icon-theme-50.0

Description

GNOME default icon theme

Added to portage

2026-09-20

amqp - 5.4.0
Ebuild name:

dev-python/amqp-5.4.0

Description

Low-level AMQP client for Python (fork of amqplib)

Added to portage

2026-09-20

at-spi2-core - 2.60.7
Ebuild name:

app-accessibility/at-spi2-core-2.60.7

Description

D-Bus accessibility specifications and registration daemon

Added to portage

2026-09-20

automake - 1.19
Ebuild name:

dev-build/automake-1.19

Description

Used to generate Makefile.in from Makefile.am

Added to portage

2026-09-20

automake-vanilla - 1.19
Ebuild name:

dev-build/automake-vanilla-1.19

Description

Used to generate Makefile.in from Makefile.am

Added to portage

2026-09-20

automake-wrapper - 20260920
Ebuild name:

dev-build/automake-wrapper-20260920

Description

Wrapper for automake to manage multiple automake versions

Added to portage

2026-09-20

cairomm - 1.18.1
Ebuild name:

dev-cpp/cairomm-1.18.1

Description

C++ bindings for the Cairo vector graphics library

Added to portage

2026-09-20

cups-filters - 9999
Ebuild name:

net-print/cups-filters-9999

Description

Cups filters

Added to portage

2026-09-20

e16 - 1.0.32-r1
Ebuild name:

x11-wm/e16-1.0.32-r1

Description

Enlightenment Window Manager (E16)

Added to portage

2026-09-20

editor - 0-r8
Ebuild name:

virtual/editor-0-r8

Description

Virtual for editor

Added to portage

2026-09-20

eigen - 3.4.1-r1
Ebuild name:

dev-cpp/eigen-3.4.1-r1

Description

C++ template library for linear algebra

Added to portage

2026-09-20

feh - 3.13
Ebuild name:

media-gfx/feh-3.13

Description

A fast, lightweight imageviewer using imlib2

Added to portage

2026-09-20

gcc - 15.3.1_p20260918
Ebuild name:

sys-devel/gcc-15.3.1_p20260918

Description

The GNU Compiler Collection

Added to portage

2026-09-20

gcr - 4.4.1
Ebuild name:

app-crypt/gcr-4.4.1

Description

Libraries for cryptographic UIs and accessing PKCS11 modules

Added to portage

2026-09-20

gdm - 50.3
Ebuild name:

gnome-base/gdm-50.3

Description

GNOME Display Manager for managing graphical display servers and user logins

Added to portage

2026-09-20

gdm - 50.3-r1
Ebuild name:

gnome-base/gdm-50.3-r1

Description

GNOME Display Manager for managing graphical display servers and user logins

Added to portage

2026-09-20

gnome-calendar - 50.0
Ebuild name:

gnome-extra/gnome-calendar-50.0

Description

Manage your calendars with simple and modern interface

Added to portage

2026-09-20

gnome-control-center - 50.4
Ebuild name:

gnome-base/gnome-control-center-50.4

Description

GNOME's main interface to configure various aspects of the des

Added to portage

2026-09-20

gnome-session - 50.1
Ebuild name:

gnome-base/gnome-session-50.1

Description

Gnome session manager

Added to portage

2026-09-20

gnome-session-openrc - 50.0
Ebuild name:

gnome-base/gnome-session-openrc-50.0

Description

Gnome session leader for OpenRC

Added to portage

2026-09-20

gnome-settings-daemon - 50.1
Ebuild name:

gnome-base/gnome-settings-daemon-50.1

Description

Gnome Settings Daemon

Added to portage

2026-09-20

gnome-shell - 50.5
Ebuild name:

gnome-base/gnome-shell-50.5

Description

Provides core UI functions for the GNOME desktop

Added to portage

2026-09-20

gnome-shell-extension-applications-overview-tooltip - 24-r1
Ebuild name:

gnome-extra/gnome-shell-extension-applications-overview-tooltip-24-r1

Description

Show tooltip with full name a

Added to portage

2026-09-20

gnome-shell-extension-dash-to-panel - 74
Ebuild name:

gnome-extra/gnome-shell-extension-dash-to-panel-74

Description

An icon taskbar for the Gnome Shell

Added to portage

2026-09-20

gnome-shell-extension-desktop-icons-ng - 51.0.8
Ebuild name:

gnome-extra/gnome-shell-extension-desktop-icons-ng-51.0.8

Description

Desktop icon support for GNOME Shell

Added to portage

2026-09-20

gnome-shell-extensions - 50.4
Ebuild name:

gnome-extra/gnome-shell-extensions-50.4

Description

JavaScript extensions for GNOME Shell

Added to portage

2026-09-20

gnome-shell-frippery - 50.0
Ebuild name:

gnome-extra/gnome-shell-frippery-50.0

Description

Unofficial extension pack providing GNOME 2-like features

Added to portage

2026-09-20

gsettings-desktop-schemas - 50.1
Ebuild name:

gnome-base/gsettings-desktop-schemas-50.1

Description

Collection of GSettings schemas for GNOME desktop

Added to portage

2026-09-20

gtkmm - 4.22.0
Ebuild name:

dev-cpp/gtkmm-4.22.0

Description

C++ interface for GTK+

Added to portage

2026-09-20

ht - 2.3
Ebuild name:

app-emacs/ht-2.3

Description

The missing hash table library for Emacs

Added to portage

2026-09-20

htmlize - 1.59
Ebuild name:

app-emacs/htmlize-1.59

Description

HTML-ize font-lock buffers in Emacs

Added to portage

2026-09-20

httpd - 1.1-r1
Ebuild name:

app-emacs/httpd-1.1-r1

Description

A HTTP server embedded in the Emacs

Added to portage

2026-09-20

hydra - 0.15.0
Ebuild name:

app-emacs/hydra-0.15.0

Description

Make Emacs bindings that stick around

Added to portage

2026-09-20

icicles - 2018.02.13.23733
Ebuild name:

app-emacs/icicles-2018.02.13.23733

Description

Minibuffer input completion and cycling

Added to portage

2026-09-20

jc - 1.26.0
Ebuild name:

dev-python/jc-1.26.0

Description

Converts the output of popular command-line tools and file-types to JSON

Added to portage

2026-09-20

libadwaita - 1.9.4
Ebuild name:

gui-libs/libadwaita-1.9.4

Description

Building blocks for modern GNOME applications

Added to portage

2026-09-20

libcec - 8.1.7
Ebuild name:

dev-libs/libcec-8.1.7

Description

Library for communicating with the Pulse-Eight USB HDMI-CEC Adaptor

Added to portage

2026-09-20

libcupsfilters - 9999
Ebuild name:

net-print/libcupsfilters-9999

Description

library for developing printing features, split out of cups-filters

Added to portage

2026-09-20

libdvdread - 7.1.1
Ebuild name:

media-libs/libdvdread-7.1.1

Description

Library for DVD navigation tools

Added to portage

2026-09-20

libltdl - 2.6.2
Ebuild name:

dev-libs/libltdl-2.6.2

Description

A shared library tool for developers

Added to portage

2026-09-20

libtimidity - 0.2.8
Ebuild name:

media-libs/libtimidity-0.2.8

Description

MIDI to WAVE converter library

Added to portage

2026-09-20

libtool - 2.6.2
Ebuild name:

dev-build/libtool-2.6.2

Description

A shared library tool for developers

Added to portage

2026-09-20

libwmf - 0.2.16
Ebuild name:

media-libs/libwmf-0.2.16

Description

Library for reading vector images in Microsoft's Windows Metafile Format (

Added to portage

2026-09-20

man-pages-ja - 20260915
Ebuild name:

app-i18n/man-pages-ja-20260915

Description

Collection of manual pages translated into Japanese

Added to portage

2026-09-20

minicoredumper - 2.1.0
Ebuild name:

sys-process/minicoredumper-2.1.0

Description

Core dump file processor

Added to portage

2026-09-20

mutter - 50.5
Ebuild name:

x11-wm/mutter-50.5

Description

GNOME compositing window manager based on Clutter

Added to portage

2026-09-20

nautilus - 50.3.1
Ebuild name:

gnome-base/nautilus-50.3.1

Description

Default file manager for the GNOME desktop

Added to portage

2026-09-20

networkmanager-libreswan - 1.2.31
Ebuild name:

net-vpn/networkmanager-libreswan-1.2.31

Description

NetworkManager libreswan plugin

Added to portage

2026-09-20

openpgp-keys-ddevault - 20250219
Ebuild name:

sec-keys/openpgp-keys-ddevault-20250219

Description

Drew DeVault's PGP signing key

Added to portage

2026-09-20

openpgp-keys-kamilaszewczyk - 20260920
Ebuild name:

sec-keys/openpgp-keys-kamilaszewczyk-20260920

Description

OpenPGP keys used by Kamila Szewczyk

Added to portage

2026-09-20

openpgp-keys-libtool - 20260920
Ebuild name:

sec-keys/openpgp-keys-libtool-20260920

Description

OpenPGP keys used by GNU libtool

Added to portage

2026-09-20

openpgp-keys-paulhardy - 20220319
Ebuild name:

sec-keys/openpgp-keys-paulhardy-20220319

Description

OpenPGP keys used by Paul Hardy

Added to portage

2026-09-20

pch-session - 50.0
Ebuild name:

gnome-extra/pch-session-50.0

Description

Unofficial gnome based session with different default settings and ext

Added to portage

2026-09-20

poetry - 2.5.0
Ebuild name:

dev-python/poetry-2.5.0

Description

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

Added to portage

2026-09-20

poetry-core - 2.5.0
Ebuild name:

dev-python/poetry-core-2.5.0

Description

Poetry PEP 517 Build Backend

Added to portage

2026-09-20

poetry-plugin-export - 1.10.1
Ebuild name:

dev-python/poetry-plugin-export-1.10.1

Description

A plugin that allows the export of locked packages to variou

Added to portage

2026-09-20

portalocker - 4.4.0
Ebuild name:

dev-python/portalocker-4.4.0

Description

A library for Python file locking

Added to portage

2026-09-20

pypy - 2.7.8.0.0
Ebuild name:

dev-lang/pypy-2.7.8.0.0

Description

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

Added to portage

2026-09-20

pypy-exe - 8.0.0
Ebuild name:

dev-python/pypy-exe-8.0.0

Description

PyPy executable (build from source)

Added to portage

2026-09-20

pypy-exe-bin - 8.0.0
Ebuild name:

dev-python/pypy-exe-bin-8.0.0

Description

PyPy executable (pre-built version)

Added to portage

2026-09-20

sddm - 0.21.0_p20260819
Ebuild name:

x11-misc/sddm-0.21.0_p20260819

Description

Simple Desktop Display Manager

Added to portage

2026-09-20

shotwell - 33.0
Ebuild name:

media-gfx/shotwell-33.0

Description

Open source photo manager for GNOME

Added to portage

2026-09-20

tox - 4.63.0
Ebuild name:

dev-python/tox-4.63.0

Description

virtualenv-based automation of test activities

Added to portage

2026-09-20

unicode-data - 18.0.0
Ebuild name:

app-i18n/unicode-data-18.0.0

Description

Unicode data from unicode.org

Added to portage

2026-09-20

unicode-emoji - 18.0.0
Ebuild name:

app-i18n/unicode-emoji-18.0.0

Description

UTS 51 Unicode Emoji

Added to portage

2026-09-20

unifont - 18.0.01
Ebuild name:

media-fonts/unifont-18.0.01

Description

Unicode bitmap font with full Basic Multilingual Plane coverage

Added to portage

2026-09-20

uzdoom - 5.0.1
Ebuild name:

games-engines/uzdoom-5.0.1

Description

Modder-friendly hardware-accelerated source port of the DOOM engine

Added to portage

2026-09-20

virtualenv - 21.7.16
Ebuild name:

dev-python/virtualenv-21.7.16

Description

Virtual Python Environment builder

Added to portage

2026-09-20

virtualenv - 21.9.0
Ebuild name:

dev-python/virtualenv-21.9.0

Description

Virtual Python Environment builder

Added to portage

2026-09-20

xdg-desktop-portal-gnome - 50.0
Ebuild name:

sys-apps/xdg-desktop-portal-gnome-50.0

Description

Backend implementation for xdg-desktop-portal using GNOME

Added to portage

2026-09-20

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