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:

90937

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-12-04
cloudflare-warp - 2026.9.3927.0
Ebuild name:

net-vpn/cloudflare-warp-2026.9.3927.0

Description

Cloudflare Warp Client

Added to portage

2026-12-04

containerd - 2.4.3
Ebuild name:

app-containers/containerd-2.4.3

Description

A daemon to control runC

Added to portage

2026-12-04

diffofdiffs - 1.1.0
Ebuild name:

dev-util/diffofdiffs-1.1.0

Description

Compare two patches or Git commits side by side

Added to portage

2026-12-04

kcoreaddons - 6.31.0-r1
Ebuild name:

kde-frameworks/kcoreaddons-6.31.0-r1

Description

Framework for solving common problems such as caching, randomi

Added to portage

2026-12-04

kcoreaddons - 6.32.0-r1
Ebuild name:

kde-frameworks/kcoreaddons-6.32.0-r1

Description

Framework for solving common problems such as caching, randomi

Added to portage

2026-12-04

qbittorrent - 5.3.1
Ebuild name:

net-p2p/qbittorrent-5.3.1

Description

BitTorrent client in C++ and Qt

Added to portage

2026-12-04

simdjson - 5.4.0
Ebuild name:

dev-libs/simdjson-5.4.0

Description

SIMD accelerated C++ JSON library

Added to portage

2026-12-04

slirp4netns - 1.3.8
Ebuild name:

app-containers/slirp4netns-1.3.8

Description

User-mode networking for unprivileged network namespaces

Added to portage

2026-12-04

terraform - 1.17.3
Ebuild name:

app-admin/terraform-1.17.3

Description

A tool for building, changing, and combining infrastructure safely

Added to portage

2026-12-04

ty - 1.1.0
Ebuild name:

dev-util/ty-1.1.0

Description

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

Added to portage

2026-12-04

udev-hid-bpf - 2.3.0_p20260703
Ebuild name:

sys-kernel/udev-hid-bpf-2.3.0_p20260703

Description

Automatic HID-BPF loader based on udev events for device wo

Added to portage

2026-12-04

2026-12-03
astroid - 4.4.1
Ebuild name:

dev-python/astroid-4.4.1

Description

Abstract Syntax Tree for logilab packages

Added to portage

2026-12-03

authlib - 1.9.11
Ebuild name:

dev-python/authlib-1.9.11

Description

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

Added to portage

2026-12-03

aws-c-io - 1.1.3
Ebuild name:

dev-libs/aws-c-io-1.1.3

Description

AWS C IO It handles all IO and TLS work for application protocols

Added to portage

2026-12-03

b2sdk - 2.13.6
Ebuild name:

dev-python/b2sdk-2.13.6

Description

Library to access Backblaze B2 cloud storage

Added to portage

2026-12-03

chipass - 2026.11.1
Ebuild name:

app-admin/chipass-2026.11.1

Description

A slop-free, Qt6 secure password manager

Added to portage

2026-12-03

cmd2 - 4.4.5
Ebuild name:

dev-python/cmd2-4.4.5

Description

Extra features for standard library's cmd module

Added to portage

2026-12-03

django - 5.2.20
Ebuild name:

dev-python/django-5.2.20

Description

High-level Python web framework

Added to portage

2026-12-03

django - 6.0.11
Ebuild name:

dev-python/django-6.0.11

Description

High-level Python web framework

Added to portage

2026-12-03

django - 6.1.4
Ebuild name:

dev-python/django-6.1.4

Description

High-level Python web framework

Added to portage

2026-12-03

escapevelocity - 1.1-r1
Ebuild name:

dev-java/escapevelocity-1.1-r1

Description

A reimplementation of a subset of the Apache Velocity templating sys

Added to portage

2026-12-03

faker - 40.69.0
Ebuild name:

dev-python/faker-40.69.0

Description

A Python package that generates fake data for you

Added to portage

2026-12-03

firefox - 161.0.1
Ebuild name:

www-client/firefox-161.0.1

Description

Firefox Web Browser

Added to portage

2026-12-03

firefox-l10n - 161.0.1
Ebuild name:

www-client/firefox-l10n-161.0.1

Description

Firefox Web Browser's translation files

Added to portage

2026-12-03

google-api-core - 2.45.0
Ebuild name:

dev-python/google-api-core-2.45.0

Description

Core Library for Google Client Libraries

