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:

88061

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-01
blessed - 1.49.0
Ebuild name:

dev-python/blessed-1.49.0

Description

Library for making terminal apps using colors, keyboard input and positio

Added to portage

2026-09-01

c-blosc2 - 3.3.3
Ebuild name:

dev-libs/c-blosc2-3.3.3

Description

Blocking, shuffling and lossless compression library

Added to portage

2026-09-01

cfn-lint - 1.56.0
Ebuild name:

dev-python/cfn-lint-1.56.0

Description

CloudFormation Linter

Added to portage

2026-09-01

darktable - 5.6.1
Ebuild name:

media-gfx/darktable-5.6.1

Description

A virtual lighttable and darkroom for photographers

Added to portage

2026-09-01

fonttools - 4.64.0
Ebuild name:

dev-python/fonttools-4.64.0

Description

Library for manipulating TrueType, OpenType, AFM and Type1 fonts

Added to portage

2026-09-01

joblib - 1.6.0
Ebuild name:

dev-python/joblib-1.6.0

Description

Tools to provide lightweight pipelining in Python

Added to portage

2026-09-01

kgpg - 26.04.3-r1
Ebuild name:

kde-apps/kgpg-26.04.3-r1

Description

Frontend for GnuPG, a powerful encryption utility by KDE

Added to portage

2026-09-01

kgpg - 26.08.0-r1
Ebuild name:

kde-apps/kgpg-26.08.0-r1

Description

Frontend for GnuPG, a powerful encryption utility by KDE

Added to portage

2026-09-01

loky - 3.6.0
Ebuild name:

dev-python/loky-3.6.0

Description

Robust and reusable Executor for joblib

Added to portage

2026-09-01

tavern - 3.6.3
Ebuild name:

dev-python/tavern-3.6.3

Description

A tool, library, and Pytest plugin for testing RESTful APIs

Added to portage

2026-09-01

trimesh - 5.1.0
Ebuild name:

dev-python/trimesh-5.1.0

Description

Python library for loading and using triangular meshes

Added to portage

2026-09-01

websocket-client - 1.9.2
Ebuild name:

dev-python/websocket-client-1.9.2

Description

WebSocket client for python with hybi13 support

Added to portage

2026-09-01

2026-08-31
Sys-Virt - 12.6.0
Ebuild name:

dev-perl/Sys-Virt-12.6.0

Description

API for using the libvirt library from Perl

Added to portage

2026-08-31

apprise - 1.13.1
Ebuild name:

dev-python/apprise-1.13.1

Description

Push Notifications that work with just about every platform

Added to portage

2026-08-31

authlib - 1.8.0
Ebuild name:

dev-python/authlib-1.8.0

Description

A Python library in building OAuth and OpenID Connect servers and clients

Added to portage

2026-08-31

discount - 3.0.2.0
Ebuild name:

app-text/discount-3.0.2.0

Description

A Markdown-to HTML translator written in C

Added to portage

2026-08-31

django-tables2 - 3.0.1
Ebuild name:

dev-python/django-tables2-3.0.1

Description

Table/data-grid framework for Django

Added to portage

2026-08-31

elixir - 1.16.3-r2
Ebuild name:

dev-lang/elixir-1.16.3-r2

Description

Elixir programming language

Added to portage

2026-08-31

elixir - 1.17.3-r2
Ebuild name:

dev-lang/elixir-1.17.3-r2

Description

Elixir programming language

Added to portage

2026-08-31

elixir - 1.18.5
Ebuild name:

dev-lang/elixir-1.18.5

Description

Elixir programming language

Added to portage

2026-08-31

elixir - 1.19.6
Ebuild name:

dev-lang/elixir-1.19.6

Description

Elixir programming language

Added to portage

2026-08-31

elixir - 1.20.4
Ebuild name:

dev-lang/elixir-1.20.4

Description

Elixir programming language

Added to portage

2026-08-31

exiv2 - 0.28.9
Ebuild name:

media-gfx/exiv2-0.28.9

Description

EXIF, IPTC and XMP metadata C++ library and command line utility

Added to portage

2026-08-31

expat - 2.8.4
Ebuild name:

dev-libs/expat-2.8.4

Description

Stream-oriented XML parser library

Added to portage

2026-08-31

fastdownload - 0.0.6-r1
Ebuild name:

sci-ml/fastdownload-0.0.6-r1

Description

Easily download, verify, and extract archives

Added to portage

2026-08-31

firefox-bin - 153.2.0
Ebuild name:

www-client/firefox-bin-153.2.0

Description

Firefox Web Browser

Added to portage

2026-08-31

gcc - 17.0.0_p20260830
Ebuild name:

sys-devel/gcc-17.0.0_p20260830

Description

The GNU Compiler Collection

Added to portage

2026-08-31

git-sources - 7.3_rc1
Ebuild name:

sys-kernel/git-sources-7.3_rc1

Description

The very latest -git version of the Linux kernel

Added to portage

2026-08-31

gnupg - 2.5.22
Ebuild name:

app-crypt/gnupg-2.5.22

Description

The GNU Privacy Guard, a GPL OpenPGP implementation

Added to portage

2026-08-31

hypothesis - 6.167.1
Ebuild name:

dev-python/hypothesis-6.167.1

Description

A library for property based testing

Added to portage

2026-08-31

ibus-rime - 1.6.1
Ebuild name:

app-i18n/ibus-rime-1.6.1

Description

Chinese Rime Input Method Engine for IBus

Added to portage

2026-08-31

imlib2 - 1.12.7
Ebuild name:

media-libs/imlib2-1.12.7

Description

Version 2 of an advanced replacement library for libraries like libXpm

Added to portage

2026-08-31

imlib2_loaders - 1.12.7
Ebuild name:

media-plugins/imlib2_loaders-1.12.7

Description

Additional image loaders for Imlib2

Added to portage

2026-08-31

iosevka - 34.8.1
Ebuild name:

media-fonts/iosevka-34.8.1

Description

Slender typeface for code, from code

Added to portage

2026-08-31

libgcrypt - 1.12.3
Ebuild name:

dev-libs/libgcrypt-1.12.3

Description

General purpose crypto library based on the code used in GnuPG

Added to portage

2026-08-31

libgcrypt - 1.12.3-r1
Ebuild name:

dev-libs/libgcrypt-1.12.3-r1

Description

General purpose crypto library based on the code used in GnuPG

Added to portage

2026-08-31

libksba - 1.8.1
Ebuild name:

dev-libs/libksba-1.8.1

Description

X.509 and CMS (PKCS7) library

Added to portage

2026-08-31

libvirt - 12.6.0
Ebuild name:

app-emulation/libvirt-12.6.0

Description

C toolkit to manipulate virtual machines

Added to portage

2026-08-31

libvirt-python - 12.6.0
Ebuild name:

dev-python/libvirt-python-12.6.0

Description

libvirt Python bindings

Added to portage

2026-08-31

lsp-ui - 9.0.0
Ebuild name:

app-emacs/lsp-ui-9.0.0

Description

UI modules for lsp-mode

Added to portage

2026-08-31

lua-mode - 20210802
Ebuild name:

app-emacs/lua-mode-20210802

Description

An Emacs major mode for editing Lua scripts

Added to portage

2026-08-31

lv - 0.15.0-r1
Ebuild name:

app-emacs/lv-0.15.0-r1

Description

Other echo area

Added to portage

2026-08-31

lyskom-elisp-client - 0.48_p20200226
Ebuild name:

app-emacs/lyskom-elisp-client-0.48_p20200226

Description

Elisp client for the LysKOM conference system

Added to portage

2026-08-31

nxml-libvirt-schemas - 12.6.0
Ebuild name:

app-emacs/nxml-libvirt-schemas-12.6.0

Description

Extension for nxml-mode with libvirt schemas

