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:

86528

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-04
forbiddenfruit - 0.1.4-r1
Ebuild name:

dev-python/forbiddenfruit-0.1.4-r1

Description

Patch built-in Python objects

Added to portage

2026-07-04

intellij-idea - 2026.1.4
Ebuild name:

dev-util/intellij-idea-2026.1.4

Description

A complete toolset for web, mobile and enterprise development

Added to portage

2026-07-04

libmemcached-awesome - 1.1.4-r1
Ebuild name:

dev-libs/libmemcached-awesome-1.1.4-r1

Description

a C/C++ memcached client library

Added to portage

2026-07-04

mod_wsgi - 6.0.5
Ebuild name:

www-apache/mod_wsgi-6.0.5

Description

An Apache2 module for running Python WSGI applications

Added to portage

2026-07-04

pylibmc - 1.6.3-r3
Ebuild name:

dev-python/pylibmc-1.6.3-r3

Description

Libmemcached wrapper written as a Python extension

Added to portage

2026-07-04

pyquery - 2.0.1-r1
Ebuild name:

dev-python/pyquery-2.0.1-r1

Description

A jQuery-like library for python

Added to portage

2026-07-04

pytest-expect - 1.1.0-r3
Ebuild name:

dev-python/pytest-expect-1.1.0-r3

Description

pytest plugin that stores test expectations by saving the set of

Added to portage

2026-07-04

virtualbox - 7.2.12
Ebuild name:

app-emulation/virtualbox-7.2.12

Description

Family of powerful x86 virtualization products for enterprise and h

Added to portage

2026-07-04

virtualbox-additions - 7.2.12
Ebuild name:

app-emulation/virtualbox-additions-7.2.12

Description

CD image containing guest additions for VirtualBox

Added to portage

2026-07-04

virtualbox-extpack-oracle - 7.2.12
Ebuild name:

app-emulation/virtualbox-extpack-oracle-7.2.12

Description

PUEL extensions for VirtualBox

Added to portage

2026-07-04

virtualbox-guest-additions - 7.2.12
Ebuild name:

app-emulation/virtualbox-guest-additions-7.2.12

Description

VirtualBox kernel modules and user-space tools for

Added to portage

2026-07-04

virtualbox-guest-modules - 7.2.12
Ebuild name:

app-emulation/virtualbox-guest-modules-7.2.12

Description

Kernel Modules for Virtualbox Guest Additions

Added to portage

2026-07-04

virtualbox-kvm - 7.2.12_pre20260201
Ebuild name:

app-emulation/virtualbox-kvm-7.2.12_pre20260201

Description

Family of powerful x86 virtualization products for

Added to portage

2026-07-04

virtualbox-modules - 7.2.12
Ebuild name:

app-emulation/virtualbox-modules-7.2.12

Description

Kernel Modules for Virtualbox

Added to portage

2026-07-04

zlib-ng - 1.0.0-r1
Ebuild name:

dev-python/zlib-ng-1.0.0-r1

Description

Drop-in replacement for zlib and gzip modules using zlib-ng

Added to portage

2026-07-04

zope-testing - 6.2
Ebuild name:

dev-python/zope-testing-6.2

Description

Zope testing helpers

Added to portage

2026-07-04

2026-07-03
awkward - 2.10.0
Ebuild name:

dev-python/awkward-2.10.0

Description

Manipulate JSON-like data with NumPy-like idioms

Added to portage

2026-07-03

awkward-cpp - 54
Ebuild name:

dev-python/awkward-cpp-54

Description

CPU kernels and compiled extensions for Awkward Array

Added to portage

2026-07-03

awscli - 1.45.40
Ebuild name:

app-admin/awscli-1.45.40

Description

Universal Command Line Environment for AWS

Added to portage

2026-07-03

bitwarden-desktop-bin - 2026.6.0
Ebuild name:

app-admin/bitwarden-desktop-bin-2026.6.0

Description

Bitwarden password manager desktop client

Added to portage

2026-07-03

boto3 - 1.43.40
Ebuild name:

dev-python/boto3-1.43.40

Description

The AWS SDK for Python

Added to portage

2026-07-03

