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:

88615

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-09-22
atpublic - 8.0.1
Ebuild name:

dev-python/atpublic-8.0.1

Description

A decorator to populate __all__ and the module globals

Added to portage

2026-09-22

aws-c-common - 1.0.1
Ebuild name:

dev-libs/aws-c-common-1.0.1

Description

Core c99 package for AWS SDK for C

Added to portage

2026-09-22

aws-c-s3 - 1.1.3
Ebuild name:

dev-libs/aws-c-s3-1.1.3

Description

AWS C S3 async library

Added to portage

2026-09-22

awscli - 2.36.50
Ebuild name:

app-admin/awscli-2.36.50

Description

Universal Command Line Environment for AWS

Added to portage

2026-09-22

boto3 - 1.43.99
Ebuild name:

dev-python/boto3-1.43.99

Description

The AWS SDK for Python

Added to portage

2026-09-22

botocore - 1.43.99
Ebuild name:

dev-python/botocore-1.43.99

Description

Low-level, data-driven core of boto 3

Added to portage

2026-09-22

breathe - 5.0.0
Ebuild name:

dev-python/breathe-5.0.0

Description

Sphinx Doxygen renderer

Added to portage

2026-09-22

discord - 1.0.159
Ebuild name:

net-im/discord-1.0.159

Description

All-in-one voice and text chat for gamers

Added to portage

2026-09-22

dist-kernel - 6.12.111
Ebuild name:

virtual/dist-kernel-6.12.111

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-09-22

dist-kernel - 6.18.53
Ebuild name:

virtual/dist-kernel-6.18.53

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-09-22

dist-kernel - 7.2.7
Ebuild name:

virtual/dist-kernel-7.2.7

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-09-22

gamescope - 3.16.29
Ebuild name:

gui-wm/gamescope-3.16.29

Description

Efficient micro-compositor for running games

Added to portage

2026-09-22

gentoo-kernel - 6.12.111
Ebuild name:

sys-kernel/gentoo-kernel-6.12.111

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-22

gentoo-kernel - 6.18.53
Ebuild name:

sys-kernel/gentoo-kernel-6.18.53

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-22

gentoo-kernel - 7.2.7
Ebuild name:

sys-kernel/gentoo-kernel-7.2.7

Description

Linux kernel built with Gentoo patches

Added to portage

2026-09-22

gentoo-kernel-bin - 6.12.111
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.111

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-22

gentoo-kernel-bin - 6.18.53
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.53

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-22

gentoo-kernel-bin - 7.2.7
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.2.7

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-09-22

gentoo-kernel-modprep - 6.12.111
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.111

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-09-22

gentoo-kernel-modprep - 6.18.53
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.53

Description

Minimal subset of gentoo-kernel-bin for building modules,

Added to portage

2026-09-22

gentoo-kernel-modprep - 7.2.7
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.2.7

Description

Minimal subset of gentoo-kernel-bin for building modules, fo

Added to portage

2026-09-22

grub - 2.16
Ebuild name:

sys-boot/grub-2.16

Description

GNU GRUB boot loader

Added to portage

2026-09-22

hl-todo - 3.9.0
Ebuild name:

app-emacs/hl-todo-3.9.0

Description

Highlight TODO and similar keywords in comments and strings

Added to portage

2026-09-22

hl-todo - 3.9.1
Ebuild name:

app-emacs/hl-todo-3.9.1

Description

Highlight TODO and similar keywords in comments and strings

Added to portage

2026-09-22

howm - 1.5.0
Ebuild name:

app-emacs/howm-1.5.0

Description

Note-taking tool on Emacs

Added to portage

2026-09-22

jupyterlab - 4.5.11
Ebuild name:

dev-python/jupyterlab-4.5.11

Description

JupyterLab computational environment

Added to portage

2026-09-22

jupyterlab - 4.6.4
Ebuild name:

dev-python/jupyterlab-4.6.4

Description

JupyterLab computational environment

Added to portage

2026-09-22

kdeplasma-addons - 6.7.5-r1
Ebuild name:

kde-plasma/kdeplasma-addons-6.7.5-r1

