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:

84097

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-03-31
bash - 5.3_p9-r1
Ebuild name:

app-shells/bash-5.3_p9-r1

Description

The standard GNU Bourne again shell

Added to portage

2026-03-31

bash - 5.4_alpha_pre20251202-r1
Ebuild name:

app-shells/bash-5.4_alpha_pre20251202-r1

Description

The standard GNU Bourne again shell

Added to portage

2026-03-31

gr-fosphor - 0.0_p20260330
Ebuild name:

net-analyzer/gr-fosphor-0.0_p20260330

Description

gnuradio fosphor block (GPU spectrum display)

Added to portage

2026-03-31

krita - 6.0.1
Ebuild name:

media-gfx/krita-6.0.1

Description

Free digital painting application. Digital Painting, Creative Freedom

Added to portage

2026-03-31

mimalloc - 2.2.7-r1
Ebuild name:

dev-libs/mimalloc-2.2.7-r1

Description

A compact general purpose allocator with excellent performance

Added to portage

2026-03-31

mimalloc - 3.2.8-r1
Ebuild name:

dev-libs/mimalloc-3.2.8-r1

Description

A compact general purpose allocator with excellent performance

Added to portage

2026-03-31

unzip - 6.0_p29-r2
Ebuild name:

app-arch/unzip-6.0_p29-r2

Description

unzipper for pkzip-compressed files

Added to portage

2026-03-31

2026-03-30
ada - 3.4.4
Ebuild name:

dev-cpp/ada-3.4.4

Description

WHATWG-compliant and fast URL parser written in modern C++

Added to portage

2026-03-30

asterisk - 21.12.2
Ebuild name:

net-misc/asterisk-21.12.2

Description

Asterisk A Modular Open Source PBX System

Added to portage

2026-03-30

atuin - 18.13.5
Ebuild name:

app-shells/atuin-18.13.5

Description

Shell history manager supporting encrypted synchronisation

Added to portage

2026-03-30

bolt - 0.9.11
Ebuild name:

sys-apps/bolt-0.9.11

Description

Userspace system daemon to enable security levels for Thunderbolt 3

Added to portage

2026-03-30

ccache - 4.13.2
Ebuild name:

dev-util/ccache-4.13.2

Description

Fast compiler cache

Added to portage

2026-03-30

cmake - 4.1.5
Ebuild name:

dev-build/cmake-4.1.5

Description

Cross platform Make

Added to portage

2026-03-30

cmake - 4.2.4
Ebuild name:

dev-build/cmake-4.2.4

Description

Cross platform Make

Added to portage

2026-03-30

cmake - 4.3.1
Ebuild name:

dev-build/cmake-4.3.1

Description

Cross platform Make

Added to portage

2026-03-30

cppgir - 2.0_p20260321
Ebuild name:

dev-cpp/cppgir-2.0_p20260321

Description

GObject-Introspection C++ binding wrapper generator

Added to portage

2026-03-30

cyme - 2.3.0
Ebuild name:

sys-apps/cyme-2.3.0

Description

List system USB buses and devices; a modern cross-platform `lsusb`

Added to portage

2026-03-30

edk2 - 202511-r1
Ebuild name:

sys-firmware/edk2-202511-r1

Description

TianoCore EDK II UEFI firmware for virtual machines

Added to portage

2026-03-30

edk2-bin - 202511
Ebuild name:

sys-firmware/edk2-bin-202511

Description

TianoCore EDK II UEFI firmware for virtual machines

Added to portage

2026-03-30

evaluate - 0.4.4
Ebuild name:

sci-ml/evaluate-0.4.4

Description

makes evaluating, comparing models and reporting their performance easier

Added to portage

2026-03-30

evaluate - 0.4.5
Ebuild name:

sci-ml/evaluate-0.4.5

Description

makes evaluating, comparing models and reporting their performance easier

Added to portage

2026-03-30

evaluate - 0.4.6
Ebuild name:

sci-ml/evaluate-0.4.6

Description

makes evaluating, comparing models and reporting their performance easier

Added to portage

2026-03-30

exfatprogs - 1.3.2
Ebuild name:

sys-fs/exfatprogs-1.3.2

Description

Userspace utilities for the exFAT filesystem

Added to portage

2026-03-30

fcft - 3.3.3
Ebuild name:

media-libs/fcft-3.3.3

Description

Simple library for font loading and glyph rasterization

Added to portage

2026-03-30

firecracker-bin - 1.15.0
Ebuild name:

app-emulation/firecracker-bin-1.15.0

Description

Secure and fast microVMs for serverless computing (static buil

Added to portage

2026-03-30

fuse - 3.18.2
Ebuild name:

sys-fs/fuse-3.18.2

Description

An interface for filesystems implemented in userspace

Added to portage

2026-03-30

gcc - 16.0.1_p20260329
Ebuild name:

sys-devel/gcc-16.0.1_p20260329

Description

The GNU Compiler Collection

Added to portage

2026-03-30

git-sources - 7.0_rc6
Ebuild name:

sys-kernel/git-sources-7.0_rc6

Description

The very latest -git version of the Linux kernel

Added to portage

2026-03-30

grub - 2.14-r4
Ebuild name:

sys-boot/grub-2.14-r4

Description

GNU GRUB boot loader

Added to portage

2026-03-30

inxi - 3.3.40.1
Ebuild name:

sys-apps/inxi-3.3.40.1

Description

The CLI inxi collects and prints hardware and system information

Added to portage

2026-03-30

libpng - 1.6.56
Ebuild name:

media-libs/libpng-1.6.56

Description

Portable Network Graphics library

Added to portage

2026-03-30

mbuffer - 20260301
Ebuild name:

sys-block/mbuffer-20260301

Description

M(easuring)buffer is a replacement for buffer with additional functional

Added to portage

2026-03-30

mdadm - 4.6
Ebuild name:

sys-fs/mdadm-4.6

Description

Tool for running RAID systems - replacement for the raidtools

Added to portage

2026-03-30

mocker - 0.5.0
Ebuild name:

app-emacs/mocker-0.5.0

Description

Simple mocking framework for Emacs

Added to portage

2026-03-30

modus-themes - 5.1.0
Ebuild name:

app-emacs/modus-themes-5.1.0

Description

Highly accessible themes for GNU Emacs

Added to portage

2026-03-30

nethack - 3.6.7-r1
Ebuild name:

games-roguelike/nethack-3.6.7-r1

Description

The ultimate old-school single player dungeon exploration game

Added to portage

2026-03-30

pylsqpack - 0.3.24
Ebuild name:

dev-python/pylsqpack-0.3.24

Description

Python wrapper for the ls-qpack QPACK library

Added to portage

2026-03-30

pyqt6 - 6.11.0
Ebuild name:

dev-python/pyqt6-6.11.0

Description

Python bindings for the Qt framework

Added to portage

2026-03-30

pyqt6-webengine - 6.11.0
Ebuild name:

dev-python/pyqt6-webengine-6.11.0

Description

Python bindings for QtWebEngine

Added to portage

2026-03-30

qbe - 1.2-r1
Ebuild name:

sys-devel/qbe-1.2-r1

Description

Pure-C embeddable compiler backend

Added to portage

2026-03-30

synapse - 1.150.0
Ebuild name:

net-im/synapse-1.150.0

Description

Reference implementation of Matrix homeserver

Added to portage

2026-03-30

sysvinit - 3.18
Ebuild name:

sys-apps/sysvinit-3.18

Description

/sbin/init - parent of all processes

Added to portage

2026-03-30

tdlib - 1.8.62
Ebuild name:

net-libs/tdlib-1.8.62

Description

Cross-platform library for building Telegram clients

Added to portage

2026-03-30

transformers - 5.3.0
Ebuild name:

sci-ml/transformers-5.3.0

Description

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

Added to portage

2026-03-30

winbox - 4.1_rc1
Ebuild name:

app-admin/winbox-4.1_rc1

Description

Management Software for MikroTik RouterOS

Added to portage

2026-03-30

xrootd - 5.9.2
Ebuild name:

net-libs/xrootd-5.9.2

Description

Extended ROOT remote file server

Added to portage

2026-03-30

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