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:

87773

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-08-18
bcachefs-tools - 1.39.2
Ebuild name:

sys-fs/bcachefs-tools-1.39.2

Description

Tools for bcachefs

Added to portage

2026-08-18

blockbuster - 1.5.27
Ebuild name:

dev-python/blockbuster-1.5.27

Description

Utility to detect blocking calls in the async event loop

Added to portage

2026-08-18

boto3 - 1.43.73
Ebuild name:

dev-python/boto3-1.43.73

Description

The AWS SDK for Python

Added to portage

2026-08-18

botocore - 1.43.73
Ebuild name:

dev-python/botocore-1.43.73

Description

Low-level, data-driven core of boto 3

Added to portage

2026-08-18

breezy - 3.3.22-r2
Ebuild name:

dev-vcs/breezy-3.3.22-r2

Description

Distributed Version Control System with a Friendly UI

Added to portage

2026-08-18

capstone - 5.0.9
Ebuild name:

dev-libs/capstone-5.0.9

Description

disassembly/disassembler framework + bindings

Added to portage

2026-08-18

capstone - 6.0.0_alpha10
Ebuild name:

dev-libs/capstone-6.0.0_alpha10

Description

disassembly/disassembler framework + bindings

Added to portage

2026-08-18

catalogus - 0.1.0
Ebuild name:

dev-python/catalogus-0.1.0

Description

Classes to provide name-to-object registry-like support

Added to portage

2026-08-18

chrome-binary-plugins - 151.0.7922.137
Ebuild name:

www-plugins/chrome-binary-plugins-151.0.7922.137

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2026-08-18

chrome-binary-plugins - 152.0.7977.42_beta
Ebuild name:

www-plugins/chrome-binary-plugins-152.0.7977.42_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-08-18

chrome-binary-plugins - 153.0.8003.0_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-153.0.8003.0_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-08-18

chromedriver-bin - 151.0.7922.137
Ebuild name:

www-apps/chromedriver-bin-151.0.7922.137

Description

WebDriver for Chrome

Added to portage

2026-08-18

chromium - 151.0.7922.137
Ebuild name:

www-client/chromium-151.0.7922.137

Description

Open-source version of Google Chrome web browser

Added to portage

2026-08-18

discord - 1.0.154
Ebuild name:

net-im/discord-1.0.154

Description

All-in-one voice and text chat for gamers

Added to portage

2026-08-18

etcd - 3.7.1
Ebuild name:

dev-db/etcd-3.7.1

Description

Highly-available key value store for shared configuration and service discovery

Added to portage

2026-08-18

ggml - 0.20.1
Ebuild name:

sci-ml/ggml-0.20.1

Description

Tensor library for machine learning

Added to portage

2026-08-18

google-chrome - 151.0.7922.137
Ebuild name:

www-client/google-chrome-151.0.7922.137

Description

The web browser from Google

Added to portage

2026-08-18

google-chrome-beta - 152.0.7977.42
Ebuild name:

www-client/google-chrome-beta-152.0.7977.42

Description

The web browser from Google

Added to portage

2026-08-18

google-chrome-unstable - 153.0.8003.0
Ebuild name:

www-client/google-chrome-unstable-153.0.8003.0

Description

The web browser from Google

Added to portage

2026-08-18

libdivsufsort - 2.0.1-r3
Ebuild name:

dev-libs/libdivsufsort-2.0.1-r3

Description

Suffix-sorting library (for BWT)

Added to portage

2026-08-18

lndir - 1.0.6
Ebuild name:

x11-misc/lndir-1.0.6

Description

create a shadow directory of symbolic links to another directory tree

Added to portage

2026-08-18

makedepend - 1.0.10
Ebuild name:

x11-misc/makedepend-1.0.10

Description

create dependencies in makefiles

Added to portage

2026-08-18

mesa - 26.1.7
Ebuild name:

media-libs/mesa-26.1.7

Description

OpenGL-like graphic library for Linux

Added to portage

2026-08-18

mesa_clc - 26.1.7
Ebuild name:

dev-util/mesa_clc-26.1.7

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2026-08-18

microsoft-edge - 151.0.4129.93
Ebuild name:

www-client/microsoft-edge-151.0.4129.93

Description

The web browser from Microsoft

Added to portage

2026-08-18

microsoft-edge-beta - 152.0.4191.19
Ebuild name:

www-client/microsoft-edge-beta-152.0.4191.19

Description

The web browser from Microsoft

Added to portage

2026-08-18

microsoft-edge-dev - 153.0.4210.0
Ebuild name:

www-client/microsoft-edge-dev-153.0.4210.0

