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:

87179

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-07-25
courier-common - 3.1.5-r2
Ebuild name:

net-mail/courier-common-3.1.5-r2

Description

Mail delivery agent/filter

Added to portage

2026-07-25

courier-common - 3.3.0
Ebuild name:

net-mail/courier-common-3.3.0

Description

Mail delivery agent/filter

Added to portage

2026-07-25

dist-kernel - 6.1.178
Ebuild name:

virtual/dist-kernel-6.1.178

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-25

dist-kernel - 6.12.97
Ebuild name:

virtual/dist-kernel-6.12.97

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-25

dist-kernel - 6.18.40
Ebuild name:

virtual/dist-kernel-6.18.40

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-25

dist-kernel - 6.6.145
Ebuild name:

virtual/dist-kernel-6.6.145

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-25

dist-kernel - 7.1.5
Ebuild name:

virtual/dist-kernel-7.1.5

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-07-25

gentoo-kernel - 6.1.178
Ebuild name:

sys-kernel/gentoo-kernel-6.1.178

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-25

gentoo-kernel - 6.12.97
Ebuild name:

sys-kernel/gentoo-kernel-6.12.97

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-25

gentoo-kernel - 6.18.40
Ebuild name:

sys-kernel/gentoo-kernel-6.18.40

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-25

gentoo-kernel - 6.6.145
Ebuild name:

sys-kernel/gentoo-kernel-6.6.145

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-25

gentoo-kernel - 7.1.5
Ebuild name:

sys-kernel/gentoo-kernel-7.1.5

Description

Linux kernel built with Gentoo patches

Added to portage

2026-07-25

gentoo-kernel-bin - 6.1.178
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.1.178

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-25

gentoo-kernel-bin - 6.12.97
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.97

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-25

gentoo-kernel-bin - 6.18.40
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.40

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-25

gentoo-kernel-bin - 6.6.145
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.145

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-25

gentoo-kernel-bin - 7.1.5
Ebuild name:

sys-kernel/gentoo-kernel-bin-7.1.5

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-07-25

gentoo-kernel-modprep - 6.1.178
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.1.178

Description

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

Added to portage

2026-07-25

gentoo-kernel-modprep - 6.12.97
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.12.97

Description

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

Added to portage

2026-07-25

gentoo-kernel-modprep - 6.18.40
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.18.40

Description

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

Added to portage

2026-07-25

gentoo-kernel-modprep - 6.6.145
Ebuild name:

sys-kernel/gentoo-kernel-modprep-6.6.145

Description

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

Added to portage

2026-07-25

gentoo-kernel-modprep - 7.1.5
Ebuild name:

sys-kernel/gentoo-kernel-modprep-7.1.5

Description

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

Added to portage

2026-07-25

gentoolkit - 0.8.0
Ebuild name:

app-portage/gentoolkit-0.8.0

Description

Collection of administration scripts for Gentoo

Added to portage

2026-07-25

kodi - 22.0_beta1
Ebuild name:

media-tv/kodi-22.0_beta1

Description

A free and open source media-player and entertainment hub

Added to portage

2026-07-25

vanilla-kernel - 6.1.178
Ebuild name:

sys-kernel/vanilla-kernel-6.1.178

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-25

vanilla-kernel - 6.12.97
Ebuild name:

sys-kernel/vanilla-kernel-6.12.97

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-25

vanilla-kernel - 6.18.40
Ebuild name:

sys-kernel/vanilla-kernel-6.18.40

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-25

vanilla-kernel - 6.6.145
Ebuild name:

sys-kernel/vanilla-kernel-6.6.145

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-25

vanilla-kernel - 7.1.5
Ebuild name:

sys-kernel/vanilla-kernel-7.1.5

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-07-25

2026-07-24
android-studio - 2026.1.2.11
Ebuild name:

dev-util/android-studio-2026.1.2.11

Description

Android development environment based on IntelliJ IDEA

Added to portage

2026-07-24

annotated-types - 0.8.0
Ebuild name:

dev-python/annotated-types-0.8.0

Description

Reusable constraint types to use with typing.Annotated

Added to portage

2026-07-24

aws-crt-cpp - 0.37.4-r2
Ebuild name:

dev-cpp/aws-crt-cpp-0.37.4-r2

Description

