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:

84432

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-04-16
algol68g - 3.11.1
Ebuild name:

dev-lang/algol68g-3.11.1

Description

Algol 68 Genie compiler-interpreter

Added to portage

2026-04-16

ansible-molecule - 26.3.0
Ebuild name:

app-admin/ansible-molecule-26.3.0

Description

A toolkit designed to aid in the development and testing of Ansib

Added to portage

2026-04-16

cadical - 3.0.0
Ebuild name:

sci-mathematics/cadical-3.0.0

Description

Simplified Satisfiability Solver

Added to portage

2026-04-16

closure-compiler-bin - 20260412
Ebuild name:

dev-lang/closure-compiler-bin-20260412

Description

JavaScript optimizing compiler

Added to portage

2026-04-16

coreutils - 9.10_p20260415
Ebuild name:

sys-apps/coreutils-9.10_p20260415

Description

Standard GNU utilities (chmod, cp, dd, ls, sort, tr, head, wc, wh

Added to portage

2026-04-16

csharp-language-server - 0.23.0
Ebuild name:

dev-dotnet/csharp-language-server-0.23.0

Description

Roslyn-based LSP language server for C

Added to portage

2026-04-16

devcontainer - 0.86.0
Ebuild name:

app-containers/devcontainer-0.86.0

Description

Reference implementation of the Development Containers specifica

Added to portage

2026-04-16

evolution - 3.60.1
Ebuild name:

mail-client/evolution-3.60.1

Description

Integrated mail, addressbook and calendaring functionality

Added to portage

2026-04-16

evolution-data-server - 3.60.1
Ebuild name:

gnome-extra/evolution-data-server-3.60.1

Description

Evolution groupware backend

Added to portage

2026-04-16

evolution-ews - 3.60.1
Ebuild name:

gnome-extra/evolution-ews-3.60.1

Description

Evolution module for connecting to Microsoft Exchange Web Services

Added to portage

2026-04-16

folks - 0.15.12
Ebuild name:

dev-libs/folks-0.15.12

Description

Library for aggregating people from multiple sources

Added to portage

2026-04-16

folks - 0.15.9-r3
Ebuild name:

dev-libs/folks-0.15.9-r3

Description

Library for aggregating people from multiple sources

Added to portage

2026-04-16

folks - 0.15.9-r4
Ebuild name:

dev-libs/folks-0.15.9-r4

Description

Library for aggregating people from multiple sources

Added to portage

2026-04-16

iverilog - 12.0-r1
Ebuild name:

sci-electronics/iverilog-12.0-r1

Description

A Verilog simulation and synthesis tool

Added to portage

2026-04-16

iverilog - 13.0
Ebuild name:

sci-electronics/iverilog-13.0

Description

A Verilog simulation and synthesis tool

Added to portage

2026-04-16

joplin-desktop - 3.6.8
Ebuild name:

app-office/joplin-desktop-3.6.8

Description

Secure note taking and to-do app with synchronization capabilities

Added to portage

2026-04-16

kissat - 4.0.4
Ebuild name:

sci-mathematics/kissat-4.0.4

Description

Keep-it-simple and clean bare metal SAT solver written in C

Added to portage

2026-04-16

libgcrypt - 1.12.2
Ebuild name:

dev-libs/libgcrypt-1.12.2

Description

General purpose crypto library based on the code used in GnuPG

Added to portage

2026-04-16

nvc - 1.20.0
Ebuild name:

sci-electronics/nvc-1.20.0

Description

NVC is a VHDL compiler and simulator

Added to portage

2026-04-16

polychromatic - 0.9.7
Ebuild name:

sys-apps/polychromatic-0.9.7

Description

RGB lighting management software for GNU/Linux powered by OpenRazer

Added to portage

2026-04-16

valgrind - 3.27.0_rc1
Ebuild name:

dev-debug/valgrind-3.27.0_rc1

Description

An open-source memory debugger for GNU/Linux

Added to portage

2026-04-16

vampire - 5.0.1
Ebuild name:

sci-mathematics/vampire-5.0.1

Description

The Vampire Prover, theorem prover for first-order logic

Added to portage

2026-04-16

2026-04-15
atuin - 18.14.1
Ebuild name:

app-shells/atuin-18.14.1

Description

Shell history manager supporting encrypted synchronisation

Added to portage

2026-04-15

b4 - 0.15.2
Ebuild name:

net-mail/b4-0.15.2

Description

Utility for fetching patchsets from public-inbox

Added to portage

2026-04-15

bpftop - 0.8.0
Ebuild name:

dev-util/bpftop-0.8.0

Description

Dynamic real-time view of running eBPF programs

Added to portage

2026-04-15

brltty - 6.9.1
Ebuild name:

app-accessibility/brltty-6.9.1

Description

Daemon that provides access to the Linux/Unix console for a blind pe

Added to portage

2026-04-15

cargo-nextest - 0.9.133
Ebuild name:

dev-util/cargo-nextest-0.9.133

Description

Next-generation test runner for Rust

Added to portage

2026-04-15

cinnamon-settings-daemon - 6.6.3-r1
Ebuild name:

gnome-extra/cinnamon-settings-daemon-6.6.3-r1

Description

Cinnamon's settings daemon

Added to portage

2026-04-15

editables - 0.6
Ebuild name:

dev-python/editables-0.6

Description

A Python library for creating 'editable wheels'

Added to portage

2026-04-15

epiphany - 49.7
Ebuild name:

www-client/epiphany-49.7

Description

GNOME webbrowser based on Webkit

Added to portage

2026-04-15

filelock - 3.28.0
Ebuild name:

dev-python/filelock-3.28.0

Description

A platform independent file lock for Python

Added to portage

2026-04-15

hypothesis - 6.152.1
Ebuild name:

dev-python/hypothesis-6.152.1

Description

A library for property based testing

Added to portage

2026-04-15

leancrypto - 1.7.2-r3
Ebuild name:

dev-libs/leancrypto-1.7.2-r3

Description

Lean cryptographic library usable for bare-metal environments

Added to portage

2026-04-15

libbluray - 1.4.1
Ebuild name:

media-libs/libbluray-1.4.1

Description

Blu-ray playback libraries

Added to portage

2026-04-15

libexif - 0.6.26
Ebuild name:

media-libs/libexif-0.6.26

Description

Library for parsing, editing, and saving EXIF data

Added to portage

2026-04-15

liblouis - 3.37.0
Ebuild name:

dev-libs/liblouis-3.37.0

Description

An open-source braille translator and back-translator

Added to portage

2026-04-15

libraw - 0.22.1-r1
Ebuild name:

media-libs/libraw-0.22.1-r1

Description

LibRaw is a library for reading RAW files obtained from digital photo c

Added to portage

2026-04-15

makeheaders - 0_p20251008
Ebuild name:

dev-util/makeheaders-0_p20251008

Description

Tool that automatically generates .h files for a C or C++ programm

Added to portage

2026-04-15

mako - 1.3.11
Ebuild name:

dev-python/mako-1.3.11

Description

A Python templating language

Added to portage

2026-04-15

mediafile - 0.16.1
Ebuild name:

dev-python/mediafile-0.16.1

Description

Read and write audio files' tags in Python

Added to portage

2026-04-15

mesa - 26.0.5
Ebuild name:

media-libs/mesa-26.0.5

Description

OpenGL-like graphic library for Linux

Added to portage

2026-04-15

mesa_clc - 26.0.5
Ebuild name:

dev-util/mesa_clc-26.0.5

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2026-04-15

microsoft-identity-broker - 3.0.1
Ebuild name:

sys-auth/microsoft-identity-broker-3.0.1

Description

Microsoft Authentication Broker to access a corporate envi

Added to portage

2026-04-15

openjpeg - 2.5.4-r1
Ebuild name:

media-libs/openjpeg-2.5.4-r1

Description

Open-source JPEG 2000 library

Added to portage

2026-04-15

openpgp-keys-keepass - 20260415
Ebuild name:

sec-keys/openpgp-keys-keepass-20260415

Description

OpenPGP key used by KeePass

Added to portage

2026-04-15

openpgp-keys-marcusmeissner - 20260415
Ebuild name:

sec-keys/openpgp-keys-marcusmeissner-20260415

Description

OpenPGP key used by Marcus Meissner

Added to portage

2026-04-15

openpgp-keys-openssl - 20260415
Ebuild name:

sec-keys/openpgp-keys-openssl-20260415

Description

OpenPGP keys used by OpenSSL

Added to portage

2026-04-15

openssl - 4.0.0
Ebuild name:

dev-libs/openssl-4.0.0

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2026-04-15

osc-lib - 4.5.0
Ebuild name:

dev-python/osc-lib-4.5.0

Description

A package of common support modules for writing OSC plugins

Added to portage

2026-04-15

packaging - 26.1
Ebuild name:

dev-python/packaging-26.1

Description

Core utilities for Python packages

Added to portage

2026-04-15

passlib - 1.9.3
Ebuild name:

dev-python/passlib-1.9.3

Description

Fork of passlib, a password hashing framework

Added to portage

2026-04-15

perf - 6.19.12
Ebuild name:

dev-util/perf-6.19.12

Description

Userland tools for Linux Performance Counters

Added to portage

2026-04-15

perf - 7.0
Ebuild name:

dev-util/perf-7.0

Description

Userland tools for Linux Performance Counters

Added to portage

2026-04-15

prek - 0.3.9
Ebuild name:

dev-util/prek-0.3.9

Description

Better `pre-commit`, re-engineered in Rust

Added to portage

2026-04-15

pygithub - 2.9.1
Ebuild name:

dev-python/pygithub-2.9.1

Description

Python library to access the Github API v3

Added to portage

2026-04-15

pypdf - 6.10.1
Ebuild name:

dev-python/pypdf-6.10.1

Description

Python library to work with PDF files

Added to portage

2026-04-15

pytest-mpl - 0.19.0
Ebuild name:

dev-python/pytest-mpl-0.19.0

Description

Facilitate image comparison for Matplotlib figures

Added to portage

2026-04-15

qtshadertools - 6.11.0-r1
Ebuild name:

dev-qt/qtshadertools-6.11.0-r1

Description

Qt APIs and Tools for Graphics Pipelines

Added to portage

2026-04-15

rust - 1.94.1
Ebuild name:

dev-lang/rust-1.94.1

Description

Systems programming language originally developed by Mozilla

Added to portage

2026-04-15

rust - 1.95.0_beta20260404
Ebuild name:

dev-lang/rust-1.95.0_beta20260404

Description

Systems programming language originally developed by Mozilla

Added to portage

2026-04-15

rust-bin - 1.94.1
Ebuild name:

dev-lang/rust-bin-1.94.1

Description

Added to portage

2026-04-15

rust-bin - 1.95.0_beta20260404
Ebuild name:

dev-lang/rust-bin-1.95.0_beta20260404

Description

Added to portage

2026-04-15

rust-common - 1.94.1
Ebuild name:

dev-lang/rust-common-1.94.1

Description

Common files shared between multiple slots of Rust

Added to portage

2026-04-15

rust-common - 1.95.0_beta20260404
Ebuild name:

dev-lang/rust-common-1.95.0_beta20260404

Description

Common files shared between multiple slots of Rust

Added to portage

2026-04-15

rust-std - 1.94.1
Ebuild name:

sys-devel/rust-std-1.94.1

Description

Rust standard library, standalone (for crossdev)

Added to portage

2026-04-15

rust-std - 1.95.0_beta20260404
Ebuild name:

sys-devel/rust-std-1.95.0_beta20260404

Description

Rust standard library, standalone (for crossdev)

Added to portage

2026-04-15

scamp - 2.15.0
Ebuild name:

sci-astronomy/scamp-2.15.0

Description

Astrometric and photometric solutions for astronomical images

Added to portage

2026-04-15

seer - 2.7
Ebuild name:

dev-util/seer-2.7

Description

GUI frontend to gdb

Added to portage

2026-04-15

sonic - 0.2.0_p20260314
Ebuild name:

media-libs/sonic-0.2.0_p20260314

Description

Simple library to speed up or slow down speech

Added to portage

2026-04-15

tox - 4.53.0
Ebuild name:

dev-python/tox-4.53.0

Description

virtualenv-based automation of test activities

Added to portage

2026-04-15

translate-toolkit - 3.19.5
Ebuild name:

dev-python/translate-toolkit-3.19.5

Description

Toolkit to convert between many translation formats

Added to portage

2026-04-15

umockdev - 0.19.7
Ebuild name:

dev-util/umockdev-0.19.7

Description

Mock hardware devices for creating unit tests

Added to portage

2026-04-15

virtualenv - 21.2.4
Ebuild name:

dev-python/virtualenv-21.2.4

Description

Virtual Python Environment builder

Added to portage

2026-04-15

wrapt - 2.2.0_rc6
Ebuild name:

dev-python/wrapt-2.2.0_rc6

Description

Module for decorators, wrappers and monkey patching

Added to portage

2026-04-15

wtfis - 0.15.0
Ebuild name:

net-analyzer/wtfis-0.15.0

Description

Passive hostname, domain and IP lookup tool for non-robots

Added to portage

2026-04-15

xorg-server - 21.1.22
Ebuild name:

x11-base/xorg-server-21.1.22

Description

X.Org X servers

Added to portage

2026-04-15

xterm - 409
Ebuild name:

x11-terms/xterm-409

Description

Terminal Emulator for X Windows

Added to portage

2026-04-15

xwayland - 24.1.10
Ebuild name:

x11-base/xwayland-24.1.10

Description

Standalone X server running under Wayland

Added to portage

2026-04-15

yara-x - 1.15.0
Ebuild name:

app-forensics/yara-x-1.15.0

Description

A malware identification and classification tool

Added to portage

2026-04-15

zig-bin - 0.16.0
Ebuild name:

dev-lang/zig-bin-0.16.0

Description

A robust, optimal, and maintainable programming language

Added to portage

2026-04-15

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