Description

The web browser from Microsoft

Added to portage

2026-08-18

oct2py - 6.0.4
Ebuild name:

dev-python/oct2py-6.0.4

Description

Python to GNU Octave bridge

Added to portage

2026-08-18

openldap - 2.6.14
Ebuild name:

net-nds/openldap-2.6.14

Description

LDAP suite of application and development tools

Added to portage

2026-08-18

opera - 134.0.5954.56
Ebuild name:

www-client/opera-134.0.5954.56

Description

A fast and secure web browser

Added to portage

2026-08-18

opera-developer - 136.0.5988.0
Ebuild name:

www-client/opera-developer-136.0.5988.0

Description

A fast and secure web browser

Added to portage

2026-08-18

pikepdf - 10.12.0
Ebuild name:

dev-python/pikepdf-10.12.0

Description

Python library to work with pdf files based on qpdf

Added to portage

2026-08-18

pkgcore - 0.12.40
Ebuild name:

sys-apps/pkgcore-0.12.40

Description

a framework for package management

Added to portage

2026-08-18

postfix - 3.12_pre20260817
Ebuild name:

mail-mta/postfix-3.12_pre20260817

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-08-18

pycuda - 2025.1.3-r1
Ebuild name:

dev-python/pycuda-2025.1.3-r1

Description

Python wrapper for NVIDIA CUDA

Added to portage

2026-08-18

pyopencl - 2026.1.2
Ebuild name:

dev-python/pyopencl-2026.1.2

Description

Python wrapper for OpenCL

Added to portage

2026-08-18

vivaldi - 8.1.4087.64
Ebuild name:

www-client/vivaldi-8.1.4087.64

Description

A browser for our friends

Added to portage

2026-08-18

vivaldi - 8.1.4087.66
Ebuild name:

www-client/vivaldi-8.1.4087.66

Description

A browser for our friends

Added to portage

2026-08-18

vivaldi-snapshot - 8.2.4129.3
Ebuild name:

www-client/vivaldi-snapshot-8.2.4129.3

Description

A browser for our friends

Added to portage

2026-08-18

vivaldi-snapshot - 8.2.4133.3
Ebuild name:

www-client/vivaldi-snapshot-8.2.4133.3

Description

A browser for our friends

Added to portage

2026-08-18

2026-08-17
DBI - 1.652.0
Ebuild name:

dev-perl/DBI-1.652.0

Description

Database independent interface for Perl

Added to portage

2026-08-17

arti - 2.5.1
Ebuild name:

net-p2p/arti-2.5.1

Description

Implementation of Tor in Rust

Added to portage

2026-08-17

astroid - 4.3.1
Ebuild name:

dev-python/astroid-4.3.1

Description

Abstract Syntax Tree for logilab packages

Added to portage

2026-08-17

btrfs-assistant - 2.3
Ebuild name:

app-admin/btrfs-assistant-2.3

Description

GUI management tool to make managing a Btrfs filesystem easier

Added to portage

2026-08-17

chrony_exporter - 0.14.0
Ebuild name:

app-metrics/chrony_exporter-0.14.0

Description

Chrony NTP exporter for Prometheus

Added to portage

2026-08-17

codipack - 3.1.2
Ebuild name:

sys-cluster/codipack-3.1.2

Description

Fast gradient evaluation in C++ based on Expression Templates

Added to portage

2026-08-17

deepmerge - 3.0
Ebuild name:

dev-python/deepmerge-3.0

Description

Tools to handle merging of nested data structures in python

Added to portage

2026-08-17

dhcpcd - 10.5.2
Ebuild name:

net-misc/dhcpcd-10.5.2

Description

A fully featured, yet light weight RFC2131 compliant DHCP client

Added to portage

2026-08-17

dokuwiki - 20260714b
Ebuild name:

www-apps/dokuwiki-20260714b

Description

DokuWiki is a simple to use Wiki aimed at a small company's documentati

Added to portage

2026-08-17

electrum - 4.8.1
Ebuild name:

net-misc/electrum-4.8.1

Description

User friendly Bitcoin client

Added to portage

2026-08-17

exfatprogs - 1.4.3
Ebuild name:

sys-fs/exfatprogs-1.4.3

Description

Userspace utilities for the exFAT filesystem

Added to portage

2026-08-17

fastfetch - 2.67.1
Ebuild name:

app-misc/fastfetch-2.67.1

Description

Fast neofetch-like system information tool

Added to portage

2026-08-17

firefox-bin - 140.14.0
Ebuild name:

www-client/firefox-bin-140.14.0

Description

Firefox Web Browser

Added to portage

