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:

82673

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-01-01
arti - 1.8.0
Ebuild name:

net-p2p/arti-1.8.0

Description

Implementation of Tor in Rust

Added to portage

2026-01-01

fonttosfnt - 1.2.5
Ebuild name:

x11-apps/fonttosfnt-1.2.5

Description

X.Org fonttosfnt application

Added to portage

2026-01-01

gnatformat - 26.0.0
Ebuild name:

dev-ada/gnatformat-26.0.0

Description

Opinionated code formatter for the Ada language

Added to portage

2026-01-01

libva-intel-media-driver - 25.4.6
Ebuild name:

media-libs/libva-intel-media-driver-25.4.6

Description

Intel Media Driver for VA-API (iHD)

Added to portage

2026-01-01

lidarr-bin - 3.1.1.4900
Ebuild name:

www-apps/lidarr-bin-3.1.1.4900

Description

Looks and smells like Sonarr but made for music

Added to portage

2026-01-01

package-build - 4.0.0
Ebuild name:

app-emacs/package-build-4.0.0

Description

Tools for assembling a package archive

Added to portage

2026-01-01

radarr-bin - 6.1.0.10316
Ebuild name:

www-apps/radarr-bin-6.1.0.10316

Description

A fork of Sonarr to work with movies a la Couchpotato

Added to portage

2026-01-01

rgb - 1.1.1
Ebuild name:

x11-apps/rgb-1.1.1

Description

uncompile an rgb color-name database

Added to portage

2026-01-01

tlfloat - 1.17.1_p20250711
Ebuild name:

dev-cpp/tlfloat-1.17.1_p20250711

Description

C++ template library for floating point operations

Added to portage

2026-01-01

ty - 0.0.7
Ebuild name:

dev-util/ty-0.0.7

Description

An extremely fast Python type checker and language server, written in Rust

Added to portage

2026-01-01

xauth - 1.1.5
Ebuild name:

x11-apps/xauth-1.1.5

Description

X authority file utility

Added to portage

2026-01-01

2025-12-31
action_text-trix - 2.1.16
Ebuild name:

dev-ruby/action_text-trix-2.1.16

Description

A rich text editor for everyday writing

Added to portage

2025-12-31

amq-protocol - 2.4.0
Ebuild name:

dev-ruby/amq-protocol-2.4.0

Description

An AMQP 0.9.1 serialization library for Ruby

Added to portage

2025-12-31

aws-partitions - 1.1200.0
Ebuild name:

dev-ruby/aws-partitions-1.1200.0

Description

Provides interfaces to enumerate AWS partitions, regions, and serv

Added to portage

2025-12-31

awscli - 1.44.9
Ebuild name:

app-admin/awscli-1.44.9

Description

Universal Command Line Environment for AWS

Added to portage

2025-12-31

botan - 3.10.0
Ebuild name:

dev-libs/botan-3.10.0

Description

C++ crypto library

Added to portage

2025-12-31

boto3 - 1.42.19
Ebuild name:

dev-python/boto3-1.42.19

Description

The AWS SDK for Python

Added to portage

2025-12-31

botocore - 1.42.19
Ebuild name:

dev-python/botocore-1.42.19

Description

Low-level, data-driven core of boto 3

Added to portage

2025-12-31

cbor2 - 5.8.0
Ebuild name:

dev-python/cbor2-5.8.0

Description

Pure Python CBOR (de)serializer with extensive tag support

Added to portage

2025-12-31

color - 2.1.2
Ebuild name:

dev-ruby/color-2.1.2

Description

Colour management with Ruby

Added to portage

2025-12-31

dnscrypt-proxy - 2.1.15
Ebuild name:

net-dns/dnscrypt-proxy-2.1.15

Description

Flexible DNS proxy, with support for encrypted DNS protocols

Added to portage

2025-12-31

duplicity - 3.0.7
Ebuild name:

app-backup/duplicity-3.0.7

Description

Secure backup system using gnupg to encrypt data

Added to portage

2025-12-31

ebuild-mode - 1.80
Ebuild name:

app-xemacs/ebuild-mode-1.80

Description

Emacs modes for editing ebuilds and other Gentoo specific files

Added to portage

2025-12-31

ergo - 2.17.0
Ebuild name:

net-irc/ergo-2.17.0

Description

A modern IRC server written in Go

Added to portage

2025-12-31

fish - 4.3.0
Ebuild name:

app-shells/fish-4.3.0

Description

