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:

88038

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-31
iosevka - 34.8.1
Ebuild name:

media-fonts/iosevka-34.8.1

Description

Slender typeface for code, from code

Added to portage

2026-08-31

lyskom-elisp-client - 0.48_p20200226
Ebuild name:

app-emacs/lyskom-elisp-client-0.48_p20200226

Description

Elisp client for the LysKOM conference system

Added to portage

2026-08-31

transformers - 5.16.1
Ebuild name:

sci-ml/transformers-5.16.1

Description

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

Added to portage

2026-08-31

zoxide - 0.10.0
Ebuild name:

app-shells/zoxide-0.10.0

Description

A smarter cd command for your terminal

Added to portage

2026-08-31

2026-08-30
ansi2html - 1.9.3
Ebuild name:

dev-python/ansi2html-1.9.3

Description

Convert text with ANSI color codes to HTML

Added to portage

2026-08-30

bcachefs-tools - 1.39.3
Ebuild name:

sys-fs/bcachefs-tools-1.39.3

Description

Tools for bcachefs

Added to portage

2026-08-30

bitwarden-desktop-bin - 2026.8.0
Ebuild name:

app-admin/bitwarden-desktop-bin-2026.8.0

Description

Bitwarden password manager desktop client

Added to portage

2026-08-30

boost - 1.92.0
Ebuild name:

dev-libs/boost-1.92.0

Description

Boost Libraries for C++

Added to portage

2026-08-30

bubblewrap - 0.12.0
Ebuild name:

sys-apps/bubblewrap-0.12.0

Description

Unprivileged sandboxing tool, namespaces-powered chroot-like solution

Added to portage

2026-08-30

doggo - 1.3.0
Ebuild name:

net-dns/doggo-1.3.0

Description

Command-line DNS Client for Humans

Added to portage

2026-08-30

dovecot - 2.4.5
Ebuild name:

net-mail/dovecot-2.4.5

Description

An IMAP and POP3 server written with security primarily in mind

Added to portage

2026-08-30

environs - 15.2.0
Ebuild name:

dev-python/environs-15.2.0

Description

Python library for simplified environment variable parsing

Added to portage

2026-08-30

feh - 3.12.4
Ebuild name:

media-gfx/feh-3.12.4

Description

A fast, lightweight imageviewer using imlib2

Added to portage

2026-08-30

filezilla - 3.71.1
Ebuild name:

net-ftp/filezilla-3.71.1

Description

FTP client with lots of useful features and an intuitive interface

Added to portage

2026-08-30

gcc - 13.4.1_p20260826
Ebuild name:

sys-devel/gcc-13.4.1_p20260826

Description

The GNU Compiler Collection

Added to portage

2026-08-30

gcc - 14.4.1_p20260827
Ebuild name:

sys-devel/gcc-14.4.1_p20260827

Description

The GNU Compiler Collection

Added to portage

2026-08-30

gcc - 15.3.1_p20260828
Ebuild name:

sys-devel/gcc-15.3.1_p20260828

Description

The GNU Compiler Collection

Added to portage

2026-08-30

gcc - 16.2.1_p20260829
Ebuild name:

sys-devel/gcc-16.2.1_p20260829

Description

The GNU Compiler Collection

Added to portage

2026-08-30

gentoolkit - 0.8.1
Ebuild name:

app-portage/gentoolkit-0.8.1

Description

Collection of administration scripts for Gentoo

Added to portage

2026-08-30

gitea - 1.27.3
Ebuild name:

www-apps/gitea-1.27.3

Description

A painless self-hosted Git service

Added to portage

2026-08-30

hypothesis - 6.166.0
Ebuild name:

dev-python/hypothesis-6.166.0

Description

A library for property based testing

Added to portage

2026-08-30

incus - 7.4
Ebuild name:

app-containers/incus-7.4

Description

Modern, secure and powerful system container and virtual machine manager

Added to portage

2026-08-30

joserfc - 1.7.5
Ebuild name:

dev-python/joserfc-1.7.5

Description

A Python library for JOSE RFCs JWS, JWE, JWK, JWA, JWT

Added to portage

2026-08-30

lego - 5.4.0
Ebuild name:

app-crypt/lego-5.4.0

Description

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

Added to portage

2026-08-30

linkify-it-py - 2.2.0
Ebuild name:

dev-python/linkify-it-py-2.2.0

Description

Links recognition library with full unicode support

Added to portage

2026-08-30

lmdb - 1.0.1-r3
Ebuild name:

dev-db/lmdb-1.0.1-r3

Description

An ultra-fast, ultra-compact key-value embedded data store

Added to portage

2026-08-30

luajit - 2.1.1787165859
Ebuild name:

dev-lang/luajit-2.1.1787165859

Description

Just-In-Time Compiler for the Lua programming language

Added to portage

2026-08-30

m-buffer - 0.16.1
Ebuild name:

app-emacs/m-buffer-0.16.1

Description

List Oriented Buffer Operations for Emacs

Added to portage

2026-08-30

micawber - 0.7.1
Ebuild name:

dev-python/micawber-0.7.1

Description

A small library for extracting rich content from urls

Added to portage

2026-08-30

patsy - 1.0.3
Ebuild name:

dev-python/patsy-1.0.3

Description

Python module to describe statistical models and design matrices

Added to portage

2026-08-30

pdm - 2.29.0
Ebuild name:

dev-python/pdm-2.29.0

Description

Python package and dependency manager supporting the latest PEP standards

Added to portage

2026-08-30

pkgcore - 0.12.41
Ebuild name:

sys-apps/pkgcore-0.12.41

Description

a framework for package management

Added to portage

2026-08-30

poetry - 2.4.2
Ebuild name:

dev-python/poetry-2.4.2

Description

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

Added to portage

2026-08-30

pylint - 4.0.8
Ebuild name:

dev-python/pylint-4.0.8

Description

Python code static checker

Added to portage

2026-08-30

pyzotero - 1.15.0
Ebuild name:

dev-python/pyzotero-1.15.0

Description

A Python client for the Zotero API

Added to portage

2026-08-30

quart - 0.23.1
Ebuild name:

dev-python/quart-0.23.1

Description

A Python ASGI web microframework with the same API as Flask

Added to portage

2026-08-30

quart-trio - 0.12.0-r1
Ebuild name:

dev-python/quart-trio-0.12.0-r1

Description

A Quart extension to provide trio support

Added to portage

2026-08-30

rust-parallel - 1.24.0
Ebuild name:

sys-process/rust-parallel-1.24.0

Description

Fast command line app to run commands in parallel

Added to portage

2026-08-30

skk-jisyo - 202605
Ebuild name:

app-i18n/skk-jisyo-202605

Description

Jisyo (dictionary) files for the SKK Japanese-input software

Added to portage

2026-08-30

tuned - 2.28.0
Ebuild name:

sys-apps/tuned-2.28.0

Description

Daemon for monitoring and adaptive tuning of system devices

Added to portage

2026-08-30

websocket-client - 1.9.1
Ebuild name:

dev-python/websocket-client-1.9.1

Description

WebSocket client for python with hybi13 support

Added to portage

2026-08-30

zeroconf - 0.151.2
Ebuild name:

dev-python/zeroconf-0.151.2

Description

Pure Python Multicast DNS Service Discovery Library (Bonjour/Avahi comp

Added to portage

2026-08-30

zotero-bin - 10.0.1
Ebuild name:

app-text/zotero-bin-10.0.1

Description

Helps you collect, organize, cite, and share your research sources

Added to portage

2026-08-30

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