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:

82143

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


rate this article:
current rating: average rating: 1.3 (25 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2025-11-25
bash - 5.4_alpha_pre20251124
Ebuild name:

app-shells/bash-5.4_alpha_pre20251124

Description

The standard GNU Bourne again shell

Added to portage

2025-11-25

dist-kernel - 6.12.59
Ebuild name:

virtual/dist-kernel-6.12.59

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-11-25

dist-kernel - 6.17.9
Ebuild name:

virtual/dist-kernel-6.17.9

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-11-25

dist-kernel - 6.6.117
Ebuild name:

virtual/dist-kernel-6.6.117

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-11-25

gentoo-kernel - 6.12.59
Ebuild name:

sys-kernel/gentoo-kernel-6.12.59

Description

Linux kernel built with Gentoo patches

Added to portage

2025-11-25

gentoo-kernel - 6.17.9
Ebuild name:

sys-kernel/gentoo-kernel-6.17.9

Description

Linux kernel built with Gentoo patches

Added to portage

2025-11-25

gentoo-kernel - 6.6.117
Ebuild name:

sys-kernel/gentoo-kernel-6.6.117

Description

Linux kernel built with Gentoo patches

Added to portage

2025-11-25

gentoo-kernel-bin - 6.12.59
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.59

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-11-25

gentoo-kernel-bin - 6.17.9
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.17.9

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-11-25

gentoo-kernel-bin - 6.6.117
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.6.117

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-11-25

gtk - 4.20.3-r1
Ebuild name:

gui-libs/gtk-4.20.3-r1

Description

GTK is a multi-platform toolkit for creating graphical user interfaces

Added to portage

2025-11-25

ktextaddons - 1.8.0
Ebuild name:

dev-libs/ktextaddons-1.8.0

Description

Various text handling addons

Added to portage

2025-11-25

mlt - 7.34.1-r1
Ebuild name:

media-libs/mlt-7.34.1-r1

Description

Open source multimedia framework for television broadcasting

Added to portage

2025-11-25

mpvqt - 1.1.1-r1
Ebuild name:

media-libs/mpvqt-1.1.1-r1

Description

libmpv wrapper for QtQuick2 and QML

Added to portage

2025-11-25

nghttp3 - 1.13.1
Ebuild name:

net-libs/nghttp3-1.13.1

Description

HTTP/3 library written in C

Added to portage

2025-11-25

ngtcp2 - 1.18.0
Ebuild name:

net-libs/ngtcp2-1.18.0

Description

Implementation of the IETF QUIC Protocol

Added to portage

2025-11-25

qtcurve - 1.9.0_p20250314-r2
Ebuild name:

x11-themes/qtcurve-1.9.0_p20250314-r2

Description

Widget styles for Qt and GTK2

Added to portage

2025-11-25

vanilla-kernel - 6.12.59
Ebuild name:

sys-kernel/vanilla-kernel-6.12.59

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-11-25

vanilla-kernel - 6.17.9
Ebuild name:

sys-kernel/vanilla-kernel-6.17.9

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-11-25

vanilla-kernel - 6.6.117
Ebuild name:

sys-kernel/vanilla-kernel-6.6.117

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-11-25

2025-11-24
algol68g - 3.10.7
Ebuild name:

dev-lang/algol68g-3.10.7

Description

Algol 68 Genie compiler-interpreter

Added to portage

2025-11-24

bandit - 1.9.2
Ebuild name:

dev-python/bandit-1.9.2

Description

A security linter from OpenStack Security

Added to portage

2025-11-24

bash - 5.4_alpha_pre20251119
Ebuild name:

app-shells/bash-5.4_alpha_pre20251119

Description

The standard GNU Bourne again shell

Added to portage

2025-11-24

cantera - 3.2.0
Ebuild name:

sci-libs/cantera-3.2.0

Description

Object-oriented tool suite for chemical kinetics, thermodynamics, and transp

Added to portage

2025-11-24

commandergenius - 3.6.1
Ebuild name:

games-arcade/commandergenius-3.6.1

Description

Open Source Commander Keen clone (needs original game files)

Added to portage

2025-11-24

discord - 0.0.115-r1
Ebuild name:

net-im/discord-0.0.115-r1

Description

All-in-one voice and text chat for gamers

Added to portage

2025-11-24

elogind - 255.22
Ebuild name:

sys-auth/elogind-255.22

Description

The systemd project's logind, extracted to a standalone package

Added to portage

2025-11-24

enscript - 1.6.6-r2
Ebuild name:

app-text/enscript-1.6.6-r2

Description

Powerful text-to-postscript converter

Added to portage

2025-11-24

gcc - 16.0.0_p20251123
Ebuild name:

sys-devel/gcc-16.0.0_p20251123

Description

The GNU Compiler Collection

Added to portage

2025-11-24

git-sources - 6.18_rc7
Ebuild name:

sys-kernel/git-sources-6.18_rc7

Description

The very latest -git version of the Linux kernel

Added to portage

2025-11-24

highfive - 2.10.1-r1
Ebuild name:

sci-libs/highfive-2.10.1-r1

Description

Header-only C++ interface for libhdf5

Added to portage

2025-11-24

highfive - 2.8.0-r1
Ebuild name:

sci-libs/highfive-2.8.0-r1

Description

Header-only C++ interface for libhdf5

Added to portage

2025-11-24

highfive - 3.2.0
Ebuild name:

sci-libs/highfive-3.2.0

Description

Header-only C++ interface for libhdf5

Added to portage

2025-11-24

mesa-amber - 21.3.9-r3
Ebuild name:

media-libs/mesa-amber-21.3.9-r3

Description

OpenGL-like graphic library for Linux

Added to portage

2025-11-24

mkdocs-gen-files - 0.6.0
Ebuild name:

dev-python/mkdocs-gen-files-0.6.0

Description

MkDocs plugin to programmatically generate documentation pages du

Added to portage

2025-11-24

mutt - 2.2.16
Ebuild name:

mail-client/mutt-2.2.16

Description

A small but very powerful text-based mail client

Added to portage

2025-11-24

nginx-unit - 1.35.0-r1
Ebuild name:

www-servers/nginx-unit-1.35.0-r1

Description

Dynamic web and application server

Added to portage

2025-11-24

plz - 0.7.2
Ebuild name:

app-emacs/plz-0.7.2

Description

HTTP library with curl backend for GNU Emacs

Added to portage

2025-11-24

postfix - 3.11_pre20251122
Ebuild name:

mail-mta/postfix-3.11_pre20251122

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-11-24

pqiv - 2.13.3
Ebuild name:

media-gfx/pqiv-2.13.3

Description

A powerful GTK 3 based command-line image viewer with a minimal UI

Added to portage

2025-11-24

pv - 1.10.2
Ebuild name:

sys-apps/pv-1.10.2

Description

Pipe Viewer a tool for monitoring the progress of data through a pipe

Added to portage

2025-11-24

pylast - 7.0.0
Ebuild name:

dev-python/pylast-7.0.0

Description

Python interface to last.fm and other api-compatible websites

Added to portage

2025-11-24

pypdf - 6.4.0
Ebuild name:

dev-python/pypdf-6.4.0

Description

Python library to work with PDF files

Added to portage

2025-11-24

pytest-golden - 1.0.0
Ebuild name:

dev-python/pytest-golden-1.0.0

Description

Plugin for pytest that offloads expected outputs to data files

Added to portage

2025-11-24

pytest-reserial - 0.5.1
Ebuild name:

dev-python/pytest-reserial-0.5.1

Description

Pytest plugin for recording and replaying serial port traffic duri

Added to portage

2025-11-24

racket - 9.0
Ebuild name:

dev-scheme/racket-9.0

Description

General purpose, multi-paradigm Lisp-Scheme programming language

Added to portage

2025-11-24

rclone - 1.72.0
Ebuild name:

net-misc/rclone-1.72.0

Description

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

Added to portage

2025-11-24

restructuredtext-lint - 2.0.2
Ebuild name:

dev-python/restructuredtext-lint-2.0.2

Description

Checks PyPI validity of reStructuredText

Added to portage

2025-11-24

rpm - 4.20.1-r2
Ebuild name:

app-arch/rpm-4.20.1-r2

Description

The RPM Package Manager

Added to portage

2025-11-24

rpm - 6.0.0-r1
Ebuild name:

app-arch/rpm-6.0.0-r1

Description

The RPM Package Manager

Added to portage

2025-11-24

scream - 4.0-r2
Ebuild name:

media-sound/scream-4.0-r2

Description

Plays sound received from network or from a QEMU Windows VM

Added to portage

2025-11-24

scribus - 1.7.1_pre20251119
Ebuild name:

app-office/scribus-1.7.1_pre20251119

Description

Desktop publishing (DTP) and layout program

Added to portage

2025-11-24

secretstorage - 3.5.0
Ebuild name:

dev-python/secretstorage-3.5.0

Description

Python bindings to FreeDesktop.org Secret Service API

Added to portage

2025-11-24

sourcegit - 2025.38
Ebuild name:

dev-vcs/sourcegit-2025.38

Description

Open Source Git GUI client using .NET AvaloniaUI

Added to portage

2025-11-24

sphinxcontrib-mermaid - 1.2.2
Ebuild name:

dev-python/sphinxcontrib-mermaid-1.2.2

Description

Sphinx spelling extension

Added to portage

2025-11-24

stellarium - 25.3-r1
Ebuild name:

sci-astronomy/stellarium-25.3-r1

Description

3D photo-realistic skies in real time

Added to portage

2025-11-24

sundials - 7.5.0
Ebuild name:

sci-libs/sundials-7.5.0

Description

Suite of nonlinear solvers

Added to portage

2025-11-24

syd - 3.45.1
Ebuild name:

sys-apps/syd-3.45.1

Description

seccomp and landlock based application sandbox with support for namespaces

Added to portage

2025-11-24

thin-provisioning-tools - 1.3.1
Ebuild name:

sys-block/thin-provisioning-tools-1.3.1

Description

A suite of tools for thin provisioning on Linux

Added to portage

2025-11-24

timescaledb - 2.23.1
Ebuild name:

dev-db/timescaledb-2.23.1

Description

Open-source time-series SQL database

Added to portage

2025-11-24

tinycss2 - 1.5.1
Ebuild name:

dev-python/tinycss2-1.5.1

Description

A complete yet simple CSS parser for Python

Added to portage

2025-11-24

wayland-protocols - 1.46
Ebuild name:

dev-libs/wayland-protocols-1.46

Description

Wayland protocol files

Added to portage

2025-11-24

xapian - 1.4.30
Ebuild name:

dev-libs/xapian-1.4.30

Description

Xapian Probabilistic Information Retrieval library

Added to portage

2025-11-24

xapian-bindings - 1.4.30
Ebuild name:

dev-libs/xapian-bindings-1.4.30

Description

SWIG and JNI bindings for Xapian

Added to portage

2025-11-24

xapian-omega - 1.4.30
Ebuild name:

app-text/xapian-omega-1.4.30

Description

An application built on Xapian, consisting of indexers and a CGI searc

Added to portage

2025-11-24

zfs - 2.2.9
Ebuild name:

sys-fs/zfs-2.2.9

Description

Userland utilities for ZFS Linux kernel module

Added to portage

2025-11-24

zfs-kmod - 2.2.9
Ebuild name:

sys-fs/zfs-kmod-2.2.9

Description

Linux ZFS kernel module for sys-fs/zfs

Added to portage

2025-11-24

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 46.3 ms