2026-08-17

firefox-bin - 153.1.0
Ebuild name:

www-client/firefox-bin-153.1.0

Description

Firefox Web Browser

Added to portage

2026-08-17

firefox-bin - 154.0
Ebuild name:

www-client/firefox-bin-154.0

Description

Firefox Web Browser

Added to portage

2026-08-17

gagit - 4
Ebuild name:

dev-vcs/gagit-4

Description

Gentoo AGit workflow tool

Added to portage

2026-08-17

gentoo-sources - 7.2.0
Ebuild name:

sys-kernel/gentoo-sources-7.2.0

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-08-17

gpxsee - 16.12
Ebuild name:

sci-geosciences/gpxsee-16.12

Description

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

Added to portage

2026-08-17

htop - 3.5.3
Ebuild name:

sys-process/htop-3.5.3

Description

Interactive process viewer

Added to portage

2026-08-17

hypothesis - 6.165.10
Ebuild name:

dev-python/hypothesis-6.165.10

Description

A library for property based testing

Added to portage

2026-08-17

kguiaddons - 6.29.0-r1
Ebuild name:

kde-frameworks/kguiaddons-6.29.0-r1

Description

Framework providing assorted high-level user interface componen

Added to portage

2026-08-17

kirigami - 6.29.0-r1
Ebuild name:

kde-frameworks/kirigami-6.29.0-r1

Description

Lightweight user interface framework for mobile and convergent ap

Added to portage

2026-08-17

libquo - 1.4.1
Ebuild name:

sys-cluster/libquo-1.4.1

Description

Run-time tuning of process binding policies made easy

Added to portage

2026-08-17

libtsm - 4.7.1
Ebuild name:

dev-libs/libtsm-4.7.1

Description

Terminal Emulator State Machine

Added to portage

2026-08-17

lyx - 2.5.2
Ebuild name:

app-office/lyx-2.5.2

Description

WYSIWYM (What You See Is What You Mean) document processor based on LaTeX

Added to portage

2026-08-17

mattermost-desktop-bin - 6.2.3
Ebuild name:

net-im/mattermost-desktop-bin-6.2.3

Description

Mattermost Desktop application

Added to portage

2026-08-17

mercurial - 7.2.4
Ebuild name:

dev-vcs/mercurial-7.2.4

Description

Scalable distributed SCM

Added to portage

2026-08-17

mergiraf - 0.19.0
Ebuild name:

dev-vcs/mergiraf-0.19.0

Description

Syntax-aware git merge driver

Added to portage

2026-08-17

metakernel - 1.0.6
Ebuild name:

dev-python/metakernel-1.0.6

Description

Metakernel for Jupyter

Added to portage

2026-08-17

metakernel - 1.0.7
Ebuild name:

dev-python/metakernel-1.0.7

Description

Metakernel for Jupyter

Added to portage

2026-08-17

nbformat - 5.11.1
Ebuild name:

dev-python/nbformat-5.11.1

Description

Reference implementation of the Jupyter Notebook format

Added to portage

2026-08-17

nushell - 0.115.0
Ebuild name:

app-shells/nushell-0.115.0

Description

A new type of shell, written in Rust

Added to portage

2026-08-17

octave-kernel - 1.1.1
Ebuild name:

dev-python/octave-kernel-1.1.1

Description

Jupyter kernel for octave

Added to portage

2026-08-17

ollama - 0.32.14
Ebuild name:

sci-ml/ollama-0.32.14

Description

Get up and running with Llama 3, Mistral, Gemma, and other language models

Added to portage

2026-08-17

openpgp-keys-patrick96 - 20260816
Ebuild name:

sec-keys/openpgp-keys-patrick96-20260816

Description

OpenPGP keys used by Patrick Ziegler

Added to portage

2026-08-17

openpgp-keys-putty-release - 2026
Ebuild name:

sec-keys/openpgp-keys-putty-release-2026

Description

PuTTY Release Key

Added to portage

2026-08-17

polybar - 3.7.2-r1
Ebuild name:

x11-misc/polybar-3.7.2-r1

Description

A fast and easy-to-use tool for creating status bars

Added to portage

2026-08-17

postgresql - 14.24
Ebuild name:

dev-db/postgresql-14.24

Description

PostgreSQL RDBMS

Added to portage

2026-08-17

postgresql - 15.19
Ebuild name:

dev-db/postgresql-15.19

Description

PostgreSQL RDBMS

Added to portage

2026-08-17

postgresql - 16.15
Ebuild name:

dev-db/postgresql-16.15

Description

PostgreSQL RDBMS

Added to portage

2026-08-17