Added to portage

2026-08-31

nzbget - 26.3
Ebuild name:

net-nntp/nzbget-26.3

Description

A command-line based binary newsgrabber supporting .nzb files

Added to portage

2026-08-31

ogdi - 4.1.0-r2
Ebuild name:

sci-libs/ogdi-4.1.0-r2

Description

Open Geographical Datastore Interface, a GIS support library

Added to portage

2026-08-31

openpgp-keys-libvirt - 20260831
Ebuild name:

sec-keys/openpgp-keys-libvirt-20260831

Description

OpenPGP keys used by libvirt

Added to portage

2026-08-31

pcsx2 - 2.8.1
Ebuild name:

games-emulation/pcsx2-2.8.1

Description

PlayStation 2 emulator

Added to portage

2026-08-31

pcsx2_patches - 0_p20260810
Ebuild name:

games-emulation/pcsx2_patches-0_p20260810

Description

Collection of game patches for use with PCSX2 (e.g. wides

Added to portage

2026-08-31

pyrate-limiter - 4.5.0
Ebuild name:

dev-python/pyrate-limiter-4.5.0

Description

Python Rate-Limiter using Leaky-Bucket Algorimth Family

Added to portage

2026-08-31

python-engineio - 4.14.0
Ebuild name:

dev-python/python-engineio-4.14.0

Description

Python implementation of the Engine.IO realtime server

Added to portage

2026-08-31

pyzotero - 1.15.1
Ebuild name:

dev-python/pyzotero-1.15.1

Description

A Python client for the Zotero API

Added to portage

2026-08-31

rapidfuzz - 3.14.6
Ebuild name:

dev-python/rapidfuzz-3.14.6

Description

Rapid fuzzy string matching in Python using various string metrics

Added to portage

2026-08-31

rapidfuzz-cpp - 3.3.4
Ebuild name:

dev-cpp/rapidfuzz-cpp-3.3.4

Description

Rapid fuzzy string matching in C++

Added to portage

2026-08-31

regex - 2026.8.31
Ebuild name:

dev-python/regex-2026.8.31

Description

Alternative regular expression module to replace re

Added to portage

2026-08-31

rq - 2.12.0
Ebuild name:

dev-python/rq-2.12.0

Description

Simple, lightweight library for creating and processing background jobs

Added to portage

2026-08-31

sudo-rs - 0.2.15
Ebuild name:

app-admin/sudo-rs-0.2.15

Description

A memory safe implementation of sudo and su

Added to portage

2026-08-31

sway - 1.11-r1
Ebuild name:

gui-wm/sway-1.11-r1

Description

i3-compatible Wayland window manager

Added to portage

2026-08-31

sway - 1.12-r1
Ebuild name:

gui-wm/sway-1.12-r1

Description

i3-compatible Wayland window manager

Added to portage

2026-08-31

teamviewer - 15.81.5
Ebuild name:

net-misc/teamviewer-15.81.5

Description

All-In-One Solution for Remote Access and Support over the Internet

Added to portage

2026-08-31

transformers - 5.16.1
Ebuild name:

sci-ml/transformers-5.16.1

Description

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Added to portage

2026-08-31

tuba - 0.11.1
Ebuild name:

net-misc/tuba-0.11.1

Description

Browse the Fediverse (GTK client)

Added to portage

2026-08-31

wrapt - 2.4.0
Ebuild name:

dev-python/wrapt-2.4.0

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-08-31

xsimd - 14.3.0
Ebuild name:

dev-cpp/xsimd-14.3.0

Description

C++ wrappers for SIMD intrinsics

Added to portage

2026-08-31

zeroconf - 0.151.3
Ebuild name:

dev-python/zeroconf-0.151.3

Description

Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi comp

Added to portage

2026-08-31

zoxide - 0.10.0
Ebuild name:

app-shells/zoxide-0.10.0

Description

A smarter cd command for your terminal

Added to portage

2026-08-31

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