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:

87988

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-08-28
cadabra - 2.5.14_p1-r2
Ebuild name:

sci-mathematics/cadabra-2.5.14_p1-r2

Description

Field-theory motivated approach to computer algebra

Added to portage

2026-08-28

dist-kernel - 6.1.185
Ebuild name:

virtual/dist-kernel-6.1.185

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-28

dist-kernel - 6.12.106
Ebuild name:

virtual/dist-kernel-6.12.106

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-28

dist-kernel - 6.18.47
Ebuild name:

virtual/dist-kernel-6.18.47

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-28

dist-kernel - 6.6.154
Ebuild name:

virtual/dist-kernel-6.6.154

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-28

dist-kernel - 7.1.11
Ebuild name:

virtual/dist-kernel-7.1.11

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-28

feh - 3.12.3
Ebuild name:

media-gfx/feh-3.12.3

Description

A fast, lightweight imageviewer using imlib2

Added to portage

2026-08-28

gentoo-kernel - 6.1.185
Ebuild name:

sys-kernel/gentoo-kernel-6.1.185

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-28

gentoo-kernel - 6.12.106
Ebuild name:

sys-kernel/gentoo-kernel-6.12.106

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-28

gentoo-kernel - 6.18.47
Ebuild name:

sys-kernel/gentoo-kernel-6.18.47

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-28

gentoo-kernel - 6.6.154
Ebuild name:

sys-kernel/gentoo-kernel-6.6.154

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-28

gentoo-kernel - 7.1.11
Ebuild name:

sys-kernel/gentoo-kernel-7.1.11

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-28

gentoo-kernel-bin - 6.1.185
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.185

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-28

gentoo-kernel-bin - 6.12.106
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.106

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-28

gentoo-kernel-bin - 6.18.47
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.47

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-28

gentoo-kernel-bin - 6.6.154
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.154

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-28

gentoo-kernel-bin - 7.1.11
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.11

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-28

gentoo-kernel-modprep - 6.1.185
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.185

Description

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

Added to portage

2026-08-28

gentoo-kernel-modprep - 6.12.106
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.106

Description

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

Added to portage

2026-08-28

gentoo-kernel-modprep - 6.18.47
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.47

Description

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

Added to portage

2026-08-28

gentoo-kernel-modprep - 6.6.154
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.154

Description

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

Added to portage

2026-08-28

gentoo-kernel-modprep - 7.1.11
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.11

Description

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

Added to portage

2026-08-28

gnuradio - 3.10.12.0-r4
Ebuild name:

net-wireless/gnuradio-3.10.12.0-r4

Description

Toolkit that provides signal processing blocks to implement soft

Added to portage

2026-08-28

mailcrypt - 3.5.9-r3
Ebuild name:

app-emacs/mailcrypt-3.5.9-r3

Description

Provides a simple interface to public key cryptography with OpenPGP

Added to portage

2026-08-28

nodejs - 26.8.1
Ebuild name:

net-libs/nodejs-26.8.1

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2026-08-28

php-mode - 1.28.0
Ebuild name:

app-emacs/php-mode-1.28.0

Description

GNU Emacs major mode for editing PHP code

Added to portage

2026-08-28

pkixssh - 19.1
Ebuild name:

net-misc/pkixssh-19.1

Description

OpenSSH fork with X.509 v3 certificate support

Added to portage

2026-08-28

telegram-desktop - 7.1.2
Ebuild name:

net-im/telegram-desktop-7.1.2

Description

Official desktop client for Telegram

Added to portage

2026-08-28

tg_owt - 0_pre20260803
Ebuild name:

media-libs/tg_owt-0_pre20260803

Description

WebRTC build for Telegram

Added to portage

2026-08-28

vanilla-kernel - 6.1.185
Ebuild name:

sys-kernel/vanilla-kernel-6.1.185

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-28

vanilla-kernel - 6.12.106
Ebuild name:

sys-kernel/vanilla-kernel-6.12.106

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-28

vanilla-kernel - 6.18.47
Ebuild name:

sys-kernel/vanilla-kernel-6.18.47

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-28

vanilla-kernel - 6.6.154
Ebuild name:

sys-kernel/vanilla-kernel-6.6.154

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-28

vanilla-kernel - 7.1.11
Ebuild name:

sys-kernel/vanilla-kernel-7.1.11

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-28

2026-08-27
ansifilter - 2.23
Ebuild name:

app-text/ansifilter-2.23

Description

Handles text files containing ANSI terminal escape codes

Added to portage

2026-08-27

apsw - 3.53.4.0
Ebuild name:

dev-python/apsw-3.53.4.0

Description

APSW - Another Python SQLite Wrapper

Added to portage

2026-08-27

boto3 - 1.43.81
Ebuild name:

dev-python/boto3-1.43.81

Description

The AWS SDK for Python

Added to portage

2026-08-27

botocore - 1.43.81
Ebuild name:

dev-python/botocore-1.43.81

Description

Low-level, data-driven core of boto 3

Added to portage

2026-08-27

cachebox - 6.2.6
Ebuild name:

dev-python/cachebox-6.2.6

Description

The fastest memoizing and caching Python library written in Rust

Added to portage

2026-08-27

cargo-c - 0.10.25
Ebuild name:

dev-util/cargo-c-0.10.25

Description

Helper program to build and install c-like libraries

Added to portage

2026-08-27

click - 8.5.0
Ebuild name:

dev-python/click-8.5.0

Description

A Python package for creating beautiful command line interfaces

Added to portage

2026-08-27

fd - 10.5.0
Ebuild name:

sys-apps/fd-10.5.0

Description

Alternative to find that provides sensible defaults for 80% of the use cases

Added to portage

2026-08-27

gentoo-sources - 6.1.185
Ebuild name:

sys-kernel/gentoo-sources-6.1.185

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-27

gentoo-sources - 6.12.106
Ebuild name:

sys-kernel/gentoo-sources-6.12.106

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-27

gentoo-sources - 6.18.47
Ebuild name:

sys-kernel/gentoo-sources-6.18.47

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-27

gentoo-sources - 6.6.154
Ebuild name:

sys-kernel/gentoo-sources-6.6.154

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-27

gentoo-sources - 7.1.11
Ebuild name:

sys-kernel/gentoo-sources-7.1.11

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-27

gentoo-sources - 7.2.1
Ebuild name:

sys-kernel/gentoo-sources-7.2.1

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-27

hachoir - 3.3.0
Ebuild name:

dev-python/hachoir-3.3.0

Description

Library to view and edit a binary stream field by field

Added to portage

2026-08-27

isort - 9.0.0
Ebuild name:

dev-python/isort-9.0.0

Description

A python utility/library to sort imports

Added to portage

2026-08-27

jwcrypto - 1.5.9
Ebuild name:

dev-python/jwcrypto-1.5.9

Description

Implements JWK,JWS,JWE specifications using python-cryptography

Added to portage

2026-08-27

keystoneauth1 - 5.16.0
Ebuild name:

dev-python/keystoneauth1-5.16.0

Description

This package contains tools for authenticating to an OpenStack-base

Added to portage

2026-08-27

libzia - 4.73
Ebuild name:

dev-libs/libzia-4.73

Description

Platform abstraction code for tucnak package

Added to portage

2026-08-27

marginalia - 2.11
Ebuild name:

app-emacs/marginalia-2.11

Description

Marginalia in the minibuffer

Added to portage

2026-08-27

marginalia - 2.12
Ebuild name:

app-emacs/marginalia-2.12

Description

Marginalia in the minibuffer

Added to portage

2026-08-27

mtime - 2.2.0
Ebuild name:

dev-ml/mtime-2.2.0

Description

OCaml module to access monotonic wall-clock time

Added to portage

2026-08-27

nbxmpp - 7.4.0
Ebuild name:

dev-python/nbxmpp-7.4.0

Description

Python library to use Jabber/XMPP networks in a non-blocking way

Added to portage

2026-08-27

openstacksdk - 4.19.0
Ebuild name:

dev-python/openstacksdk-4.19.0

Description

A collection of libraries for building applications to work with Ope

Added to portage

2026-08-27

par2cmdline-turbo - 1.5.0
Ebuild name:

app-arch/par2cmdline-turbo-1.5.0

Description

par2cmdline × ParPar speed focused par2cmdline fork

Added to portage

2026-08-27

paraview - 6.1.1
Ebuild name:

sci-visualization/paraview-6.1.1

Description

Powerful scientific data visualization application