postgresql - 17.11
Ebuild name:

dev-db/postgresql-17.11

Description

PostgreSQL RDBMS

Added to portage

2026-08-17

postgresql - 18.6
Ebuild name:

dev-db/postgresql-18.6

Description

PostgreSQL RDBMS

Added to portage

2026-08-17

postgresql - 19_beta3
Ebuild name:

dev-db/postgresql-19_beta3

Description

PostgreSQL RDBMS

Added to portage

2026-08-17

putty - 0.85
Ebuild name:

net-misc/putty-0.85

Description

A Free Telnet/SSH Client

Added to portage

2026-08-17

pygments - 2.21.0
Ebuild name:

dev-python/pygments-2.21.0

Description

Pygments is a syntax highlighting package written in Python

Added to portage

2026-08-17

pyproject-fmt - 2.28.0
Ebuild name:

dev-python/pyproject-fmt-2.28.0

Description

Format your pyproject.toml file

Added to portage

2026-08-17

pysubs2 - 1.9.0
Ebuild name:

dev-python/pysubs2-1.9.0

Description

Python library for editing subtitle files

Added to portage

2026-08-17

pytest-rerunfailures - 16.6
Ebuild name:

dev-python/pytest-rerunfailures-16.6

Description

pytest plugin to re-run tests to eliminate flaky failures

Added to portage

2026-08-17

pytest-timeout - 2.5.0
Ebuild name:

dev-python/pytest-timeout-2.5.0

Description

pytest plugin to abort hanging tests

Added to portage

2026-08-17

python - 0.3.15.0_rc1-r1
Ebuild name:

dev-lang/python-0.3.15.0_rc1-r1

Description

Freethreading (no-GIL) version of Python programming language

Added to portage

2026-08-17

python - 3.15.0_rc1_p1-r1
Ebuild name:

dev-lang/python-3.15.0_rc1_p1-r1

Description

An interpreted, interactive, object-oriented programming language

Added to portage

2026-08-17

python-dotenv - 1.2.3
Ebuild name:

dev-python/python-dotenv-1.2.3

Description

Manage .env files

Added to portage

2026-08-17

python-lsp-ruff - 2.3.3
Ebuild name:

dev-python/python-lsp-ruff-2.3.3

Description

Ruff linting plugin for the Python LSP Server

Added to portage

2026-08-17

rq - 2.11.0
Ebuild name:

dev-python/rq-2.11.0

Description

Simple, lightweight library for creating and processing background jobs

Added to portage

2026-08-17

rssguard - 5.2.4
Ebuild name:

net-news/rssguard-5.2.4

Description

Simple (yet powerful) news feed reader

Added to portage

2026-08-17

tibs - 2.0.1
Ebuild name:

dev-python/tibs-2.0.1

Description

A sleek Python library for your binary data

Added to portage

2026-08-17

tpm2-pytss - 3.0.0
Ebuild name:

dev-python/tpm2-pytss-3.0.0

Description

Python bindings for TSS

Added to portage

2026-08-17

tree-sitter - 0.26.12
Ebuild name:

dev-libs/tree-sitter-0.26.12

Description

Tree-sitter is a parser generator tool and an incremental parsing libr

Added to portage

2026-08-17

tree-sitter-cli - 0.26.12
Ebuild name:

dev-util/tree-sitter-cli-0.26.12

Description

Command-line tool for creating and testing tree-sitter grammars

Added to portage

2026-08-17

urwid - 4.0.10
Ebuild name:

dev-python/urwid-4.0.10

Description

Curses-based user interface library for Python

Added to portage

2026-08-17

vanilla-sources - 7.2.0
Ebuild name:

sys-kernel/vanilla-sources-7.2.0

Description

Full sources for the Linux kernel

Added to portage

2026-08-17

xaos - 4.3.7
Ebuild name:

x11-misc/xaos-4.3.7

Description

Very fast real-time fractal zoomer

Added to portage

2026-08-17

xxhash - 4.0.1
Ebuild name:

dev-python/xxhash-4.0.1

Description

Python binding for the xxHash library

Added to portage

2026-08-17

z3 - 5.1.0
Ebuild name:

sci-mathematics/z3-5.1.0

Description

An efficient theorem prover

Added to portage

2026-08-17

zsh - 5.9.2
Ebuild name:

app-shells/zsh-5.9.2

Description

UNIX Shell similar to the Korn shell

Added to portage

2026-08-17

zxing-cpp - 3.1.1
Ebuild name:

media-libs/zxing-cpp-3.1.1

Description

C++ Multi-format 1D/2D barcode image processing library

Added to portage

2026-08-17

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