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:

84582

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-04-24
chrome-binary-plugins - 147.0.7727.116
Ebuild name:

www-plugins/chrome-binary-plugins-147.0.7727.116

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2026-04-24

chrome-binary-plugins - 148.0.7778.56_beta
Ebuild name:

www-plugins/chrome-binary-plugins-148.0.7778.56_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2026-04-24

chromedriver-bin - 147.0.7727.116
Ebuild name:

www-apps/chromedriver-bin-147.0.7727.116

Description

WebDriver for Chrome

Added to portage

2026-04-24

gcc - 13.4.1_p20260422
Ebuild name:

sys-devel/gcc-13.4.1_p20260422

Description

The GNU Compiler Collection

Added to portage

2026-04-24

google-chrome - 147.0.7727.116
Ebuild name:

www-client/google-chrome-147.0.7727.116

Description

The web browser from Google

Added to portage

2026-04-24

google-chrome-beta - 148.0.7778.56
Ebuild name:

www-client/google-chrome-beta-148.0.7778.56

Description

The web browser from Google

Added to portage

2026-04-24

kmscon - 9.3.4
Ebuild name:

sys-apps/kmscon-9.3.4

Description

KMS/DRM based virtual Console Emulator

Added to portage

2026-04-24

libtsm - 4.5.0
Ebuild name:

dev-libs/libtsm-4.5.0

Description

Terminal Emulator State Machine

Added to portage

2026-04-24

microsoft-edge-beta - 148.0.3967.20
Ebuild name:

www-client/microsoft-edge-beta-148.0.3967.20

Description

The web browser from Microsoft

Added to portage

2026-04-24

microsoft-edge-dev - 149.0.3984.0
Ebuild name:

www-client/microsoft-edge-dev-149.0.3984.0

Description

The web browser from Microsoft

Added to portage

2026-04-24

opera - 130.0.5847.82
Ebuild name:

www-client/opera-130.0.5847.82

Description

A fast and secure web browser

Added to portage

2026-04-24

opera-developer - 131.0.5877.0
Ebuild name:

www-client/opera-developer-131.0.5877.0

Description

A fast and secure web browser

Added to portage

2026-04-24

samba - 4.23.7
Ebuild name:

net-fs/samba-4.23.7

Description

Samba Suite Version 4

Added to portage

2026-04-24

timezone-data - 2026b
Ebuild name:

sys-libs/timezone-data-2026b

Description

Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)

Added to portage

2026-04-24

vivaldi - 7.9.3970.59
Ebuild name:

www-client/vivaldi-7.9.3970.59

Description

A browser for our friends

Added to portage

2026-04-24

vivaldi-snapshot - 7.10.4015.3
Ebuild name:

www-client/vivaldi-snapshot-7.10.4015.3

Description

A browser for our friends

Added to portage

2026-04-24

2026-04-23
algol68g - 3.11.3
Ebuild name:

dev-lang/algol68g-3.11.3

Description

Algol 68 Genie compiler-interpreter

Added to portage

2026-04-23

awscli - 1.44.84
Ebuild name:

app-admin/awscli-1.44.84

Description

Universal Command Line Environment for AWS

Added to portage

2026-04-23

boto3 - 1.42.94
Ebuild name:

dev-python/boto3-1.42.94

Description

The AWS SDK for Python

Added to portage

2026-04-23

botocore - 1.42.94
Ebuild name:

dev-python/botocore-1.42.94

Description

Low-level, data-driven core of boto 3

Added to portage

2026-04-23

build - 1.4.4
Ebuild name:

dev-python/build-1.4.4

Description

A simple, correct PEP517 package builder

Added to portage

2026-04-23

cfn-lint - 1.49.3
Ebuild name:

dev-python/cfn-lint-1.49.3

Description

CloudFormation Linter

Added to portage

2026-04-23

click - 8.3.3
Ebuild name:

dev-python/click-8.3.3

Description

A Python package for creating beautiful command line interfaces

Added to portage

2026-04-23

crystal - 1.20.0
Ebuild name:

dev-lang/crystal-1.20.0

Description

The Crystal Programming Language

Added to portage

2026-04-23

dist-kernel - 6.12.83
Ebuild name:

virtual/dist-kernel-6.12.83

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-04-23

dist-kernel - 6.18.24
Ebuild name:

virtual/dist-kernel-6.18.24

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-04-23

dist-kernel - 6.19.14
Ebuild name:

virtual/dist-kernel-6.19.14

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-04-23

dotnet-runtime-nugets - 10.0.7
Ebuild name:

dev-dotnet/dotnet-runtime-nugets-10.0.7

Description

.NET runtime nugets

Added to portage

2026-04-23

dotnet-runtime-nugets - 8.0.26
Ebuild name:

dev-dotnet/dotnet-runtime-nugets-8.0.26

Description

.NET runtime nugets

Added to portage

2026-04-23

dotnet-runtime-nugets - 9.0.15
Ebuild name:

dev-dotnet/dotnet-runtime-nugets-9.0.15

Description

.NET runtime nugets

Added to portage

2026-04-23

dotnet-sdk-bin - 10.0.107
Ebuild name:

dev-dotnet/dotnet-sdk-bin-10.0.107

Description

.NET is a free, cross-platform, open-source developer platform

Added to portage

2026-04-23

dotnet-sdk-bin - 10.0.203
Ebuild name:

dev-dotnet/dotnet-sdk-bin-10.0.203

Description

.NET is a free, cross-platform, open-source developer platform

Added to portage

2026-04-23

ensurepip-wheel - 0.47.0
Ebuild name:

dev-python/ensurepip-wheel-0.47.0

Description

Shared wheel wheel for use in pip tests

Added to portage

2026-04-23

fable - 5.0.0
Ebuild name:

dev-dotnet/fable-5.0.0

Description

F to JavaScript, TypeScript, Python, Rust and Dart Compiler

Added to portage

2026-04-23

fastfetch - 2.62.1
Ebuild name:

app-misc/fastfetch-2.62.1

Description

Fast neofetch-like system information tool

Added to portage

2026-04-23

freerdp - 3.25.0
Ebuild name:

net-misc/freerdp-3.25.0

Description

Free implementation of the Remote Desktop Protocol

Added to portage

2026-04-23

gcc - 16.0.1_p20260423
Ebuild name:

sys-devel/gcc-16.0.1_p20260423

Description

The GNU Compiler Collection

Added to portage

2026-04-23

gentoo-kernel - 6.12.83
Ebuild name:

sys-kernel/gentoo-kernel-6.12.83

Description

Linux kernel built with Gentoo patches

Added to portage

2026-04-23

gentoo-kernel - 6.18.24
Ebuild name:

sys-kernel/gentoo-kernel-6.18.24

Description

Linux kernel built with Gentoo patches

Added to portage

2026-04-23

gentoo-kernel - 6.19.14
Ebuild name:

sys-kernel/gentoo-kernel-6.19.14

Description

Linux kernel built with Gentoo patches

Added to portage

2026-04-23

gentoo-kernel-bin - 6.12.83
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.83

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-04-23

gentoo-kernel-bin - 6.18.24
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.24

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-04-23

gentoo-kernel-bin - 6.19.14
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.19.14

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-04-23

getuto - 1.17
Ebuild name:

app-portage/getuto-1.17

Description

Standalone Gentoo gpg trust anchor generation tool for binpkgs

Added to portage

2026-04-23

gitpython - 3.1.47
Ebuild name:

dev-python/gitpython-3.1.47

Description

Library used to interact with Git repositories

Added to portage

2026-04-23

goland - 2025.3.2
Ebuild name:

dev-util/goland-2025.3.2

Description

Golang IDE by JetBrains

Added to portage

2026-04-23

heroic-bin - 2.21.0
Ebuild name:

games-util/heroic-bin-2.21.0

Description

GOG and Epic Games Launcher for Linux

Added to portage

2026-04-23

icinga2 - 2.16.0
Ebuild name:

net-analyzer/icinga2-2.16.0

Description

Distributed, general purpose, network monitoring engine

Added to portage

2026-04-23

idna - 3.13
Ebuild name:

dev-python/idna-3.13

Description

Internationalized Domain Names in Applications (IDNA)

Added to portage

2026-04-23

kdnssd - 6.25.0-r1
Ebuild name:

kde-frameworks/kdnssd-6.25.0-r1

Description

Framework for network service discovery using Zeroconf

Added to portage

2026-04-23

kdsingleapplication - 1.2.1
Ebuild name:

dev-libs/kdsingleapplication-1.2.1

Description

KDAB's helper class for single-instance policy applications

Added to portage

2026-04-23

linode-cli - 5.67.0
Ebuild name:

app-admin/linode-cli-5.67.0

Description