Added to portage

2026-08-27

plex-media-server - 1.43.3.10896
Ebuild name:

media-tv/plex-media-server-1.43.3.10896

Description

Free media library that is intended for use with a plex cli

Added to portage

2026-08-27

pyspnego - 0.12.2
Ebuild name:

dev-python/pyspnego-0.12.2

Description

Library to handle SPNEGO and CredSSP authentication

Added to portage

2026-08-27

python-ironicclient - 6.3.0
Ebuild name:

dev-python/python-ironicclient-6.3.0

Description

Python bindings for the Ironic API

Added to portage

2026-08-27

python-neutronclient - 14.0.0
Ebuild name:

dev-python/python-neutronclient-14.0.0

Description

A client for the OpenStack Quantum API

Added to portage

2026-08-27

python3-lxc - 7.0.0
Ebuild name:

dev-python/python3-lxc-7.0.0

Description

Python bindings for LXC

Added to portage

2026-08-27

responses - 0.26.3
Ebuild name:

dev-python/responses-0.26.3

Description

Utility for mocking out the Python Requests library

Added to portage

2026-08-27

sabnzbd - 5.1.2
Ebuild name:

net-nntp/sabnzbd-5.1.2

Description

Binary newsgrabber with web-interface

Added to portage

2026-08-27

simdjson - 4.6.9
Ebuild name:

dev-libs/simdjson-4.6.9

Description

SIMD accelerated C++ JSON library

Added to portage

2026-08-27

simplejson - 4.1.2
Ebuild name:

dev-python/simplejson-4.1.2

Description

Simple, fast, extensible JSON encoder/decoder for Python

Added to portage

2026-08-27

spotify - 1.2.96
Ebuild name:

media-sound/spotify-1.2.96

Description

Spotify is a social music platform

Added to portage

2026-08-27

spyder-kernels - 3.1.6
Ebuild name:

dev-python/spyder-kernels-3.1.6

Description

Kernels used by spyder on its ipython console

Added to portage

2026-08-27

stripe-mock - 0.203.0
Ebuild name:

dev-util/stripe-mock-0.203.0

Description

Mock HTTP server that responds like the real Stripe API

Added to portage

2026-08-27

superdiag - 1.12.0.20260810
Ebuild name:

sys-apps/superdiag-1.12.0.20260810

Description

Provides the capability to determine the health of Supermicro se

Added to portage

2026-08-27

systemd - 261.2
Ebuild name:

sys-apps/systemd-261.2

Description

System and service manager for Linux

Added to portage

2026-08-27

tor - 0.4.9.11-r1
Ebuild name:

net-vpn/tor-0.4.9.11-r1

Description

Anonymizing overlay network for TCP

Added to portage

2026-08-27

tucnak - 4.73
Ebuild name:

media-radio/tucnak-4.73

Description

Amateur Radio VHF Contest Logbook

Added to portage

2026-08-27

uim - 1.9.6-r1
Ebuild name:

app-i18n/uim-1.9.6-r1

Description

Multilingual input method framework

Added to portage

2026-08-27

vanilla-sources - 6.1.185
Ebuild name:

sys-kernel/vanilla-sources-6.1.185

Description

Full sources for the Linux kernel

Added to portage

2026-08-27

vanilla-sources - 6.12.106
Ebuild name:

sys-kernel/vanilla-sources-6.12.106

Description

Full sources for the Linux kernel

Added to portage

2026-08-27

vanilla-sources - 6.6.154
Ebuild name:

sys-kernel/vanilla-sources-6.6.154

Description

Full sources for the Linux kernel

Added to portage

2026-08-27

vanilla-sources - 7.1.11
Ebuild name:

sys-kernel/vanilla-sources-7.1.11

Description

Full sources for the Linux kernel

Added to portage

2026-08-27

vanilla-sources - 7.2.1
Ebuild name:

sys-kernel/vanilla-sources-7.2.1

Description

Full sources for the Linux kernel

Added to portage

2026-08-27

websockets - 17.1
Ebuild name:

dev-python/websockets-17.1

Description

Library for building WebSocket servers and clients in Python

Added to portage

2026-08-27

weechat - 4.10.0
Ebuild name:

net-irc/weechat-4.10.0

Description

Portable and multi-interface IRC client

Added to portage

2026-08-27

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