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:

87918

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-25
claude-code - 2.1.241
Ebuild name:

dev-util/claude-code-2.1.241

Description

Claude Code - an agentic coding tool by Anthropic

Added to portage

2026-08-25

folium - 0.20.0-r2
Ebuild name:

sci-geosciences/folium-0.20.0-r2

Description

Python Data, Leaflet.js Maps

Added to portage

2026-08-25

gap - 4.16.1
Ebuild name:

sci-mathematics/gap-4.16.1

Description

System for computational discrete algebra (core functionality)

Added to portage

2026-08-25

gnuradio - 9999-r2
Ebuild name:

net-wireless/gnuradio-9999-r2

Description

Toolkit that provides signal processing blocks to implement software

Added to portage

2026-08-25

kwin - 6.7.4-r2
Ebuild name:

kde-plasma/kwin-6.7.4-r2

Description

Flexible, composited Window Manager for windowing systems on Linux

Added to portage

2026-08-25

nushell - 0.115.1
Ebuild name:

app-shells/nushell-0.115.1

Description

A new type of shell, written in Rust

Added to portage

2026-08-25

plasma-nm - 6.7.4-r2
Ebuild name:

kde-plasma/plasma-nm-6.7.4-r2

Description

KDE Plasma applet for NetworkManager

Added to portage

2026-08-25

portage - 3.0.82.1
Ebuild name:

sys-apps/portage-3.0.82.1

Description

The package management and distribution system for Gentoo

Added to portage

2026-08-25

sundials - 7.8.0
Ebuild name:

sci-libs/sundials-7.8.0

Description

Suite of nonlinear solvers

Added to portage

2026-08-25

2026-08-24
atheme-services - 7.2.12-r7
Ebuild name:

net-irc/atheme-services-7.2.12-r7

Description

A portable and secure set of open-source and modular IRC services

Added to portage

2026-08-24

cachelib - 0.17.0
Ebuild name:

dev-python/cachelib-0.17.0

Description

Collection of cache libraries in the same API interface. Extracted from

Added to portage

2026-08-24

cutter - 2.5.0
Ebuild name:

dev-util/cutter-2.5.0

Description

A Qt and C++ GUI for rizin reverse engineering framework

Added to portage

2026-08-24

dist-kernel - 6.1.184
Ebuild name:

virtual/dist-kernel-6.1.184

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 6.12.105
Ebuild name:

virtual/dist-kernel-6.12.105

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 6.18.46
Ebuild name:

virtual/dist-kernel-6.18.46

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 6.6.153
Ebuild name:

virtual/dist-kernel-6.6.153

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

dist-kernel - 7.1.10
Ebuild name:

virtual/dist-kernel-7.1.10

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-08-24

drumstick - 2.11.1
Ebuild name:

media-sound/drumstick-2.11.1

Description

Qt/C++ wrapper for ALSA sequencer

Added to portage

2026-08-24

evdev - 2.0.0
Ebuild name:

dev-python/evdev-2.0.0

Description

Python library for evdev bindings

Added to portage

2026-08-24

filelock - 3.32.4
Ebuild name:

dev-python/filelock-3.32.4

Description

A platform independent file lock for Python

Added to portage

2026-08-24

gcc - 14.4.1_p20260820
Ebuild name:

sys-devel/gcc-14.4.1_p20260820

Description

The GNU Compiler Collection

Added to portage

2026-08-24

gcc - 15.3.1_p20260821
Ebuild name:

sys-devel/gcc-15.3.1_p20260821

Description

The GNU Compiler Collection

Added to portage

2026-08-24

gcc - 16.2.1_p20260822
Ebuild name:

sys-devel/gcc-16.2.1_p20260822

Description

The GNU Compiler Collection

Added to portage

2026-08-24

gcc - 17.0.0_p20260823
Ebuild name:

sys-devel/gcc-17.0.0_p20260823

Description

The GNU Compiler Collection

Added to portage

2026-08-24

gentoo-kernel - 6.1.184
Ebuild name:

sys-kernel/gentoo-kernel-6.1.184

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 6.12.105
Ebuild name:

sys-kernel/gentoo-kernel-6.12.105

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 6.18.46
Ebuild name:

sys-kernel/gentoo-kernel-6.18.46

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 6.6.153
Ebuild name:

sys-kernel/gentoo-kernel-6.6.153

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel - 7.1.10
Ebuild name:

sys-kernel/gentoo-kernel-7.1.10

Description

Linux kernel built with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.1.184
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.184

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.12.105
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.105

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.18.46
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.46

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 6.6.153
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.153

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-bin - 7.1.10
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.10

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.1.184
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.184

Description

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

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.12.105
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.105

Description

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

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.18.46
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.46

Description

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

Added to portage

2026-08-24

gentoo-kernel-modprep - 6.6.153
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.153

Description

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

Added to portage

2026-08-24

gentoo-kernel-modprep - 7.1.10
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.10

Description

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

Added to portage

2026-08-24

gzip - 1.14-r1
Ebuild name:

app-arch/gzip-1.14-r1

Description

Standard GNU compressor

Added to portage

2026-08-24

i2p - 2.13.0
Ebuild name:

net-vpn/i2p-2.13.0

Description

A privacy-centric, anonymous network

Added to portage

2026-08-24

maturin - 1.15.0
Ebuild name:

dev-util/maturin-1.15.0