Added to portage

2026-12-03

google-auth - 2.63.2
Ebuild name:

dev-python/google-auth-2.63.2

Description

Google Authentication Library

Added to portage

2026-12-03

graphicsmagick - 1.3.50
Ebuild name:

media-gfx/graphicsmagick-1.3.50

Description

Collection of tools and libraries for many image formats

Added to portage

2026-12-03

guava - 33.4.8
Ebuild name:

dev-java/guava-33.4.8

Description

A collection of Google's core Java libraries

Added to portage

2026-12-03

guava-testlib - 33.4.8
Ebuild name:

dev-java/guava-testlib-33.4.8

Description

A set of java classes to assist the tests for Guava itself

Added to portage

2026-12-03

hcloud - 2.28.0
Ebuild name:

dev-python/hcloud-2.28.0

Description

Official Hetzner Cloud python library

Added to portage

2026-12-03

highlight-indentation - 0.7.0_p20210221
Ebuild name:

app-emacs/highlight-indentation-0.7.0_p20210221

Description

Minor modes to highlight indentation guides in Emac

Added to portage

2026-12-03

highlight-indentation - 0.7.0_p20210221
Ebuild name:

app-emacs/highlight-indentation-0.7.0_p20210221

Description

Minor modes to highlight indentation guides in Emac

Added to portage

2026-12-03

highline - 7.2.2
Ebuild name:

app-emacs/highline-7.2.2

Description

Minor mode to highlight current line in buffer

Added to portage

2026-12-03

hypothesis - 6.170.27
Ebuild name:

dev-python/hypothesis-6.170.27

Description

A library for property based testing

Added to portage

2026-12-03

jwcrypto - 1.6.3
Ebuild name:

dev-python/jwcrypto-1.6.3

Description

Implements JWK,JWS,JWE specifications using python-cryptography

Added to portage

2026-12-03

kotlin-bin - 2.5.0
Ebuild name:

dev-lang/kotlin-bin-2.5.0

Description

Statically typed language that targets the JVM and JavaScript

Added to portage

2026-12-03

libsdl3 - 3.4.22
Ebuild name:

media-libs/libsdl3-3.4.22

Description

Simple Direct Media Layer

Added to portage

2026-12-03

libslz - 1.4.0
Ebuild name:

dev-libs/libslz-1.4.0

Description

Stateless, zlib-compatible, and very fast compression library

Added to portage

2026-12-03

mastodon - 2.1.9
Ebuild name:

app-emacs/mastodon-2.1.9

Description

Emacs client for Mastodon, federated microblogging social network

Added to portage

2026-12-03

mercurial - 7.2.6
Ebuild name:

dev-vcs/mercurial-7.2.6

Description

Scalable distributed SCM

Added to portage

2026-12-03

obs-studio - 33.0.3
Ebuild name:

media-video/obs-studio-33.0.3

Description

Software for Recording and Streaming Live Video Content

Added to portage

2026-12-03

openssh - 10.6_p2-r1
Ebuild name:

net-misc/openssh-10.6_p2-r1

Description

Port of OpenBSD's free SSH release

Added to portage

2026-12-03

picolisp - 26.9
Ebuild name:

dev-lang/picolisp-26.9

Description

Open source Lisp dialect based on LLVM

Added to portage

2026-12-03

pika - 1.5.1
Ebuild name:

dev-python/pika-1.5.1

Description

Pure-Python implementation of the AMQP

Added to portage

2026-12-03

postfix - 3.12_pre20261201
Ebuild name:

mail-mta/postfix-3.12_pre20261201

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-12-03

pyotp - 2.12.3
Ebuild name:

dev-python/pyotp-2.12.3

Description

PyOTP is a Python library for generating and verifying one-time passwords

Added to portage

2026-12-03

pypy - 2.7.8.1.1
Ebuild name:

dev-lang/pypy-2.7.8.1.1

Description

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

Added to portage

2026-12-03

pypy-exe - 8.1.1
Ebuild name:

dev-python/pypy-exe-8.1.1

Description

PyPy executable (build from source)

Added to portage

2026-12-03

pypy-exe-bin - 8.1.1
Ebuild name:

dev-python/pypy-exe-bin-8.1.1

Description

PyPy executable (pre-built version)

Added to portage

2026-12-03

pyside - 6.12.1
Ebuild name:

dev-python/pyside-6.12.1