botocore - 1.43.40
Ebuild name:

dev-python/botocore-1.43.40

Description

Low-level, data-driven core of boto 3

Added to portage

2026-07-03

candy - 6.1.8
Ebuild name:

net-vpn/candy-6.1.8

Description

A reliable, low-latency, and anti-censorship virtual private network

Added to portage

2026-07-03

certbot - 5.6.0
Ebuild name:

app-crypt/certbot-5.6.0

Description

Let's Encrypt client to automate deployment of X.509 certificates

Added to portage

2026-07-03

clamav - 0.103.12-r5
Ebuild name:

app-antivirus/clamav-0.103.12-r5

Description

Clam Anti-Virus Scanner

Added to portage

2026-07-03

coverage - 7.15.0
Ebuild name:

dev-python/coverage-7.15.0

Description

Code coverage measurement for Python

Added to portage

2026-07-03

croniter - 6.2.3
Ebuild name:

dev-python/croniter-6.2.3

Description

Python module to provide iteration for datetime object

Added to portage

2026-07-03

derper - 1.100.0
Ebuild name:

net-vpn/derper-1.100.0

Description

DERP server for tailscale network

Added to portage

2026-07-03

dune - 3.23.1
Ebuild name:

dev-ml/dune-3.23.1

Description

A composable build system for OCaml

Added to portage

2026-07-03

faudio - 26.07
Ebuild name:

app-emulation/faudio-26.07

Description

Accuracy-focused XAudio reimplementation for open platforms

Added to portage

2026-07-03

filezilla - 3.70.6
Ebuild name:

net-ftp/filezilla-3.70.6

Description

FTP client with lots of useful features and an intuitive interface

Added to portage

2026-07-03

fitsio - 1.4.0
Ebuild name:

dev-python/fitsio-1.4.0

Description

Python library to read from and write to FITS files

Added to portage

2026-07-03

framework_tool - 0.6.5
Ebuild name:

app-laptop/framework_tool-0.6.5

Description

Tool to control Framework Computer systems

Added to portage

2026-07-03

fzssh - 1.3.0
Ebuild name:

net-libs/fzssh-1.3.0

Description

A SSH/SFTP library based on libfilezilla

Added to portage

2026-07-03

itsdangerous - 2.2.0-r1
Ebuild name:

dev-python/itsdangerous-2.2.0-r1

Description

Various helpers to pass trusted data to untrusted environments and

Added to portage

2026-07-03

libfilezilla - 0.56.1
Ebuild name:

dev-libs/libfilezilla-0.56.1

Description

C++ library offering some basic functionality for platform-independent

Added to portage

2026-07-03

libmd - 1.2.0
Ebuild name:

app-crypt/libmd-1.2.0

Description

Message Digest functions from BSD systems

Added to portage

2026-07-03

libmodbus - 3.2.0
Ebuild name:

dev-libs/libmodbus-3.2.0

Description

Modbus library which supports RTU communication over a serial line or a TC

Added to portage

2026-07-03

libscrypt - 1.22-r3
Ebuild name:

app-crypt/libscrypt-1.22-r3

Description

Shared library to implement the scrypt algorithm

Added to portage

2026-07-03

libscrypt - 1.22-r3
Ebuild name:

app-crypt/libscrypt-1.22-r3

Description

Shared library to implement the scrypt algorithm

Added to portage

2026-07-03

libupnp - 2.0.2
Ebuild name:

net-libs/libupnp-2.0.2

Description

An Portable Open Source UPnP Development Kit

Added to portage

2026-07-03

lsp-treemacs - 0.5
Ebuild name:

app-emacs/lsp-treemacs-0.5

Description

Integration between lsp-mode and treemacs

Added to portage

2026-07-03

nattka - 0.4.3
Ebuild name:

app-portage/nattka-0.4.3

Description

A New Arch Tester Toolkit -- open-source stable-bot replacement

Added to portage

2026-07-03

nerdctl - 2.3.4
Ebuild name:

app-containers/nerdctl-2.3.4

Description

Docker-compatible CLI for containerd, with support for Compose

Added to portage

2026-07-03

netifrc - 0.7.13-r1
Ebuild name:

net-misc/netifrc-0.7.13-r1

Description

Gentoo Network Interface Management Scripts

Added to portage

2026-07-03

netifrc - 0.7.14-r1
Ebuild name:

net-misc/netifrc-0.7.14-r1

Description

Gentoo Network Interface Management Scripts

Added to portage

2026-07-03

openpgp-keys-acl - 20260702
Ebuild name:

sec-keys/openpgp-keys-acl-20260702

Description

OpenPGP keys used by sys-apps/acl

Added to portage

2026-07-03

openrc - 0.63.3
Ebuild name:

sys-apps/openrc-0.63.3

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2026-07-03

pjproject - 2.17-r1
Ebuild name:

net-libs/pjproject-2.17-r1

Description

Open source SIP, Media, and NAT Traversal Library

Added to portage

2026-07-03

puppet - 8.10.0-r1
Ebuild name:

app-admin/puppet-8.10.0-r1

Description

A system automation and configuration management software

Added to portage

2026-07-03

pycargoebuild - 0.16.0
Ebuild name:

app-portage/pycargoebuild-0.16.0

Description

A generator for Rust/Cargo ebuilds written in Python

Added to portage

2026-07-03

pymdown-extensions - 11.0.1
Ebuild name:

dev-python/pymdown-extensions-11.0.1

Description

Extensions for Python Markdown

Added to portage

2026-07-03

python-ironicclient - 6.2.0
Ebuild name:

dev-python/python-ironicclient-6.2.0

Description

Python bindings for the Ironic API

Added to portage

2026-07-03

python-utils - 4.0.0
Ebuild name:

dev-python/python-utils-4.0.0

Description

Collection of small Python functions & classes

Added to portage

2026-07-03

qmmp - 2.3.3
Ebuild name:

media-sound/qmmp-2.3.3

Description

Qt-based audio player with winamp/xmms skins support

Added to portage

2026-07-03

qmmp-plugin-pack - 2.3.1
Ebuild name:

media-plugins/qmmp-plugin-pack-2.3.1

Description

Set of extra plugins for Qmmp

Added to portage

2026-07-03

qpdfview - 0.5_p20260701
Ebuild name:

app-text/qpdfview-0.5_p20260701

Description

Tabbed document viewer

Added to portage

2026-07-03

rar - 7.23
Ebuild name:

app-arch/rar-7.23

Description

RAR compressor/uncompressor

Added to portage

2026-07-03

slack - 4.50.143
Ebuild name:

net-im/slack-4.50.143

Description

Team collaboration tool

Added to portage

2026-07-03

smartdns - 48.2
Ebuild name:

net-dns/smartdns-48.2

Description

A local DNS server returns the fastest access results

Added to portage

2026-07-03

stevedore - 5.9.0
Ebuild name:

dev-python/stevedore-5.9.0

Description

Manage dynamic plugins for Python applications

Added to portage

2026-07-03

subrandr - 1.4.0
Ebuild name:

media-libs/subrandr-1.4.0

Description

Subtitle rendering library for rendering non-ASS subtitles

Added to portage

2026-07-03

ttyrec - 1.2.0.0
Ebuild name:

app-misc/ttyrec-1.2.0.0

Description

ttyrec provides tools to record and replay a terminal session

Added to portage

2026-07-03

typing-extensions - 4.16.0
Ebuild name:

dev-python/typing-extensions-4.16.0

Description

Backported and Experimental Type Hints for Python 3.7+

Added to portage

2026-07-03

unrar - 7.2.7
Ebuild name:

app-arch/unrar-7.2.7

Description

Uncompress rar files

Added to portage

2026-07-03

wcmatch - 10.2.1
Ebuild name:

dev-python/wcmatch-10.2.1

Description

Wildcard/glob file name matcher

Added to portage

2026-07-03

yq-go - 4.53.3
Ebuild name:

app-misc/yq-go-4.53.3

Description

yq is a lightweight and portable command-line YAML, JSON and XML processor

Added to portage

2026-07-03

zsh-completions - 0.36.0
Ebuild name:

app-shells/zsh-completions-0.36.0

Description

Additional completion definitions for Zsh

Added to portage

2026-07-03

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