Description

Build and publish crates with pyo3, rust-cpython and cffi bindings

Added to portage

2026-08-24

ngx-vts - 0.2.7
Ebuild name:

www-nginx/ngx-vts-0.2.7

Description

NGINX virtual host traffic status module

Added to portage

2026-08-24

nh3 - 0.3.7
Ebuild name:

dev-python/nh3-0.3.7

Description

Ammonia HTML sanitizer Python binding

Added to portage

2026-08-24

oct2py - 6.1.1
Ebuild name:

dev-python/oct2py-6.1.1

Description

Python to GNU Octave bridge

Added to portage

2026-08-24

pkgconf - 3.0.6
Ebuild name:

dev-util/pkgconf-3.0.6

Description

pkg-config compatible replacement with no dependencies other than C99

Added to portage

2026-08-24

postfix - 3.12_pre20260821
Ebuild name:

mail-mta/postfix-3.12_pre20260821

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2026-08-24

ptyprocess - 0.7.0-r2
Ebuild name:

dev-python/ptyprocess-0.7.0-r2

Description

Run a subprocess in a pseudo terminal

Added to portage

2026-08-24

pypdf - 6.16.2
Ebuild name:

dev-python/pypdf-6.16.2

Description

Python library to work with PDF files

Added to portage

2026-08-24

qlog - 0.52.0
Ebuild name:

media-radio/qlog-0.52.0

Description

Amateur radio logbook software

Added to portage

2026-08-24

rizin - 0.9.1
Ebuild name:

dev-util/rizin-0.9.1

Description

reverse engineering framework for binary analysis

Added to portage

2026-08-24

sphinx-autoapi - 3.8.1
Ebuild name:

dev-python/sphinx-autoapi-3.8.1

Description

A new approach to API documentation in Sphinx

Added to portage

2026-08-24

sqlmap - 1.10.8
Ebuild name:

dev-db/sqlmap-1.10.8

Description

An automatic SQL injection and database takeover tool

Added to portage

2026-08-24

sssd - 2.13.1-r1
Ebuild name:

sys-auth/sssd-2.13.1-r1

Description

System Security Services Daemon provides access to identity and authenticat

Added to portage

2026-08-24

sssd - 2.9.9-r1
Ebuild name:

sys-auth/sssd-2.9.9-r1

Description

System Security Services Daemon provides access to identity and authenticati

Added to portage

2026-08-24

steve - 1.5.2
Ebuild name:

dev-build/steve-1.5.2

Description

A load-balancing jobserver for Gentoo

Added to portage

2026-08-24

tellico - 4.2.2
Ebuild name:

kde-misc/tellico-4.2.2

Description

Collection manager based on KDE Frameworks

Added to portage

2026-08-24

tifffile - 2026.8.23
Ebuild name:

dev-python/tifffile-2026.8.23

Description

Read and write TIFF files

Added to portage

2026-08-24

tmuxp - 1.70.1-r1
Ebuild name:

app-misc/tmuxp-1.70.1-r1

Description

tmux session manager. built on libtmux

Added to portage

2026-08-24

tmuxp - 1.74.0
Ebuild name:

app-misc/tmuxp-1.74.0

Description

tmux session manager. built on libtmux

Added to portage

2026-08-24

transformers - 5.15.1
Ebuild name:

sci-ml/transformers-5.15.1

Description

State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow

Added to portage

2026-08-24

vanilla-kernel - 6.1.184
Ebuild name:

sys-kernel/vanilla-kernel-6.1.184

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 6.12.105
Ebuild name:

sys-kernel/vanilla-kernel-6.12.105

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 6.18.46
Ebuild name:

sys-kernel/vanilla-kernel-6.18.46

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 6.6.153
Ebuild name:

sys-kernel/vanilla-kernel-6.6.153

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vanilla-kernel - 7.1.10
Ebuild name:

sys-kernel/vanilla-kernel-7.1.10

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-08-24

vopono - 0.10.22
Ebuild name:

net-vpn/vopono-0.10.22

Description

Launch applications via VPN tunnels using temporary network namespaces

Added to portage

2026-08-24

xwaylandvideobridge - 0.5.2-r1
Ebuild name:

gui-apps/xwaylandvideobridge-0.5.2-r1

Description

Screenshare Wayland windows to XWayland apps

Added to portage

2026-08-24

yara-x - 1.19.0
Ebuild name:

app-forensics/yara-x-1.19.0

Description

A malware identification and classification tool

Added to portage

2026-08-24

zellij - 0.45.0-r1
Ebuild name:

app-misc/zellij-0.45.0-r1

Description

A terminal workspace with batteries included

Added to portage

2026-08-24

zycore-c - 1.5.2
Ebuild name:

dev-libs/zycore-c-1.5.2

Description

Zyan Core Library for C

Added to portage

2026-08-24

zycore-c - 9999
Ebuild name:

dev-libs/zycore-c-9999

Description

Zyan Core Library for C

Added to portage

2026-08-24

zydis - 4.1.1
Ebuild name:

dev-libs/zydis-4.1.1

Description

Fast and lightweight x86/x86-64 disassembler and code generation library

Added to portage

2026-08-24

zydis - 9999
Ebuild name:

dev-libs/zydis-9999

Description

Fast and lightweight x86/x86-64 disassembler and code generation library

Added to portage

2026-08-24

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