Description

Python bindings for the Qt framework

Added to portage

2026-12-03

pyspnego - 0.13.0
Ebuild name:

dev-python/pyspnego-0.13.0

Description

Library to handle SPNEGO and CredSSP authentication

Added to portage

2026-12-03

pytest-env - 1.8.8
Ebuild name:

dev-python/pytest-env-1.8.8

Description

pytest plugin that allows you to add environment variables

Added to portage

2026-12-03

python-dateutil - 4.0.0-r1
Ebuild name:

dev-python/python-dateutil-4.0.0-r1

Description

Extensions to the standard Python datetime module

Added to portage

2026-12-03

python-discovery - 1.9.9
Ebuild name:

dev-python/python-discovery-1.9.9

Description

Python interpreter discovery

Added to portage

2026-12-03

python-engineio - 4.15.2
Ebuild name:

dev-python/python-engineio-4.15.2

Description

Python implementation of the Engine.IO realtime server

Added to portage

2026-12-03

pyzotero - 1.17.2
Ebuild name:

dev-python/pyzotero-1.17.2

Description

A Python client for the Zotero API

Added to portage

2026-12-03

qrl-wallet-bin - 1.9.2
Ebuild name:

net-misc/qrl-wallet-bin-1.9.2

Description

Quantum Resistant Ledger desktop wallet

Added to portage

2026-12-03

racket-mode - 1_p20261128
Ebuild name:

app-emacs/racket-mode-1_p20261128

Description

Emacs modes for Racket edit, REPL, check-syntax, debug, profile,

Added to portage

2026-12-03

regex - 2026.12.2
Ebuild name:

dev-python/regex-2026.12.2

Description

Alternative regular expression module to replace re

Added to portage

2026-12-03

scikit-build - 1.0.0
Ebuild name:

dev-python/scikit-build-1.0.0

Description

Improved build system generator for Python C/C++/Fortran/Cython exten

Added to portage

2026-12-03

scx-loader - 1.2.0
Ebuild name:

sys-kernel/scx-loader-1.2.0

Description

DBUS on-demand loader of sched-ext schedulers

Added to portage

2026-12-03

shellcheck-bin - 0.12.0
Ebuild name:

dev-util/shellcheck-bin-0.12.0

Description

Shell script analysis tool (binary package)

Added to portage

2026-12-03

sphinx-autodoc-typehints - 3.17.7
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.17.7

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-12-03

sqlglot - 30.37.0
Ebuild name:

dev-python/sqlglot-30.37.0

Description

An easily customizable SQL parser and transpiler

Added to portage

2026-12-03

subrandr - 1.5.0
Ebuild name:

media-libs/subrandr-1.5.0

Description

Subtitle rendering library for rendering non-ASS subtitles

Added to portage

2026-12-03

tor - 0.4.9.18
Ebuild name:

net-vpn/tor-0.4.9.18

Description

Anonymizing overlay network for TCP

Added to portage

2026-12-03

tornado - 6.6.2
Ebuild name:

dev-python/tornado-6.6.2

Description

Python web framework and asynchronous networking library

Added to portage

2026-12-03

xe-guest-utilities - 10.0.1
Ebuild name:

app-emulation/xe-guest-utilities-10.0.1

Description

XenServer / XCP-ng guest agent reporting guest metrics to t

Added to portage

2026-12-03

xen - 4.20.5
Ebuild name:

app-emulation/xen-4.20.5

Description

The Xen virtual machine monitor

Added to portage

2026-12-03

xen - 4.22.1
Ebuild name:

app-emulation/xen-4.22.1

Description

The Xen virtual machine monitor

Added to portage

2026-12-03

xen-tools - 4.20.5
Ebuild name:

app-emulation/xen-tools-4.20.5

Description

Xen tools including QEMU and xl

Added to portage

2026-12-03

xen-tools - 4.22.1
Ebuild name:

app-emulation/xen-tools-4.22.1

Description

Xen tools including QEMU and xl

Added to portage

2026-12-03

xmltodict - 1.0.5
Ebuild name:

dev-python/xmltodict-1.0.5

Description

Makes working with XML feel like you are working with JSON

Added to portage

2026-12-03

xz-utils - 5.8.5
Ebuild name:

app-arch/xz-utils-5.8.5

Description

Utils for managing LZMA compressed files

Added to portage

2026-12-03

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