Official command-line interface for interacting with the Linode API

Added to portage

2026-04-23

marisa - 0.3.1-r2
Ebuild name:

dev-libs/marisa-0.3.1-r2

Description

Matching Algorithm with Recursively Implemented StorAge

Added to portage

2026-04-23

maven-bin - 3.9.15
Ebuild name:

dev-java/maven-bin-3.9.15

Description

Project Management and Comprehension Tool for Java

Added to portage

2026-04-23

nghttp2 - 1.69.0
Ebuild name:

net-libs/nghttp2-1.69.0

Description

HTTP/2 C Library

Added to portage

2026-04-23

ninja-mode - 1.12.0
Ebuild name:

app-emacs/ninja-mode-1.12.0

Description

GNU Emacs mode for handling Ninja build files

Added to portage

2026-04-23

ninja-mode - 1.12.1
Ebuild name:

app-emacs/ninja-mode-1.12.1

Description

GNU Emacs mode for handling Ninja build files

Added to portage

2026-04-23

nix-mode - 1.5.0
Ebuild name:

app-emacs/nix-mode-1.5.0

Description

GNU Emacs major mode for editing Nix expressions

Added to portage

2026-04-23

no-littering - 1.8.5
Ebuild name:

app-emacs/no-littering-1.8.5

Description

ELisp library that helps keeping Emacs configuration directory clean

Added to portage

2026-04-23

no-littering - 1.8.6
Ebuild name:

app-emacs/no-littering-1.8.6

Description

ELisp library that helps keeping Emacs configuration directory clean

Added to portage

2026-04-23

noflet - 0.0.15_p20141102-r1
Ebuild name:

app-emacs/noflet-0.0.15_p20141102-r1

Description

Dynamic, local advice for Emacs-Lisp code

Added to portage

2026-04-23

nprolog - 5.16
Ebuild name:

dev-lang/nprolog-5.16

Description

Interpreter and compiler to be compatible with Arity/Prolog32

Added to portage

2026-04-23

nxml-docbook5-schemas - 5.1
Ebuild name:

app-emacs/nxml-docbook5-schemas-5.1

Description

Add support for DocBook 5 schemas to NXML

Added to portage

2026-04-23

nxml-gentoo-schemas - 20241116
Ebuild name:

app-emacs/nxml-gentoo-schemas-20241116

Description

Extension for nxml-mode with Gentoo-specific schemas

Added to portage

2026-04-23

nxml-libvirt-schemas - 11.10.0
Ebuild name:

app-emacs/nxml-libvirt-schemas-11.10.0

Description

Extension for nxml-mode with libvirt schemas

Added to portage

2026-04-23

openpgp-keys-apache-maven - 20260421
Ebuild name:

sec-keys/openpgp-keys-apache-maven-20260421

Description

OpenPGP keys used by maven.apache.org

Added to portage

2026-04-23

org-mode - 9.8.3
Ebuild name:

app-emacs/org-mode-9.8.3

Description

An Emacs mode for notes and project planning

Added to portage

2026-04-23

pathspec - 1.1.0
Ebuild name:

dev-python/pathspec-1.1.0

Description

Utility library for gitignore style pattern matching of file paths

Added to portage

2026-04-23

pdns - 5.0.4
Ebuild name:

net-dns/pdns-5.0.4

Description

The PowerDNS Daemon

Added to portage

2026-04-23

pdns-recursor - 5.3.6
Ebuild name:

net-dns/pdns-recursor-5.3.6

Description

The PowerDNS Recursor

Added to portage

2026-04-23

pdns-recursor - 5.4.1
Ebuild name:

net-dns/pdns-recursor-5.4.1

Description

The PowerDNS Recursor

Added to portage

2026-04-23

pwsh - 7.6.1
Ebuild name:

app-shells/pwsh-7.6.1

Description

Cross-platform automation and configuration tool

Added to portage

2026-04-23

pwsh-bin - 7.6.1
Ebuild name:

app-shells/pwsh-bin-7.6.1

Description

Cross-platform automation and configuration tool (binary package)

Added to portage

2026-04-23

pyeclib - 1.8.0
Ebuild name:

dev-python/pyeclib-1.8.0

Description

Messaging API for RPC and notifications over different messaging transport

Added to portage

2026-04-23

qt-creator - 19.0.1
Ebuild name:

dev-qt/qt-creator-19.0.1

Description

Lightweight IDE for C++/QML development centering around Qt

