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:

82715

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-04
badkeys - 0.0.16
Ebuild name:

app-crypt/badkeys-0.0.16

Description

Check cryptographic keys for known weaknesses

Added to portage

2026-01-04

brotli - 1.2.0-r1
Ebuild name:

app-arch/brotli-1.2.0-r1

Description

Generic-purpose lossless compression algorithm

Added to portage

2026-01-04

clang - 22.0.0_pre20260103
Ebuild name:

dev-python/clang-22.0.0_pre20260103

Description

Python bindings for llvm-core/clang

Added to portage

2026-01-04

clang - 22.0.0_pre20260103
Ebuild name:

llvm-core/clang-22.0.0_pre20260103

Description

C language family frontend for LLVM

Added to portage

2026-01-04

clang-common - 22.0.0_pre20260103
Ebuild name:

llvm-core/clang-common-22.0.0_pre20260103

Description

Common files shared between multiple slots of clang

Added to portage

2026-01-04

compiler-rt - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/compiler-rt-22.0.0_pre20260103

Description

Compiler runtime library for clang (built-in part)

Added to portage

2026-01-04

compiler-rt-sanitizers - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/compiler-rt-sanitizers-22.0.0_pre20260103

Description

Compiler runtime libraries for clang (sanit

Added to portage

2026-01-04

fish - 4.3.2
Ebuild name:

app-shells/fish-4.3.2

Description

Friendly Interactive SHell

Added to portage

2026-01-04

flang - 22.0.0_pre20260103
Ebuild name:

llvm-core/flang-22.0.0_pre20260103

Description

LLVM's Fortran frontend

Added to portage

2026-01-04

flang-rt - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/flang-rt-22.0.0_pre20260103

Description

LLVM's Fortran runtime

Added to portage

2026-01-04

gallery-dl - 1.31.2
Ebuild name:

net-misc/gallery-dl-1.31.2

Description

Download image galleries and collections from several image hosting site

Added to portage

2026-01-04

gcc - 13.4.1_p20260101
Ebuild name:

sys-devel/gcc-13.4.1_p20260101

Description

The GNU Compiler Collection

Added to portage

2026-01-04

gcc - 14.3.1_p20260102
Ebuild name:

sys-devel/gcc-14.3.1_p20260102

Description

The GNU Compiler Collection

Added to portage

2026-01-04

gcc - 15.2.1_p20260103
Ebuild name:

sys-devel/gcc-15.2.1_p20260103

Description

The GNU Compiler Collection

Added to portage

2026-01-04

gnatdoc - 25.0.0-r6
Ebuild name:

dev-ada/gnatdoc-25.0.0-r6

Description

GNAT Documentation Generation Tool

Added to portage

2026-01-04

gnatdoc - 25.2.0
Ebuild name:

dev-ada/gnatdoc-25.2.0

Description

GNAT Documentation Generation Tool

Added to portage

2026-01-04

libclc - 22.0.0_pre20260103
Ebuild name:

llvm-core/libclc-22.0.0_pre20260103

Description

OpenCL C library

Added to portage

2026-01-04

libcxx - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/libcxx-22.0.0_pre20260103

Description

New implementation of the C++ standard library, targeting C

Added to portage

2026-01-04

libcxxabi - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/libcxxabi-22.0.0_pre20260103

Description

Low level support for a standard C++ library

Added to portage

2026-01-04

libgcc - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/libgcc-22.0.0_pre20260103

Description

Compiler runtime library for clang, compatible with libgcc_

Added to portage

2026-01-04

libunwind - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/libunwind-22.0.0_pre20260103

Description

C++ runtime stack unwinder from LLVM

Added to portage

2026-01-04

liquidshell - 1.10.1
Ebuild name:

gui-apps/liquidshell-1.10.1

Description

Basic desktop shell using QtWidgets

Added to portage

2026-01-04

lit - 22.0.0_pre20260103
Ebuild name:

dev-python/lit-22.0.0_pre20260103

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2026-01-04

lld - 22.0.0_pre20260103
Ebuild name:

llvm-core/lld-22.0.0_pre20260103

Description

The LLVM linker (link editor)

Added to portage

2026-01-04

lldb - 22.0.0_pre20260103
Ebuild name:

llvm-core/lldb-22.0.0_pre20260103

Description

The LLVM debugger

Added to portage

2026-01-04

llvm - 22.0.0_pre20260103
Ebuild name:

dev-ml/llvm-22.0.0_pre20260103

Description

OCaml bindings for LLVM

Added to portage

2026-01-04

llvm - 22.0.0_pre20260103
Ebuild name:

llvm-core/llvm-22.0.0_pre20260103

Description

Low Level Virtual Machine

Added to portage

2026-01-04

llvm-common - 22.0.0_pre20260103
Ebuild name:

llvm-core/llvm-common-22.0.0_pre20260103

Description

Common files shared between multiple slots of LLVM

Added to portage

2026-01-04

mlir - 22.0.0_pre20260103
Ebuild name:

llvm-core/mlir-22.0.0_pre20260103

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2026-01-04

nprolog - 4.79
Ebuild name:

dev-lang/nprolog-4.79

Description

Interpreter and compiler to be compatible with Arity/Prolog32

Added to portage

2026-01-04

offload - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/offload-22.0.0_pre20260103

Description

OpenMP offloading support

Added to portage

2026-01-04

openmp - 22.0.0_pre20260103
Ebuild name:

llvm-runtimes/openmp-22.0.0_pre20260103

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2026-01-04

package-lint - 0.26
Ebuild name:

app-emacs/package-lint-0.26

Description

Linting library for Emacs Lisp package metadata

Added to portage

2026-01-04

pandoc-mode - 2.35
Ebuild name:

app-emacs/pandoc-mode-2.35

Description

GNU Emacs minor mode for interacting with Pandoc

Added to portage

2026-01-04

pkgcheck - 0.10.39
Ebuild name:

dev-util/pkgcheck-0.10.39

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2026-01-04

pkgcore - 0.12.32
Ebuild name:

sys-apps/pkgcore-0.12.32

Description

a framework for package management

Added to portage

2026-01-04

polly - 22.0.0_pre20260103
Ebuild name:

llvm-core/polly-22.0.0_pre20260103

Description

Polyhedral optimizations for LLVM

Added to portage

2026-01-04

2026-01-03
awscli - 1.44.11
Ebuild name:

app-admin/awscli-1.44.11

Description

Universal Command Line Environment for AWS

Added to portage

2026-01-03

bcachefs-tools - 1.34.0
Ebuild name:

sys-fs/bcachefs-tools-1.34.0

Description

Tools for bcachefs

Added to portage

2026-01-03

boto3 - 1.42.21
Ebuild name:

dev-python/boto3-1.42.21

Description

The AWS SDK for Python

Added to portage

2026-01-03

botocore - 1.42.21
Ebuild name:

dev-python/botocore-1.42.21

Description

Low-level, data-driven core of boto 3

Added to portage

2026-01-03

cargo-nextest - 0.9.117
Ebuild name:

dev-util/cargo-nextest-0.9.117

Description

Next-generation test runner for Rust

Added to portage

2026-01-03

elementary-xfce-icon-theme - 0.22
Ebuild name:

x11-themes/elementary-xfce-icon-theme-0.22

Description

Elementary icons forked from upstream, extended and main

Added to portage

2026-01-03

filelock - 3.20.2
Ebuild name:

dev-python/filelock-3.20.2

Description

A platform independent file lock for Python

Added to portage

2026-01-03

gentoo-sources - 6.18.3
Ebuild name:

sys-kernel/gentoo-sources-6.18.3

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-01-03

geolith-jg - 0.3.0
Ebuild name:

games-emulation/geolith-jg-0.3.0

Description

Jolly Good Neo Geo AES/MVS Emulator

Added to portage

2026-01-03

git - 4.1.0
Ebuild name:

dev-ruby/git-4.1.0

Description

Library for using Git in Ruby

Added to portage

2026-01-03

glycin-loaders - 2.1_alpha
Ebuild name:

media-libs/glycin-loaders-2.1_alpha

Description

Loaders for glycin clients (glycin crate or libglycin)

Added to portage

2026-01-03

gpr - 24.0.0-r3
Ebuild name:

dev-ada/gpr-24.0.0-r3

Description

LibGPR2 - Parser for GPR Project files

Added to portage

2026-01-03

gpr - 24.2.0-r1
Ebuild name:

dev-ada/gpr-24.2.0-r1

Description

LibGPR2 - Parser for GPR Project files

Added to portage

2026-01-03

gpr - 25.0.0-r4
Ebuild name:

dev-ada/gpr-25.0.0-r4

Description

LibGPR2 - Parser for GPR Project files

Added to portage

2026-01-03

highs - 1.12.0
Ebuild name:

sci-mathematics/highs-1.12.0

Description

Modern solver for linear, quadratic, and mixed-integer programs

Added to portage

2026-01-03

hoe - 4.5.1
Ebuild name:

dev-ruby/hoe-4.5.1

Description

Hoe extends rake to provide full project automation

Added to portage

2026-01-03

mgba - 0.11.0_pre20260101
Ebuild name:

games-emulation/mgba-0.11.0_pre20260101

Description

Game Boy Advance Emulator

Added to portage

2026-01-03

mpmath - 1.4.0_beta3
Ebuild name:

dev-python/mpmath-1.4.0_beta3

Description

Python library for arbitrary-precision floating-point arithmetic

Added to portage

2026-01-03

openpgp-keys-gentoo-developers - 20251229
Ebuild name:

sec-keys/openpgp-keys-gentoo-developers-20251229

Description

Gentoo Authority Keys (GLEP 79)

Added to portage

2026-01-03

openttd - 15.0
Ebuild name:

games-simulation/openttd-15.0

Description

A clone of Transport Tycoon Deluxe

Added to portage

2026-01-03

patatt - 0.7.0
Ebuild name:

dev-python/patatt-0.7.0

Description

A simple library to add cryptographic attestation to patches sent via email

Added to portage

2026-01-03

pillow - 12.1.0
Ebuild name:

dev-python/pillow-12.1.0

Description

Python Imaging Library (fork)

Added to portage

2026-01-03

pkgcheck - 0.10.37-r1
Ebuild name:

dev-util/pkgcheck-0.10.37-r1

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2026-01-03

pkgcore - 0.12.30-r1
Ebuild name:

sys-apps/pkgcore-0.12.30-r1

Description

a framework for package management

Added to portage

2026-01-03

portage-utils - 0.99
Ebuild name:

app-portage/portage-utils-0.99

Description

Small and fast Portage helper tools written in C

Added to portage

2026-01-03

pyside - 6.10.1-r3
Ebuild name:

dev-python/pyside-6.10.1-r3

Description

Python bindings for the Qt framework

Added to portage

2026-01-03

qemu - 10.2.0-r1
Ebuild name:

app-emulation/qemu-10.2.0-r1

Description

QEMU + Kernel-based Virtual Machine userland tools

Added to portage

2026-01-03

refind - 0.14.2-r4
Ebuild name:

sys-boot/refind-0.14.2-r4

Description

The UEFI Boot Manager by Rod Smith

Added to portage

2026-01-03

rgbds - 1.0.1
Ebuild name:

dev-util/rgbds-1.0.1

Description

Rednex Game Boy Development System

Added to portage

2026-01-03

rhash - 1.4.6-r1
Ebuild name:

app-crypt/rhash-1.4.6-r1

Description

Console utility and library for computing and verifying file hash sums

Added to portage

2026-01-03

rmg - 0.8.8
Ebuild name:

games-emulation/rmg-0.8.8

Description

Rosalie's Mupen GUI

Added to portage

2026-01-03

rotix - 0.83-r3
Ebuild name:

app-crypt/rotix-0.83-r3

Description

Rotix allows you to generate rotational obfuscations

Added to portage

2026-01-03

rpm-sequoia - 1.10.0
Ebuild name:

app-crypt/rpm-sequoia-1.10.0

Description

Implementation of the RPM PGP interface using Sequoia

Added to portage

2026-01-03

rpm-sequoia - 1.9.0
Ebuild name:

app-crypt/rpm-sequoia-1.9.0

Description

Implementation of the RPM PGP interface using Sequoia

Added to portage

2026-01-03

ruamel-yaml - 0.19.1
Ebuild name:

dev-python/ruamel-yaml-0.19.1

Description

YAML parser/emitter that supports roundtrip comment preservation

Added to portage

2026-01-03

ruamel-yaml-clibz - 0.3.7
Ebuild name:

dev-python/ruamel-yaml-clibz-0.3.7

Description

C-based reader/scanner and emitter for dev-python/ruamel-yaml

Added to portage

2026-01-03

sbctl - 0.15.4
Ebuild name:

app-crypt/sbctl-0.15.4

Description

Secure Boot key manager

Added to portage

2026-01-03

sbctl - 0.16
Ebuild name:

app-crypt/sbctl-0.16

Description

Secure Boot key manager

Added to portage

2026-01-03

snakeoil - 0.11.0
Ebuild name:

dev-python/snakeoil-0.11.0

Description

misc common functionality and useful optimizations

Added to portage

2026-01-03

sphinx-autodoc-typehints - 3.6.2
Ebuild name:

dev-python/sphinx-autodoc-typehints-3.6.2

Description

Type hints support for the Sphinx autodoc extension

Added to portage

2026-01-03

sus-fixtures-console - 0.5.0
Ebuild name:

dev-ruby/sus-fixtures-console-0.5.0

Description

Test fixtures for capturing Console output

Added to portage

2026-01-03

tox - 4.33.0
Ebuild name:

dev-python/tox-4.33.0

Description

virtualenv-based automation of test activities

Added to portage

2026-01-03

vanilla-sources - 6.18.3
Ebuild name:

sys-kernel/vanilla-sources-6.18.3

Description

Full sources for the Linux kernel

Added to portage

2026-01-03

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