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:

90779

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-11-28
AusweisApp - 2.6.3-r1
Ebuild name:

sys-auth/AusweisApp-2.6.3-r1

Description

Official authentication app for German ID cards and residence permits

Added to portage

2026-11-28

android-studio - 2026.2.2.11
Ebuild name:

dev-util/android-studio-2026.2.2.11

Description

Android development environment based on IntelliJ IDEA

Added to portage

2026-11-28

anki - 26.09.4
Ebuild name:

app-misc/anki-26.09.4

Description

Smart spaced repetition flashcard program

Added to portage

2026-11-28

aqualung - 2.1
Ebuild name:

media-sound/aqualung-2.1

Description

Music player for a wide range of formats designed for gapless playback

Added to portage

2026-11-28

asyncssh - 2.24.2
Ebuild name:

dev-python/asyncssh-2.24.2

Description

Asynchronous SSHv2 client and server library

Added to portage

2026-11-28

awscli - 2.42.5
Ebuild name:

app-admin/awscli-2.42.5

Description

Universal Command Line Environment for AWS

Added to portage

2026-11-28

berkeleydb - 18.1.20
Ebuild name:

dev-python/berkeleydb-18.1.20

Description

Python bindings for Oracle Berkeley DB

Added to portage

2026-11-28

boto3 - 1.44.13
Ebuild name:

dev-python/boto3-1.44.13

Description

The AWS SDK for Python

Added to portage

2026-11-28

botocore - 1.44.13
Ebuild name:

dev-python/botocore-1.44.13

Description

Low-level, data-driven core of boto 3

Added to portage

2026-11-28

colpack - 1.0.10_p20190621-r1
Ebuild name:

sci-libs/colpack-1.0.10_p20190621-r1

Description

C++ algorithms for specialized vertex coloring problems

Added to portage

2026-11-28

conky - 1.26.3
Ebuild name:

app-admin/conky-1.26.3

Description

An advanced, highly configurable system monitor for X

Added to portage

2026-11-28

deepmerge - 4.0.1
Ebuild name:

dev-python/deepmerge-4.0.1

Description

Tools to handle merging of nested data structures in python

Added to portage

2026-11-28

dracut - 113
Ebuild name:

sys-kernel/dracut-113

Description

Generic initramfs generation tool

Added to portage

2026-11-28

element - 1.12.36
Ebuild name:

www-apps/element-1.12.36

Description

A glossy Matrix collaboration client for the web

Added to portage

2026-11-28

filelock - 4.3.2
Ebuild name:

dev-python/filelock-4.3.2

Description

A platform independent file lock for Python

Added to portage

2026-11-28

flatpak - 1.18.6
Ebuild name:

sys-apps/flatpak-1.18.6

Description

Linux application sandboxing and distribution framework

Added to portage

2026-11-28

grig - 0.9.1
Ebuild name:

media-radio/grig-0.9.1

Description

A tool for controlling amateur radios

Added to portage

2026-11-28

hl-todo - 3.9.5
Ebuild name:

app-emacs/hl-todo-3.9.5

Description

Highlight TODO and similar keywords in comments and strings

Added to portage

2026-11-28

howm - 1.5.0
Ebuild name:

app-emacs/howm-1.5.0

Description

Note-taking tool on Emacs

Added to portage

2026-11-28

ht - 2.3
Ebuild name:

app-emacs/ht-2.3

Description

The missing hash table library for Emacs

Added to portage

2026-11-28

hypothesis - 6.170.23
Ebuild name:

dev-python/hypothesis-6.170.23

Description

A library for property based testing

Added to portage

2026-11-28

imageio-ffmpeg - 0.8.2
Ebuild name:

dev-python/imageio-ffmpeg-0.8.2

Description

FFMPEG wrapper for Python

Added to portage

2026-11-28

jupyter-builder - 1.3.1
Ebuild name:

dev-python/jupyter-builder-1.3.1

Description

JupyterLab build tools

Added to portage

2026-11-28

libtmux - 0.69.0
Ebuild name:

dev-python/libtmux-0.69.0

Description

Typed library that provides an ORM wrapper for tmux, a terminal multiplex

Added to portage

2026-11-28

lutris - 0.5.23
Ebuild name:

games-util/lutris-0.5.23

Description

An open source gaming platform for GNU/Linux

Added to portage

2026-11-28

lxml - 6.2.0
Ebuild name:

dev-python/lxml-6.2.0

Description

A Pythonic binding for the libxml2 and libxslt libraries

Added to portage

2026-11-28

mac - 13.50
Ebuild name:

media-sound/mac-13.50

Description

Monkey's Audio Codecs

Added to portage

2026-11-28

maven-bin - 3.10.2
Ebuild name:

dev-java/maven-bin-3.10.2

Description

Project Management and Comprehension Tool for Java

Added to portage

2026-11-28

ngx-fancyindex - 0.6.0
Ebuild name:

www-nginx/ngx-fancyindex-0.6.0

Description

Fancy indexes module for the NGINX web server

Added to portage

2026-11-28

openjdk - 28_alpha26
Ebuild name:

dev-java/openjdk-28_alpha26

Description

Open source implementation of the Java programming language

Added to portage

2026-11-28

openjdk-bin - 11.0.33.1_p1
Ebuild name:

dev-java/openjdk-bin-11.0.33.1_p1

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-11-28

openjdk-bin - 28_alpha26
Ebuild name:

dev-java/openjdk-bin-28_alpha26

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-11-28

openjdk-bin - 8.514_p01
Ebuild name:

dev-java/openjdk-bin-8.514_p01

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2026-11-28

platformdirs - 4.14.9
Ebuild name:

dev-python/platformdirs-4.14.9

Description

A small Python module for determining appropriate platform-specific

Added to portage

2026-11-28

pshs - 0.4.5
Ebuild name:

www-servers/pshs-0.4.5

Description

Pretty small HTTP server -- a command-line tool to share files

Added to portage

2026-11-28

python-discovery - 1.9.8
Ebuild name:

dev-python/python-discovery-1.9.8

Description

Python interpreter discovery

Added to portage

2026-11-28

qtbase - 6.11.3-r2
Ebuild name:

dev-qt/qtbase-6.11.3-r2

Description

Cross-platform application development framework

Added to portage

2026-11-28

qtbase - 6.12.1-r1
Ebuild name:

dev-qt/qtbase-6.12.1-r1

Description

Cross-platform application development framework

Added to portage

2026-11-28

spyder - 6.1.9
Ebuild name:

dev-python/spyder-6.1.9

Description

The Scientific Python Development Environment

Added to portage

2026-11-28

spyder-kernels - 3.1.7
Ebuild name:

dev-python/spyder-kernels-3.1.7

Description

Kernels used by spyder on its ipython console

Added to portage

2026-11-28

svglib - 2.5.0
Ebuild name:

dev-python/svglib-2.5.0

Description

Pure-Python library for reading and converting SVG

Added to portage

2026-11-28

texttable - 1.7.4
Ebuild name:

dev-python/texttable-1.7.4

Description

Module to create simple ASCII tables

Added to portage

2026-11-28

tox - 4.67.17
Ebuild name:

dev-python/tox-4.67.17

Description

virtualenv-based automation of test activities

Added to portage

2026-11-28

tsm - 8.2.3.0
Ebuild name:

app-backup/tsm-8.2.3.0

Description

IBM Storage Protect (former Tivoli Storage Manager) Backup/Archive Client, A

Added to portage

2026-11-28

virt-firmware - 26.10
Ebuild name:

app-emulation/virt-firmware-26.10

Description

Tools for ovmf/armvirt firmware volumes

Added to portage

2026-11-28

virtualenv - 21.15.14
Ebuild name:

dev-python/virtualenv-21.15.14

Description

Virtual Python Environment builder

Added to portage

2026-11-28

vpl-gpu-rt - 26.4.2
Ebuild name:

media-libs/vpl-gpu-rt-26.4.2

Description

Intel Video Processing Library GPU Runtime

Added to portage

2026-11-28

wine-vanilla - 11.23
Ebuild name:

app-emulation/wine-vanilla-11.23

Description

Free implementation of Windows(tm) on Unix, without external patch

Added to portage

2026-11-28

zotero-bin - 10.0.8
Ebuild name:

app-text/zotero-bin-10.0.8

Description

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

Added to portage

2026-11-28

2026-11-27
backports-zstd - 1.8.1
Ebuild name:

dev-python/backports-zstd-1.8.1

Description

Backport of PEP-784 adding Zstandard to the standard library

Added to portage

2026-11-27

dxvk - 3.2
Ebuild name:

app-emulation/dxvk-3.2

Description

Vulkan-based implementation of D3D9, D3D10 and D3D11 for Linux / Wine

Added to portage

2026-11-27

ggml - 1.1.1
Ebuild name:

sci-ml/ggml-1.1.1

Description

Tensor library for machine learning

Added to portage

2026-11-27

git-credential-manager - 3.1.0
Ebuild name:

dev-vcs/git-credential-manager-3.1.0

