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:

85683

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-06-08
coredns - 1.14.3
Ebuild name:

net-dns/coredns-1.14.3

Description

CoreDNS is a DNS server that chains plugins

Added to portage

2026-06-08

2026-06-07
ParmEd - 4.3.1
Ebuild name:

sci-chemistry/ParmEd-4.3.1

Description

Parameter and topology file editor and molecular mechanical simulator en

Added to portage

2026-06-07

flask-cors - 6.0.3
Ebuild name:

dev-python/flask-cors-6.0.3

Description

A Flask extension for Cross Origin Resource Sharing (CORS)

Added to portage

2026-06-07

gap - 4.16.0
Ebuild name:

sci-mathematics/gap-4.16.0

Description

System for computational discrete algebra (core functionality)

Added to portage

2026-06-07

gcc - 15.2.1_p20260605
Ebuild name:

sys-devel/gcc-15.2.1_p20260605

Description

The GNU Compiler Collection

Added to portage

2026-06-07

gcc - 16.1.1_p20260606
Ebuild name:

sys-devel/gcc-16.1.1_p20260606

Description

The GNU Compiler Collection

Added to portage

2026-06-07

gopls - 0.22.0
Ebuild name:

dev-go/gopls-0.22.0

Description

Added to portage

2026-06-07

highs - 1.14.0-r3
Ebuild name:

sci-mathematics/highs-1.14.0-r3

Description

Modern solver for linear, quadratic, and mixed-integer programs

Added to portage

2026-06-07

hydrus - 670
Ebuild name:

media-gfx/hydrus-670

Description

A booru-like media organizer for the desktop

Added to portage

2026-06-07

kid3 - 3.10.0
Ebuild name:

media-sound/kid3-3.10.0

Description

Simple tag editor based on Qt

Added to portage

2026-06-07

kitty - 0.47.2
Ebuild name:

x11-terms/kitty-0.47.2

Description

Fast, feature-rich, GPU-based terminal

Added to portage

2026-06-07

kitty-shell-integration - 0.47.2
Ebuild name:

x11-terms/kitty-shell-integration-0.47.2

Description

Shell integration scripts for kitty, a GPU-based terminal

Added to portage

2026-06-07

kitty-terminfo - 0.47.2
Ebuild name:

x11-terms/kitty-terminfo-0.47.2

Description

Terminfo for kitty, a GPU-based terminal emulator

Added to portage

2026-06-07

less - 704
Ebuild name:

sys-apps/less-704

Description

Excellent text file viewer

Added to portage

2026-06-07

logrotate - 3.22.0-r1
Ebuild name:

app-admin/logrotate-3.22.0-r1

Description

Rotates, compresses, and mails system logs

Added to portage

2026-06-07

logrotate - 9999
Ebuild name:

app-admin/logrotate-9999

Description

Rotates, compresses, and mails system logs

Added to portage

2026-06-07

mapserver - 8.6.4
Ebuild name:

sci-geosciences/mapserver-8.6.4

Description

Development environment for building spatially enabled webapps

Added to portage

2026-06-07

markdown-mode - 2.8
Ebuild name:

app-emacs/markdown-mode-2.8

Description

Major mode for editing Markdown-formatted text files

Added to portage

2026-06-07

mastodon - 2.0.7
Ebuild name:

app-emacs/mastodon-2.0.7

Description

Emacs client for Mastodon, federated microblogging social network

Added to portage

2026-06-07

moto - 5.2.2
Ebuild name:

dev-python/moto-5.2.2

Description

Mock library for boto

Added to portage

2026-06-07

mutter - 49.6
Ebuild name:

x11-wm/mutter-49.6

Description

GNOME compositing window manager based on Clutter

Added to portage

2026-06-07

phpBB - 3.3.17
Ebuild name:

www-apps/phpBB-3.3.17

Description

An open-source PHP-based bulletin board package

Added to portage

2026-06-07

plplot - 5.15.0_p15-r2
Ebuild name:

sci-libs/plplot-5.15.0_p15-r2

Description

Multi-language scientific plotting library

Added to portage

2026-06-07

propka - 3.5.1-r1
Ebuild name:

sci-chemistry/propka-3.5.1-r1

Description

pKa-value prediction of ionizable groups in protein and protein-ligan

Added to portage

2026-06-07

protobuf-go - 1.36.11
Ebuild name:

dev-go/protobuf-go-1.36.11

Description

Go support for Google's protocol buffers

Added to portage

2026-06-07

pysam - 0.24.0
Ebuild name:

sci-biology/pysam-0.24.0

Description

Python interface for the SAM/BAM sequence alignment and mapping format

Added to portage

2026-06-07

pysiril - 0.0.17
Ebuild name:

sci-astronomy/pysiril-0.0.17

Description

Python library to interface Python to a SiriL script

Added to portage

2026-06-07

rebar - 3.27.0
Ebuild name:

dev-util/rebar-3.27.0

Description

A sophisticated build-tool for Erlang projects that follows OTP principles

Added to portage

2026-06-07

sh - 2.2.4
Ebuild name:

dev-python/sh-2.2.4

Description

Python subprocess interface

Added to portage

2026-06-07

shotwell - 0.32.16
Ebuild name:

media-gfx/shotwell-0.32.16

Description

Open source photo manager for GNOME

Added to portage

2026-06-07

soundfile - 0.14.0
Ebuild name:

dev-python/soundfile-0.14.0

Description

audio library based on libsndfile, CFFI and NumPy

Added to portage

2026-06-07

structlog - 26.1.0
Ebuild name:

dev-python/structlog-26.1.0

Description

Structured Logging for Python

Added to portage

2026-06-07

zensical - 0.0.41
Ebuild name:

dev-python/zensical-0.0.41

Description

A modern static site generator by the Material for MkDocs team

Added to portage

2026-06-07

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