Description

Extra Plasma applets and engines

Added to portage

2026-09-22

krdp - 6.7.5-r1
Ebuild name:

kde-plasma/krdp-6.7.5-r1

Description

Library and examples for creating an RDP server

Added to portage

2026-09-22

kwin - 6.7.5-r1
Ebuild name:

kde-plasma/kwin-6.7.5-r1

Description

Flexible, composited Window Manager for windowing systems on Linux

Added to portage

2026-09-22

kwin-x11 - 6.7.5-r1
Ebuild name:

kde-plasma/kwin-x11-6.7.5-r1

Description

Flexible, composited X window manager

Added to portage

2026-09-22

lazy-loader - 0.6
Ebuild name:

dev-python/lazy-loader-0.6

Description

Populate library namespace without incurring immediate import costs

Added to portage

2026-09-22

lgogdownloader - 3.19
Ebuild name:

games-util/lgogdownloader-3.19

Description

Unofficial GOG.com downloader for Linux

Added to portage

2026-09-22

mariadb-connector-c - 3.4.9-r2
Ebuild name:

dev-db/mariadb-connector-c-3.4.9-r2

Description

C client library for MariaDB/MySQL

Added to portage

2026-09-22

multidict - 6.9.1
Ebuild name:

dev-python/multidict-6.9.1

Description

multidict implementation

Added to portage

2026-09-22

networkx - 3.7
Ebuild name:

dev-python/networkx-3.7

Description

Python tools to manipulate graphs and complex networks

Added to portage

2026-09-22

notebook - 7.6.3
Ebuild name:

dev-python/notebook-7.6.3

Description

Jupyter Interactive Notebook

Added to portage

2026-09-22

plasma-workspace - 6.7.5-r1
Ebuild name:

kde-plasma/plasma-workspace-6.7.5-r1

Description

KDE Plasma workspace

Added to portage

2026-09-22

platformdirs - 4.11.12
Ebuild name:

dev-python/platformdirs-4.11.12

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-09-22

postfix - 3.12_pre20260921
Ebuild name:

mail-mta/postfix-3.12_pre20260921

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-09-22

powerdevil - 6.7.5-r2
Ebuild name:

kde-plasma/powerdevil-6.7.5-r2

Description

Power management for KDE Plasma Shell

Added to portage

2026-09-22

tifffile - 2026.9.20
Ebuild name:

dev-python/tifffile-2026.9.20

Description

Read and write TIFF files

Added to portage

2026-09-22

trove-classifiers - 2026.9.21.13
Ebuild name:

dev-python/trove-classifiers-2026.9.21.13

Description

Canonical source for classifiers on PyPI (pypi.org)

Added to portage

2026-09-22

vanilla-kernel - 6.12.111
Ebuild name:

sys-kernel/vanilla-kernel-6.12.111

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-22

vanilla-kernel - 6.18.53
Ebuild name:

sys-kernel/vanilla-kernel-6.18.53

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-22

vanilla-kernel - 7.2.7
Ebuild name:

sys-kernel/vanilla-kernel-7.2.7

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-09-22

virtualenv - 21.9.1
Ebuild name:

dev-python/virtualenv-21.9.1

Description

Virtual Python Environment builder

Added to portage

2026-09-22

watchfiles - 1.3.0
Ebuild name:

dev-python/watchfiles-1.3.0

Description

Simple, modern file watching and code reload in Python

Added to portage

2026-09-22

webkit-gtk - 2.54.0-r410
Ebuild name:

net-libs/webkit-gtk-2.54.0-r410

Description

Open source web browser engine

Added to portage

2026-09-22

webkit-gtk - 2.54.0-r600
Ebuild name:

net-libs/webkit-gtk-2.54.0-r600

Description

Open source web browser engine

Added to portage

2026-09-22

2026-09-21
calligra - 26.08.1
Ebuild name:

app-office/calligra-26.08.1

Description

KDE Office Suite

Added to portage

2026-09-21

ddcutil - 2.2.7
Ebuild name:

app-misc/ddcutil-2.2.7