Friendly Interactive SHell

Added to portage

2025-12-31

freepg - 2.5.16
Ebuild name:

app-crypt/freepg-2.5.16

Description

Cross-distro GnuPG fork focused on OpenPGP compliance

Added to portage

2025-12-31

gentoo-sources - 6.18.2-r1
Ebuild name:

sys-kernel/gentoo-sources-6.18.2-r1

Description

Full sources including the Gentoo patchset for the . kernel tre

Added to portage

2025-12-31

gnupg - 2.5.16-r1
Ebuild name:

app-crypt/gnupg-2.5.16-r1

Description

The GNU Privacy Guard, a GPL OpenPGP implementation

Added to portage

2025-12-31

gpxsee - 15.7
Ebuild name:

sci-geosciences/gpxsee-15.7

Description

Viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea file

Added to portage

2025-12-31

grub - 2.12-r10
Ebuild name:

sys-boot/grub-2.12-r10

Description

GNU GRUB boot loader

Added to portage

2025-12-31

kryoflux-dtc - 3.50_p4
Ebuild name:

app-misc/kryoflux-dtc-3.50_p4

Description

KryoFlux Host Software

Added to portage

2025-12-31

libcamera - 0.6.0-r1
Ebuild name:

media-libs/libcamera-0.6.0-r1

Description

Complex camera support library

Added to portage

2025-12-31

libgpg-error - 1.58
Ebuild name:

dev-libs/libgpg-error-1.58

Description

Contains error handling functions used by GnuPG software

Added to portage

2025-12-31

librtas - 2.0.6
Ebuild name:

sys-libs/librtas-2.0.6

Description

A set of libraries for userspace access to RTAS on the PowerPC platform(s)

Added to portage

2025-12-31

linux-headers - 6.18
Ebuild name:

sys-kernel/linux-headers-6.18

Description

Added to portage

2025-12-31

mbuffer - 20251025
Ebuild name:

sys-block/mbuffer-20251025

Description

M(easuring)buffer is a replacement for buffer with additional functional

Added to portage

2025-12-31

memory-allocator - 0.2.0
Ebuild name:

dev-python/memory-allocator-0.2.0

Description

An extension class for memory allocation in cython

Added to portage

2025-12-31

mkmf-lite - 0.7.5
Ebuild name:

dev-ruby/mkmf-lite-0.7.5

Description

light version of the the mkmf library designed for use as a library

Added to portage

2025-12-31

nawk - 20251225
Ebuild name:

sys-apps/nawk-20251225

Description

Brian Kernighan's pattern scanning and processing language

Added to portage

2025-12-31

net-http-persistent - 4.0.8
Ebuild name:

dev-ruby/net-http-persistent-4.0.8

Description

Manages persistent connections using Net plus a speed fix for Ru

Added to portage

2025-12-31

package-lint - 0.26
Ebuild name:

app-emacs/package-lint-0.26

Description

Linting library for Emacs Lisp package metadata

Added to portage

2025-12-31

pandoc-mode - 2.35
Ebuild name:

app-emacs/pandoc-mode-2.35

Description

GNU Emacs minor mode for interacting with Pandoc

Added to portage

2025-12-31

pandoc-mode - 2.90.2
Ebuild name:

app-emacs/pandoc-mode-2.90.2

Description

GNU Emacs minor mode for interacting with Pandoc

Added to portage

2025-12-31

paredit - 26-r1
Ebuild name:

app-emacs/paredit-26-r1

Description

Minor mode for performing structured editing of S-expressions

Added to portage

2025-12-31

pg - 1.6.3
Ebuild name:

dev-ruby/pg-1.6.3

Description

Ruby extension library providing an API to PostgreSQL

Added to portage

2025-12-31

picard - 3.0_pre20251230
Ebuild name:

media-sound/picard-3.0_pre20251230

Description

Cross-platform music tagger

Added to portage

2025-12-31

pipewire - 1.4.9-r2
Ebuild name:

media-video/pipewire-1.4.9-r2

Description

Multimedia processing graphs

Added to portage

2025-12-31

piwigo - 16.2.0
Ebuild name:

www-apps/piwigo-16.2.0

Description

a photo gallery software for the web

Added to portage

2025-12-31

process_executer - 4.0.1
Ebuild name:

dev-ruby/process_executer-4.0.1

Description

An API for executing commands in a subprocess

Added to portage

2025-12-31

pytest-reserial - 0.6.1
Ebuild name:

dev-python/pytest-reserial-0.6.1

Description

Pytest plugin for recording and replaying serial port traffic duri

Added to portage

2025-12-31

pythia - 8.3.16-r1
Ebuild name:

sci-physics/pythia-8.3.16-r1

Description

Lund Monte Carlo high-energy physics event generator

Added to portage

2025-12-31

python-gnupg - 0.5.5-r2
Ebuild name:

dev-python/python-gnupg-0.5.5-r2

Description

A Python wrapper for GnuPG

Added to portage

2025-12-31

qemu - 10.2.0
Ebuild name:

app-emulation/qemu-10.2.0

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2025-12-31

reaper-bin - 7.57
Ebuild name:

media-sound/reaper-bin-7.57

Description

Digital audio workstation

Added to portage

2025-12-31

rivet - 3.1.11-r1
Ebuild name:

sci-physics/rivet-3.1.11-r1

Description

Robust Independent Validation of Experiment and Theory toolkit

Added to portage

2025-12-31

ruby - 4.0.0
Ebuild name:

dev-lang/ruby-4.0.0

Description

An object-oriented scripting language

Added to portage

2025-12-31

ruby-ssl - 16
Ebuild name:

virtual/ruby-ssl-16

Description

Virtual ebuild for the Ruby OpenSSL bindings

Added to portage

2025-12-31

rubygems - 22
Ebuild name:

virtual/rubygems-22

Description

Virtual ebuild for rubygems

Added to portage

2025-12-31

sbcl - 2.6.0
Ebuild name:

dev-lisp/sbcl-2.6.0

Description

Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp

Added to portage

2025-12-31

scipy - 1.17.0_rc2
Ebuild name:

dev-python/scipy-1.17.0_rc2

Description

Scientific algorithms library for Python

Added to portage

2025-12-31

simple-rss - 2.1.0
Ebuild name:

dev-ruby/simple-rss-2.1.0

Description

A simple, flexible, extensible, and liberal RSS and Atom reader for Ruby

Added to portage

2025-12-31

sleef - 3.9.0
Ebuild name:

dev-libs/sleef-3.9.0

Description

Implements vectorized versions of C standard math functions

Added to portage

2025-12-31

starship - 1.24.2
Ebuild name:

app-shells/starship-1.24.2

Description

The minimal, blazing-fast, and infinitely customizable prompt for any sh

Added to portage

2025-12-31

steve - 1.4.0
Ebuild name:

dev-build/steve-1.4.0

Description

A load-balancing jobserver for Gentoo

Added to portage

2025-12-31

supertux - 0.7.0_beta1
Ebuild name:

games-arcade/supertux-0.7.0_beta1

Description

A run n' jump platforming game featuring Tux the penguin

Added to portage

2025-12-31

supertux - 9999
Ebuild name:

games-arcade/supertux-9999

Description

A run n' jump platforming game featuring Tux the penguin

Added to portage

2025-12-31

tesseract - 5.5.2
Ebuild name:

app-text/tesseract-5.5.2

Description

An OCR Engine, originally developed at HP, now open source

Added to portage

2025-12-31

thepeg - 2.3.0-r4
Ebuild name:

sci-physics/thepeg-2.3.0-r4

Description

Toolkit for High Energy Physics Event Generation

Added to portage

2025-12-31

types-psutil - 7.2.1.20251231
Ebuild name:

dev-python/types-psutil-7.2.1.20251231

Description

Typing stubs for psutil

Added to portage

2025-12-31

uchmviewer - 8.5
Ebuild name:

app-text/uchmviewer-8.5

Description

Feature rich chm file viewer, based on Qt

Added to portage

2025-12-31

uv - 0.9.21
Ebuild name:

dev-python/uv-0.9.21

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-12-31

uv-build - 0.9.21
Ebuild name:

dev-python/uv-build-0.9.21

Description

PEP517 uv build backend

Added to portage

2025-12-31

wine-mono - 10.4.1
Ebuild name:

app-emulation/wine-mono-10.4.1

Description

Replacement for the .NET runtime and class libraries in Wine

Added to portage

2025-12-31

xfsprogs - 6.18.0
Ebuild name:

sys-fs/xfsprogs-6.18.0

Description

XFS filesystem utilities

Added to portage

2025-12-31

zoom - 6.7.2.6498
Ebuild name:

net-im/zoom-6.7.2.6498

Description

Video conferencing and web conferencing service

Added to portage

2025-12-31

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