C++ wrapper around the aws-c-* libraries

Added to portage

2026-07-24

awscli - 1.45.55
Ebuild name:

app-admin/awscli-1.45.55

Description

Universal Command Line Environment for AWS

Added to portage

2026-07-24

boto3 - 1.43.55
Ebuild name:

dev-python/boto3-1.43.55

Description

The AWS SDK for Python

Added to portage

2026-07-24

botocore - 1.43.55
Ebuild name:

dev-python/botocore-1.43.55

Description

Low-level, data-driven core of boto 3

Added to portage

2026-07-24

cachetools - 7.1.6
Ebuild name:

dev-python/cachetools-7.1.6

Description

Extensible memoizing collections and decorators

Added to portage

2026-07-24

cfn-lint - 1.53.2
Ebuild name:

dev-python/cfn-lint-1.53.2

Description

CloudFormation Linter

Added to portage

2026-07-24

dump1090 - 11.1
Ebuild name:

net-wireless/dump1090-11.1

Description

Simple Mode S decoder for RTLSDR devices

Added to portage

2026-07-24

geekbench - 7.0.0
Ebuild name:

app-benchmarks/geekbench-7.0.0

Description

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

Added to portage

2026-07-24

gentoo-sources - 6.1.178
Ebuild name:

sys-kernel/gentoo-sources-6.1.178

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-24

gentoo-sources - 6.12.97
Ebuild name:

sys-kernel/gentoo-sources-6.12.97

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-24

gentoo-sources - 6.18.40
Ebuild name:

sys-kernel/gentoo-sources-6.18.40

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-24

gentoo-sources - 6.6.145
Ebuild name:

sys-kernel/gentoo-sources-6.6.145

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-24

gentoo-sources - 7.1.5
Ebuild name:

sys-kernel/gentoo-sources-7.1.5

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-07-24

gnumach - 1.8_p20260630
Ebuild name:

sys-kernel/gnumach-1.8_p20260630

Description

GNU Mach microkernel, for the Hurd

Added to portage

2026-07-24

grpcio - 1.83.0
Ebuild name:

dev-python/grpcio-1.83.0

Description

HTTP/2-based RPC framework

Added to portage

2026-07-24

grpcio-status - 1.83.0
Ebuild name:

dev-python/grpcio-status-1.83.0

Description

Reference package for GRPC Python status proto mapping

Added to portage

2026-07-24

h2 - 4.4.0
Ebuild name:

dev-python/h2-4.4.0

Description

HTTP/2 State-Machine based protocol implementation

Added to portage

2026-07-24

httpx2 - 2.9.0
Ebuild name:

dev-python/httpx2-2.9.0

Description

The next generation HTTP client (Pydantic fork)

Added to portage

2026-07-24

hurd - 0.9_p20260630
Ebuild name:

sys-kernel/hurd-0.9_p20260630

Description

GNU Hurd is the GNU project's replacement for UNIX

Added to portage

2026-07-24

hypothesis - 6.161.1
Ebuild name:

dev-python/hypothesis-6.161.1

Description

A library for property based testing

Added to portage

2026-07-24

intellij-idea - 2026.2.0.1
Ebuild name:

dev-util/intellij-idea-2026.2.0.1

Description

A complete toolset for web, mobile and enterprise development

Added to portage

2026-07-24

kirigami-app-components - 1.0.1-r1
Ebuild name:

dev-libs/kirigami-app-components-1.0.1-r1

Description

Kirigami addons and modules necessary to do a full featur

Added to portage

2026-07-24

lego - 5.3.1
Ebuild name:

app-crypt/lego-5.3.1

Description

Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go

Added to portage

2026-07-24

libacpica - 0_pre20220331_p7
Ebuild name:

sys-power/libacpica-0_pre20220331_p7

Description

ACPICA as a library

Added to portage

2026-07-24

metamath-mode - 0_p20221005
Ebuild name:

app-emacs/metamath-mode-0_p20221005

Description

Major GNU Emacs mode for metamath files

Added to portage

2026-07-24

mew - 6.8_p20230203
Ebuild name:

app-emacs/mew-6.8_p20230203

Description

Great MIME mail reader for Emacs/XEmacs

Added to portage

2026-07-24

mic-paren - 3.15-r1
Ebuild name:

app-emacs/mic-paren-3.15-r1

Description

Advanced highlighting of matching parentheses

Added to portage

2026-07-24

mldonkey - 0.0.4b-r2
Ebuild name:

app-emacs/mldonkey-0.0.4b-r2

Description

An Emacs Lisp interface to the MLDonkey core

Added to portage

2026-07-24

patatt - 0.8.0
Ebuild name:

dev-python/patatt-0.8.0

Description

A simple library to add cryptographic attestation to patches sent via email

Added to portage

2026-07-24

pkgcheck - 0.10.41
Ebuild name:

dev-util/pkgcheck-0.10.41

Description

pkgcore-based QA utility for ebuild repos

Added to portage

2026-07-24

pkgcore - 0.12.36
Ebuild name:

sys-apps/pkgcore-0.12.36

Description

a framework for package management

Added to portage

2026-07-24

quart - 0.21.0
Ebuild name:

dev-python/quart-0.21.0

Description

A Python ASGI web microframework with the same API as Flask

Added to portage

2026-07-24

rnv - 1.7.11-r5
Ebuild name:

app-text/rnv-1.7.11-r5

Description

A lightweight Relax NG Compact Syntax validator

Added to portage

2026-07-24

rust - 1.97.1
Ebuild name:

dev-lang/rust-1.97.1

Description

Systems programming language originally developed by Mozilla

Added to portage

2026-07-24

rust-bin - 1.97.1
Ebuild name:

dev-lang/rust-bin-1.97.1

Description

Added to portage

2026-07-24

rust-common - 1.97.1
Ebuild name:

dev-lang/rust-common-1.97.1

Description

Common files shared between multiple slots of Rust

Added to portage

2026-07-24

rust-std - 1.97.1
Ebuild name:

sys-devel/rust-std-1.97.1

Description

Rust standard library, standalone (for crossdev)

Added to portage

2026-07-24

snakeoil - 0.11.2
Ebuild name:

dev-python/snakeoil-0.11.2

Description

misc common functionality and useful optimizations

Added to portage

2026-07-24

stalwart-cli - 1.0.11
Ebuild name:

net-mail/stalwart-cli-1.0.11

Description

Stalwart Mail Server command line utility

Added to portage

2026-07-24

stalwart-mail - 0.16.14
Ebuild name:

net-mail/stalwart-mail-0.16.14

Description

Stalwart Mail Server

Added to portage

2026-07-24

telegram-desktop-bin - 7.0.5
Ebuild name:

net-im/telegram-desktop-bin-7.0.5

Description

Official desktop client for Telegram (binary package)

Added to portage

2026-07-24

urwid - 4.0.6
Ebuild name:

dev-python/urwid-4.0.6

Description

Curses-based user interface library for Python

Added to portage

2026-07-24

uv - 0.11.32
Ebuild name:

dev-python/uv-0.11.32

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-07-24

uv-build - 0.11.32
Ebuild name:

dev-python/uv-build-0.11.32

Description

PEP517 uv build backend

Added to portage

2026-07-24

vanilla-sources - 6.1.178
Ebuild name:

sys-kernel/vanilla-sources-6.1.178

Description

Full sources for the Linux kernel

Added to portage

2026-07-24

vanilla-sources - 6.12.97
Ebuild name:

sys-kernel/vanilla-sources-6.12.97

Description

Full sources for the Linux kernel

Added to portage

2026-07-24

vanilla-sources - 6.18.40
Ebuild name:

sys-kernel/vanilla-sources-6.18.40

Description

Full sources for the Linux kernel

Added to portage

2026-07-24

vanilla-sources - 6.6.145
Ebuild name:

sys-kernel/vanilla-sources-6.6.145

Description

Full sources for the Linux kernel

Added to portage

2026-07-24

vanilla-sources - 7.1.5
Ebuild name:

sys-kernel/vanilla-sources-7.1.5

Description

Full sources for the Linux kernel

Added to portage

2026-07-24

webrtc-audio-processing - 1.3-r5
Ebuild name:

media-libs/webrtc-audio-processing-1.3-r5

Description

AudioProcessing library from the webrtc.org codebase

Added to portage

2026-07-24

xvfbwrapper - 0.2.29
Ebuild name:

dev-python/xvfbwrapper-0.2.29

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2026-07-24

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