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:

82578

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
2025-12-24
adsf - 1.5.3
Ebuild name:

www-servers/adsf-1.5.3

Description

A Dead Simple Fileserver is a static file server that can launch in a direct

Added to portage

2025-12-24

clang - 22.0.0_pre20251223
Ebuild name:

dev-python/clang-22.0.0_pre20251223

Description

Python bindings for llvm-core/clang

Added to portage

2025-12-24

clang - 22.0.0_pre20251223
Ebuild name:

llvm-core/clang-22.0.0_pre20251223

Description

C language family frontend for LLVM

Added to portage

2025-12-24

clang-common - 22.0.0_pre20251223
Ebuild name:

llvm-core/clang-common-22.0.0_pre20251223

Description

Common files shared between multiple slots of clang

Added to portage

2025-12-24

compiler-rt - 22.0.0_pre20251223
Ebuild name:

llvm-runtimes/compiler-rt-22.0.0_pre20251223

Description

Compiler runtime library for clang (built-in part)

Added to portage

2025-12-24

compiler-rt-sanitizers - 22.0.0_pre20251223
Ebuild name:

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

Description

Compiler runtime libraries for clang (sanit

Added to portage

2025-12-24

flang - 22.0.0_pre20251223
Ebuild name:

llvm-core/flang-22.0.0_pre20251223

Description

LLVM's Fortran frontend

Added to portage

2025-12-24

flang-rt - 22.0.0_pre20251223
Ebuild name:

llvm-runtimes/flang-rt-22.0.0_pre20251223

Description

LLVM's Fortran runtime

Added to portage

2025-12-24

libclc - 22.0.0_pre20251223
Ebuild name:

llvm-core/libclc-22.0.0_pre20251223

Description

OpenCL C library

Added to portage

2025-12-24

libcxx - 22.0.0_pre20251223
Ebuild name:

llvm-runtimes/libcxx-22.0.0_pre20251223

Description

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

Added to portage

2025-12-24

libcxxabi - 22.0.0_pre20251223
Ebuild name:

llvm-runtimes/libcxxabi-22.0.0_pre20251223

Description

Low level support for a standard C++ library

Added to portage

2025-12-24

libgcc - 22.0.0_pre20251223
Ebuild name:

llvm-runtimes/libgcc-22.0.0_pre20251223

Description

Compiler runtime library for clang, compatible with libgcc_

Added to portage

2025-12-24

libunwind - 22.0.0_pre20251223
Ebuild name:

llvm-runtimes/libunwind-22.0.0_pre20251223

Description

C++ runtime stack unwinder from LLVM

Added to portage

2025-12-24

lit - 22.0.0_pre20251223
Ebuild name:

dev-python/lit-22.0.0_pre20251223

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2025-12-24

lld - 22.0.0_pre20251223
Ebuild name:

llvm-core/lld-22.0.0_pre20251223

Description

The LLVM linker (link editor)

Added to portage

2025-12-24

lldb - 22.0.0_pre20251223
Ebuild name:

llvm-core/lldb-22.0.0_pre20251223

Description

The LLVM debugger

Added to portage

2025-12-24

llvm - 22.0.0_pre20251223
Ebuild name:

dev-ml/llvm-22.0.0_pre20251223

Description

OCaml bindings for LLVM

Added to portage

2025-12-24

llvm - 22.0.0_pre20251223
Ebuild name:

llvm-core/llvm-22.0.0_pre20251223

Description

Low Level Virtual Machine

Added to portage

2025-12-24

llvm-common - 22.0.0_pre20251223
Ebuild name:

llvm-core/llvm-common-22.0.0_pre20251223

Description

Common files shared between multiple slots of LLVM

Added to portage

2025-12-24

mkmf-lite - 0.7.4
Ebuild name:

dev-ruby/mkmf-lite-0.7.4

Description

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

Added to portage

2025-12-24

mlir - 22.0.0_pre20251223
Ebuild name:

llvm-core/mlir-22.0.0_pre20251223

Description

Multi-Level Intermediate Representation (library only)

Added to portage

2025-12-24

offload - 22.0.0_pre20251223
Ebuild name:

llvm-runtimes/offload-22.0.0_pre20251223

Description

OpenMP offloading support

Added to portage

2025-12-24

openmp - 22.0.0_pre20251223
Ebuild name:

llvm-runtimes/openmp-22.0.0_pre20251223

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2025-12-24

pkgcraft-tools - 0.0.31-r2
Ebuild name:

sys-apps/pkgcraft-tools-0.0.31-r2

Description

pkgcraft-based tools for Gentoo

Added to portage

2025-12-24

pkgcruft-git - 0.0.5-r2
Ebuild name:

dev-vcs/pkgcruft-git-0.0.5-r2

Description

QA support for verifying git commits via pkgcruft

Added to portage

2025-12-24

polly - 22.0.0_pre20251223
Ebuild name:

llvm-core/polly-22.0.0_pre20251223

Description

Polyhedral optimizations for LLVM

Added to portage

2025-12-24

socat - 1.8.1.0
Ebuild name:

net-misc/socat-1.8.1.0

Description

Multipurpose relay (SOcket CAT)

Added to portage

2025-12-24

spirv-llvm-translator - 22.0.0_pre20251123
Ebuild name:

dev-util/spirv-llvm-translator-22.0.0_pre20251123

Description

Bi-directional translator between SPIR-V and LLVM

Added to portage

2025-12-24

tcpreplay - 4.5.2
Ebuild name:

net-analyzer/tcpreplay-4.5.2

Description

Utilities for editing and replaying previously captured network traffi

Added to portage

2025-12-24

test-unit - 3.7.4
Ebuild name:

dev-ruby/test-unit-3.7.4

Description

An xUnit family unit testing framework for Ruby

Added to portage

2025-12-24

vcr - 6.4.0
Ebuild name:

dev-ruby/vcr-6.4.0

Description

Records your test suite's HTTP interactions and replay them during test runs

Added to portage

2025-12-24

vss-extra - 26.0.0
Ebuild name:

dev-ada/vss-extra-26.0.0

Description

A high level string and text processing library

Added to portage

2025-12-24

vss-text - 26.0.0
Ebuild name:

dev-ada/vss-text-26.0.0

Description

A high level string and text processing library

Added to portage

2025-12-24

wireplumber - 0.5.13
Ebuild name:

media-video/wireplumber-0.5.13

Description

Replacement for pipewire-media-session

Added to portage

2025-12-24

2025-12-23
alsa-lib - 1.2.15.1-r1
Ebuild name:

media-libs/alsa-lib-1.2.15.1-r1

Description

Advanced Linux Sound Architecture Library

Added to portage

2025-12-23

aotriton-bin - 0.11.1b
Ebuild name:

sci-libs/aotriton-bin-0.11.1b

Description

Ahead of Time (AOT) Triton Math Library (binary package)

Added to portage

2025-12-23

awscli - 1.44.5
Ebuild name:

app-admin/awscli-1.44.5

Description

Universal Command Line Environment for AWS

Added to portage

2025-12-23

bedrock-server - 1.21.131.1
Ebuild name:

games-server/bedrock-server-1.21.131.1

Description

The official bedrock (non-java) based server for the sandbox

Added to portage

2025-12-23

boto3 - 1.42.15
Ebuild name:

dev-python/boto3-1.42.15

Description

The AWS SDK for Python

Added to portage

2025-12-23

botocore - 1.42.15
Ebuild name:

dev-python/botocore-1.42.15

Description

Low-level, data-driven core of boto 3

Added to portage

2025-12-23

breezy - 3.3.20
Ebuild name:

dev-vcs/breezy-3.3.20

Description

Distributed Version Control System with a Friendly UI

Added to portage

2025-12-23

django-polymorphic - 4.5.0
Ebuild name:

dev-python/django-polymorphic-4.5.0

Description

Seamless Polymorphic Inheritance for Django Models

Added to portage

2025-12-23

fuse - 3.18.1
Ebuild name:

sys-fs/fuse-3.18.1

Description

An interface for filesystems implemented in userspace

Added to portage

2025-12-23

gherkin-official - 37.0.1
Ebuild name:

dev-python/gherkin-official-37.0.1

Description

Gherkin parser/compiler for Python

Added to portage

2025-12-23

hoe - 4.4.0
Ebuild name:

dev-ruby/hoe-4.4.0

Description

Hoe extends rake to provide full project automation

Added to portage

2025-12-23

http_parser_rb - 0.8.1
Ebuild name:

dev-ruby/http_parser_rb-0.8.1

Description

Simple callback-based HTTP request/response parser

Added to portage

2025-12-23

hypothesis - 6.148.8
Ebuild name:

dev-python/hypothesis-6.148.8

Description

A library for property based testing

Added to portage

2025-12-23

jaq - 3.0.0_beta
Ebuild name:

app-misc/jaq-3.0.0_beta

Description

Just another JSON query tool

Added to portage

2025-12-23

level-zero - 1.26.3
Ebuild name:

dev-libs/level-zero-1.26.3

Description

oneAPI Level Zero headers, loader and validation layer

Added to portage

2025-12-23

llfuse - 1.5.2
Ebuild name:

dev-python/llfuse-1.5.2

Description

Python bindings for the low-level FUSE API

Added to portage

2025-12-23

lxqt-panel - 2.3.2
Ebuild name:

lxqt-base/lxqt-panel-2.3.2

Description

LXQt desktop panel and plugins

Added to portage

2025-12-23

marshmallow - 3.26.2
Ebuild name:

dev-python/marshmallow-3.26.2

Description

A library for converting to and from native Python datatypes

Added to portage

2025-12-23

marshmallow - 4.1.2
Ebuild name:

dev-python/marshmallow-4.1.2

Description

A library for converting to and from native Python datatypes

Added to portage

2025-12-23

mcelog - 208
Ebuild name:

app-admin/mcelog-208

Description

A tool to log and decode Machine Check Exceptions

Added to portage

2025-12-23

net-snmp - 5.9.5
Ebuild name:

net-analyzer/net-snmp-5.9.5

Description

Software for generating and retrieving SNMP data

Added to portage

2025-12-23

nghttp3 - 1.14.0
Ebuild name:

net-libs/nghttp3-1.14.0

Description

HTTP/3 library written in C

Added to portage

2025-12-23

ngtcp2 - 1.19.0
Ebuild name:

net-libs/ngtcp2-1.19.0

Description

Implementation of the IETF QUIC Protocol

Added to portage

2025-12-23

open-vmdk - 0.3.12
Ebuild name:

app-emulation/open-vmdk-0.3.12

Description

Tools for creating and converting OVA virtual appliance files

Added to portage

2025-12-23

openapi-core - 0.22.0
Ebuild name:

dev-python/openapi-core-0.22.0

Description

Client-side and server-side support for the OpenAPI Specification v3

Added to portage

2025-12-23

opencl-clang - 15.0.5
Ebuild name:

dev-libs/opencl-clang-15.0.5

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2025-12-23

opencl-clang - 16.0.6
Ebuild name:

dev-libs/opencl-clang-16.0.6

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2025-12-23

opencl-clang - 17.0.2
Ebuild name:

dev-libs/opencl-clang-17.0.2

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2025-12-23

opencl-clang - 18.1.2
Ebuild name:

dev-libs/opencl-clang-18.1.2

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2025-12-23

opencl-clang - 19.1.1
Ebuild name:

dev-libs/opencl-clang-19.1.1

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2025-12-23

opencl-clang - 20.1.1
Ebuild name:

dev-libs/opencl-clang-20.1.1

Description

OpenCL-oriented thin wrapper library around clang

Added to portage

2025-12-23

pixi - 0.62.2
Ebuild name:

dev-util/pixi-0.62.2

Description

A package management and workflow tool

Added to portage

2025-12-23

pkgcraft-tools - 0.0.31-r1
Ebuild name:

sys-apps/pkgcraft-tools-0.0.31-r1

Description

pkgcraft-based tools for Gentoo

Added to portage

2025-12-23

pkgcruft - 0.0.18-r1
Ebuild name:

dev-util/pkgcruft-0.0.18-r1

Description

QA library and tools based on pkgcraft

Added to portage

2025-12-23

poetry - 2.2.1-r1
Ebuild name:

dev-python/poetry-2.2.1-r1

Description

A frontend for poetry - a python dependency management and packaging too

Added to portage

2025-12-23

pyfuse3 - 3.4.1
Ebuild name:

dev-python/pyfuse3-3.4.1

Description

Python 3 bindings for libfuse 3 with asynchronous API

Added to portage

2025-12-23

pyparsing - 3.3.1
Ebuild name:

dev-python/pyparsing-3.3.1

Description

Easy-to-use Python module for text parsing

Added to portage

2025-12-23

sabctools - 9.2.0
Ebuild name:

dev-python/sabctools-9.2.0

Description

Module providing raw yEnc encoding/decoding for SABnzbd

Added to portage

2025-12-23

scallop - 5.3.9.20251212
Ebuild name:

sys-libs/scallop-5.3.9.20251212

Description

Fork of bash enabling integration into pkgcraft

Added to portage

2025-12-23

scallop - 9999
Ebuild name:

sys-libs/scallop-9999

Description

Fork of bash enabling integration into pkgcraft

Added to portage

2025-12-23

scrypt - 1.3.3
Ebuild name:

app-crypt/scrypt-1.3.3

Description

A simple password-based encryption utility using scrypt key derivation funct

Added to portage

2025-12-23

scute - 1.7.0-r2
Ebuild name:

app-crypt/scute-1.7.0-r2

Description

A PKCS 11 module for OpenPGP smartcards

Added to portage

2025-12-23

seahorse - 47.0.1-r1
Ebuild name:

app-crypt/seahorse-47.0.1-r1

Description

Manage your passwords and encryption keys

Added to portage

2025-12-23

seahorse - 47.0.1-r2
Ebuild name:

app-crypt/seahorse-47.0.1-r2

Description

Manage your passwords and encryption keys

Added to portage

2025-12-23

selinux-python - 3.8.1-r2
Ebuild name:

sys-apps/selinux-python-3.8.1-r2

Description

SELinux core utilities

Added to portage

2025-12-23

sequoia-chameleon-gnupg - 0.13.1-r1
Ebuild name:

app-crypt/sequoia-chameleon-gnupg-0.13.1-r1

Description

Sequoia's reimplementation of the GnuPG interface

Added to portage

2025-12-23

sequoia-chameleon-gnupg - 0.13.1-r3
Ebuild name:

app-crypt/sequoia-chameleon-gnupg-0.13.1-r3

Description

Sequoia's reimplementation of the GnuPG interface

Added to portage

2025-12-23

sequoia-sop - 0.37.2
Ebuild name:

app-crypt/sequoia-sop-0.37.2

Description

Implementation of the Stateless OpenPGP Command Line Interface using S

Added to portage

2025-12-23

sequoia-sq - 1.3.1-r1
Ebuild name:

app-crypt/sequoia-sq-1.3.1-r1

Description

CLI of the Sequoia OpenPGP implementation

Added to portage

2025-12-23

turbovnc - 3.2.91_p1
Ebuild name:

net-misc/turbovnc-3.2.91_p1

Description

A fast replacement for TigerVNC

Added to portage

2025-12-23

types-setuptools - 80.9.0.20251223
Ebuild name:

dev-python/types-setuptools-80.9.0.20251223

Description

Typing stubs for setuptools

Added to portage

2025-12-23

unrar - 7.2.3
Ebuild name:

app-arch/unrar-7.2.3

Description

Uncompress rar files

Added to portage

2025-12-23

xmrig - 6.25.0
Ebuild name:

net-misc/xmrig-6.25.0

Description

RandomX, CryptoNight, KawPow, AstroBWT, and Argon2 CPU/GPU miner

Added to portage

2025-12-23

xterm - 406
Ebuild name:

x11-terms/xterm-406

Description

Terminal Emulator for X Windows

Added to portage

2025-12-23

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