Added to portage

2026-04-23

quickplot - 1.0.1_rc-r1
Ebuild name:

sci-visualization/quickplot-1.0.1_rc-r1

Description

A fast interactive 2D plotter

Added to portage

2026-04-23

rclone - 1.73.5
Ebuild name:

net-misc/rclone-1.73.5

Description

A program to sync files to and from various cloud storage providers

Added to portage

2026-04-23

rsyslog - 8.2604.0
Ebuild name:

app-admin/rsyslog-8.2604.0

Description

An enhanced multi-threaded syslogd with database support and more

Added to portage

2026-04-23

ruby - 4.0.3-r1
Ebuild name:

dev-lang/ruby-4.0.3-r1

Description

An object-oriented scripting language

Added to portage

2026-04-23

s3transfer - 0.16.1
Ebuild name:

dev-python/s3transfer-0.16.1

Description

An Amazon S3 Transfer Manager

Added to portage

2026-04-23

sc-controller - 0.5.0-r1
Ebuild name:

games-util/sc-controller-0.5.0-r1

Description

User-mode driver and GTK-based GUI for Steam Controllers and othe

Added to portage

2026-04-23

simdutf - 8.2.0
Ebuild name:

dev-cpp/simdutf-8.2.0

Description

Unicode validation and transcoding at billions of characters per second

Added to portage

2026-04-23

simdutf - 9.0.0
Ebuild name:

dev-cpp/simdutf-9.0.0

Description

Unicode validation and transcoding at billions of characters per second

Added to portage

2026-04-23

simplejson - 4.1.0
Ebuild name:

dev-python/simplejson-4.1.0

Description

Simple, fast, extensible JSON encoder/decoder for Python

Added to portage

2026-04-23

typer - 0.24.2
Ebuild name:

dev-python/typer-0.24.2

Description

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

Added to portage

2026-04-23

vanilla-kernel - 6.12.83
Ebuild name:

sys-kernel/vanilla-kernel-6.12.83

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-04-23

vanilla-kernel - 6.18.24
Ebuild name:

sys-kernel/vanilla-kernel-6.18.24

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-04-23

vanilla-kernel - 6.19.14
Ebuild name:

sys-kernel/vanilla-kernel-6.19.14

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-04-23

veusz - 4.2.1
Ebuild name:

sci-visualization/veusz-4.2.1

Description

Qt scientific plotting package with good Postscript output

Added to portage

2026-04-23

virtualbox - 7.2.8
Ebuild name:

app-emulation/virtualbox-7.2.8

Description

Family of powerful x86 virtualization products for enterprise and ho

Added to portage

2026-04-23

virtualbox-additions - 7.2.8
Ebuild name:

app-emulation/virtualbox-additions-7.2.8

Description

CD image containing guest additions for VirtualBox

Added to portage

2026-04-23

virtualbox-extpack-oracle - 7.2.8
Ebuild name:

app-emulation/virtualbox-extpack-oracle-7.2.8

Description

PUEL extensions for VirtualBox

Added to portage

2026-04-23

virtualbox-guest-additions - 7.2.8
Ebuild name:

app-emulation/virtualbox-guest-additions-7.2.8

Description

VirtualBox kernel modules and user-space tools for G

Added to portage

2026-04-23

virtualbox-guest-modules - 7.2.8
Ebuild name:

app-emulation/virtualbox-guest-modules-7.2.8

Description

Kernel Modules for Virtualbox Guest Additions

Added to portage

2026-04-23

virtualbox-kvm - 7.2.8_pre20260201
Ebuild name:

app-emulation/virtualbox-kvm-7.2.8_pre20260201

Description

Family of powerful x86 virtualization products for e

Added to portage

2026-04-23

virtualbox-modules - 7.2.8
Ebuild name:

app-emulation/virtualbox-modules-7.2.8

Description

Kernel Modules for Virtualbox

Added to portage

2026-04-23

wheel - 0.47.0
Ebuild name:

dev-python/wheel-0.47.0

Description

A built-package format for Python

Added to portage

2026-04-23

wine-mono - 11.1.0
Ebuild name:

app-emulation/wine-mono-11.1.0

Description

Replacement for the .NET runtime and class libraries in Wine

Added to portage

2026-04-23

xyscan - 4.7.0
Ebuild name:

sci-visualization/xyscan-4.7.0

Description

Tool for extracting data points from graphs

Added to portage

2026-04-23

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