Description

Secure Git credential storage supporing GitHub, Azure Repos, a

Added to portage

2026-11-27

httpx - 0.29.0
Ebuild name:

dev-python/httpx-0.29.0

Description

Fully-featured HTTP client which provides sync and async APIs

Added to portage

2026-11-27

ig - 0.58.1
Ebuild name:

app-admin/ig-0.58.1

Description

Tools and framework for data collection and system inspection using eBPF

Added to portage

2026-11-27

keystoneauth1 - 5.20.0
Ebuild name:

dev-python/keystoneauth1-5.20.0

Description

This package contains tools for authenticating to an OpenStack-base

Added to portage

2026-11-27

kirigami - 1.2.4
Ebuild name:

app-emacs/kirigami-1.2.4

Description

A unified method to fold and unfold text

Added to portage

2026-11-27

libsquish - 1.15.2
Ebuild name:

media-libs/libsquish-1.15.2

Description

Library for compressing images with the DXT/S3TC standard

Added to portage

2026-11-27

logswan - 2.1.18
Ebuild name:

www-misc/logswan-2.1.18

Description

Fast Web log analyzer using probabilistic data structures

Added to portage

2026-11-27

lxml-html-clean - 0.4.7
Ebuild name:

dev-python/lxml-html-clean-0.4.7

Description

Separate project for HTML cleaning functionalities copied from lxm

Added to portage

2026-11-27

mkl - 2026.2.2.7
Ebuild name:

sci-libs/mkl-2026.2.2.7

Description

Intel Math Kernel Library

Added to portage

2026-11-27

mosquitto - 2.1.4
Ebuild name:

app-misc/mosquitto-2.1.4

Description

An Open Source MQTT Broker

Added to portage

2026-11-27

mosquitto - 9999
Ebuild name:

app-misc/mosquitto-9999

Description

An Open Source MQTT Broker

Added to portage

2026-11-27

nuitka - 4.4
Ebuild name:

dev-python/nuitka-4.4

Description

Python to native compiler

Added to portage

2026-11-27

openrazer - 3.12.5
Ebuild name:

sys-apps/openrazer-3.12.5

Description

Drivers and user-space daemon to control Razer devices on GNU/Linux

Added to portage

2026-11-27

openstacksdk - 4.26.0
Ebuild name:

dev-python/openstacksdk-4.26.0

Description

A collection of libraries for building applications to work with Ope

Added to portage

2026-11-27

osc-lib - 4.7.1
Ebuild name:

dev-python/osc-lib-4.7.1

Description

A package of common support modules for writing OSC plugins

Added to portage

2026-11-27

pikepdf - 10.18.3
Ebuild name:

dev-python/pikepdf-10.18.3

Description

Python library to work with pdf files based on qpdf

Added to portage

2026-11-27

pyotp - 2.12.2
Ebuild name:

dev-python/pyotp-2.12.2

Description

PyOTP is a Python library for generating and verifying one-time passwords

Added to portage

2026-11-27

pypdf - 7.2.0
Ebuild name:

dev-python/pypdf-7.2.0

Description

Python library to work with PDF files

Added to portage

2026-11-27

pyrate-limiter - 4.6.0
Ebuild name:

dev-python/pyrate-limiter-4.6.0

Description

Python Rate-Limiter using Leaky-Bucket Algorimth Family

Added to portage

2026-11-27

safeeyes - 3.6.3
Ebuild name:

x11-misc/safeeyes-3.6.3

Description

Linux alternative to EyeLeo

Added to portage

2026-11-27

semver - 3.2.0
Ebuild name:

dev-python/semver-3.2.0

Description

A Python module for semantic versioning

Added to portage

2026-11-27

shell-maker - 0.98.5
Ebuild name:

app-emacs/shell-maker-0.98.5

Description

Interaction mode for making comint shells for GNU Emacs

Added to portage

2026-11-27

tifffile - 2026.11.26
Ebuild name:

dev-python/tifffile-2026.11.26

Description

Read and write TIFF files

Added to portage

2026-11-27

translate-toolkit - 3.21.0
Ebuild name:

dev-python/translate-toolkit-3.21.0

Description

Toolkit to convert between many translation formats

Added to portage

2026-11-27

typer - 0.29.3
Ebuild name:

dev-python/typer-0.29.3

Description

Build great CLIs. Easy to code. Based on Python type hints

Added to portage

2026-11-27

xcffib - 1.14.0
Ebuild name:

dev-python/xcffib-1.14.0

Description

A drop in replacement for xpyb, an XCB python binding

Added to portage

2026-11-27

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