Description

Program for querying and changing monitor settings

Added to portage

2026-09-21

dos2unix - 7.5.7
Ebuild name:

app-text/dos2unix-7.5.7

Description

Convert DOS or MAC text files to UNIX format or vice versa

Added to portage

2026-09-21

ffmpeg - 8.1.3
Ebuild name:

media-video/ffmpeg-8.1.3

Description

Complete solution to record/convert/stream audio and video

Added to portage

2026-09-21

ffmpeg-compat - 8.1.3
Ebuild name:

media-video/ffmpeg-compat-8.1.3

Description

Complete solution to record/convert/stream audio and video

Added to portage

2026-09-21

fzf - 0.74.4
Ebuild name:

app-shells/fzf-0.74.4

Description

General-purpose command-line fuzzy finder, written in Golang

Added to portage

2026-09-21

gcc - 17.0.0_p20260920
Ebuild name:

sys-devel/gcc-17.0.0_p20260920

Description

The GNU Compiler Collection

Added to portage

2026-09-21

geekbench - 7.1.0
Ebuild name:

app-benchmarks/geekbench-7.1.0

Description

A Cross-Platform Benchmark for Android, iOS, Linux, MacOS and Window

Added to portage

2026-09-21

geekbench-ai - 1.8.0
Ebuild name:

app-benchmarks/geekbench-ai-1.8.0

Description

A Cross-Platform AI Benchmark for Android, iOS, Linux, MacOS and

Added to portage

2026-09-21

gemato - 20.15
Ebuild name:

app-portage/gemato-20.15

Description

Stand-alone Manifest generation & verification tool

Added to portage

2026-09-21

gentoo-sources - 6.12.111
Ebuild name:

sys-kernel/gentoo-sources-6.12.111

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-21

gentoo-sources - 6.18.53
Ebuild name:

sys-kernel/gentoo-sources-6.18.53

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-21

gentoo-sources - 7.2.7
Ebuild name:

sys-kernel/gentoo-sources-7.2.7

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-09-21

git-sources - 7.3_rc4
Ebuild name:

sys-kernel/git-sources-7.3_rc4

Description

The very latest -git version of the Linux kernel

Added to portage

2026-09-21

gzip - 1.15
Ebuild name:

app-arch/gzip-1.15

Description

Standard GNU compressor

Added to portage

2026-09-21

hatchling - 1.32.4
Ebuild name:

dev-python/hatchling-1.32.4

Description

Modern, extensible Python build backend

Added to portage

2026-09-21

html5-parser - 0.5.0
Ebuild name:

dev-python/html5-parser-0.5.0

Description

Fast C based HTML 5 parsing for python

Added to portage

2026-09-21

inkscape - 1.4.4-r1
Ebuild name:

media-gfx/inkscape-1.4.4-r1

Description

SVG based generic vector-drawing program

Added to portage

2026-09-21

intel-graphics-compiler - 2.41.9
Ebuild name:

dev-util/intel-graphics-compiler-2.41.9

Description

LLVM-based OpenCL compiler for OpenCL targetting Intel Gen

Added to portage

2026-09-21

jdupes - 1.31.2
Ebuild name:

app-misc/jdupes-1.31.2

Description

Identify duplicate files on the filesystem

Added to portage

2026-09-21

kitty - 0.49.0
Ebuild name:

x11-terms/kitty-0.49.0

Description

Fast, feature-rich, GPU-based terminal

Added to portage

2026-09-21

kitty-shell-integration - 0.49.0
Ebuild name:

x11-terms/kitty-shell-integration-0.49.0

Description

Shell integration scripts for kitty, a GPU-based terminal

Added to portage

2026-09-21

kitty-terminfo - 0.49.0
Ebuild name:

x11-terms/kitty-terminfo-0.49.0

Description

Terminfo for kitty, a GPU-based terminal emulator

Added to portage

2026-09-21

knowit - 0.7.0
Ebuild name:

dev-python/knowit-0.7.0

Description

Know better your media files

Added to portage

2026-09-21

lowdown - 3.2.1
Ebuild name:

app-text/lowdown-3.2.1

Description

Markdown translator producing HTML5, roff documents in the ms and man format

Added to portage

2026-09-21

md4c - 0.6.0
Ebuild name:

dev-libs/md4c-0.6.0

Description

C Markdown parser. Fast, SAX-like interface, CommonMark Compliant

Added to portage

2026-09-21

nodejs - 26.9.0
Ebuild name:

net-libs/nodejs-26.9.0

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2026-09-21

ollama - 0.34.2
Ebuild name:

sci-ml/ollama-0.34.2

Description

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

Added to portage

2026-09-21

pahole - 1.32
Ebuild name:

dev-util/pahole-1.32

Description

pahole (Poke-a-Hole) and other DWARF utilities

Added to portage

2026-09-21

poetry - 2.5.1
Ebuild name:

dev-python/poetry-2.5.1

Description

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

Added to portage

2026-09-21

poppler - 26.09.0
Ebuild name:

app-text/poppler-26.09.0

Description

PDF rendering library based on the xpdf-3.0 code base

Added to portage

2026-09-21

pyparsing - 3.3.3
Ebuild name:

dev-python/pyparsing-3.3.3

Description

Easy-to-use Python module for text parsing

Added to portage

2026-09-21

pypiserver - 2.4.2
Ebuild name:

dev-python/pypiserver-2.4.2

Description

Minimal PyPI server

Added to portage

2026-09-21

pypy - 3.11.8.0.0
Ebuild name:

dev-lang/pypy-3.11.8.0.0

Description

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

Added to portage

2026-09-21

pypy3-exe - 3.11.8.0.0
Ebuild name:

dev-lang/pypy3-exe-3.11.8.0.0

Description

PyPy3.11 executable (build from source)

Added to portage

2026-09-21

pypy3-exe-bin - 3.11.8.0.0
Ebuild name:

dev-lang/pypy3-exe-bin-3.11.8.0.0

Description

PyPy3.11 executable (pre-built version)

Added to portage

2026-09-21

qtile - 0.37.1
Ebuild name:

x11-wm/qtile-0.37.1

Description

A full-featured, hackable tiling window manager written in Python

Added to portage

2026-09-21

scribus - 1.7.4_pre20260918
Ebuild name:

app-office/scribus-1.7.4_pre20260918

Description

Desktop publishing (DTP) and layout program

Added to portage

2026-09-21

simdjson - 4.6.11
Ebuild name:

dev-libs/simdjson-4.6.11

Description

SIMD accelerated C++ JSON library

Added to portage

2026-09-21

systemd-utils - 255.18
Ebuild name:

sys-apps/systemd-utils-255.18

Description

Utilities split out from systemd for OpenRC users

Added to portage

2026-09-21

tmux - 3.7c
Ebuild name:

app-misc/tmux-3.7c

Description

Terminal multiplexer

Added to portage

2026-09-21

uutils-coreutils - 0.12.0
Ebuild name:

sys-apps/uutils-coreutils-0.12.0

Description

GNU coreutils rewritten in Rust

Added to portage

2026-09-21

vanilla-sources - 6.12.111
Ebuild name:

sys-kernel/vanilla-sources-6.12.111

Description

Full sources for the Linux kernel

Added to portage

2026-09-21

vanilla-sources - 6.18.53
Ebuild name:

sys-kernel/vanilla-sources-6.18.53

Description

Full sources for the Linux kernel

Added to portage

2026-09-21

vanilla-sources - 7.2.7
Ebuild name:

sys-kernel/vanilla-sources-7.2.7

Description

Full sources for the Linux kernel

Added to portage

2026-09-21

vector - 1.9.0
Ebuild name:

dev-python/vector-1.9.0

Description

Vector classes and utilities

Added to portage

2026-09-21

wcd - 6.0.7
Ebuild name:

app-misc/wcd-6.0.7

Description

Wherever Change Directory

Added to portage

2026-09-21

wdiff - 1.2.3
Ebuild name:

app-text/wdiff-1.2.3

Description

Create a diff disregarding formatting

Added to portage

2026-09-21

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