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:

82265

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
2025-12-02
2025-12-01
amdsmi - 7.1.0
Ebuild name:

dev-util/amdsmi-7.1.0

Description

AMD System Management Interface for managing and monitoring GPUs

Added to portage

2025-12-01

apispec - 6.9.0
Ebuild name:

dev-python/apispec-6.9.0

Description

A pluggable API specification generator

Added to portage

2025-12-01

asterisk - 20.17.0
Ebuild name:

net-misc/asterisk-20.17.0

Description

Asterisk A Modular Open Source PBX System

Added to portage

2025-12-01

asterisk - 21.12.0
Ebuild name:

net-misc/asterisk-21.12.0

Description

Asterisk A Modular Open Source PBX System

Added to portage

2025-12-01

asterisk - 22.7.0
Ebuild name:

net-misc/asterisk-22.7.0

Description

Asterisk A Modular Open Source PBX System

Added to portage

2025-12-01

aws-sam-translator - 1.104.0
Ebuild name:

dev-python/aws-sam-translator-1.104.0

Description

A library that transform SAM templates into AWS CloudFormatio

Added to portage

2025-12-01

beautifulsoup4 - 4.14.3
Ebuild name:

dev-python/beautifulsoup4-4.14.3

Description

Pythonic idioms for iterating, searching, and modifying an HTML/XM

Added to portage

2025-12-01

beniget - 0.5.0
Ebuild name:

dev-python/beniget-0.5.0

Description

Extract semantic information about static Python code

Added to portage

2025-12-01

buffer - 1.19-r5
Ebuild name:

sys-block/buffer-1.19-r5

Description

A tapedrive tool for speeding up reading from and writing to tape

Added to portage

2025-12-01

cfn-lint - 1.42.0
Ebuild name:

dev-python/cfn-lint-1.42.0

Description

CloudFormation Linter

Added to portage

2025-12-01

cgit - 1.2.3_p20240802-r2
Ebuild name:

www-apps/cgit-1.2.3_p20240802-r2

Description

A fast web-interface for Git repositories

Added to portage

2025-12-01

cinnamon-screensaver - 6.4.0-r2
Ebuild name:

gnome-extra/cinnamon-screensaver-6.4.0-r2

Description

Screensaver for Cinnamon

Added to portage

2025-12-01

cinnamon-screensaver - 6.4.1-r1
Ebuild name:

gnome-extra/cinnamon-screensaver-6.4.1-r1

Description

Screensaver for Cinnamon

Added to portage

2025-12-01

coverage - 7.12.1_beta1
Ebuild name:

dev-python/coverage-7.12.1_beta1

Description

Code coverage measurement for Python

Added to portage

2025-12-01

cryptodev - 1.14
Ebuild name:

sys-kernel/cryptodev-1.14

Description

device that allows access to Linux kernel cryptographic drivers

Added to portage

2025-12-01

cython - 3.2.2
Ebuild name:

dev-python/cython-3.2.2

Description

A Python to C compiler

Added to portage

2025-12-01

gcc - 16.0.0_p20251130
Ebuild name:

sys-devel/gcc-16.0.0_p20251130

Description

The GNU Compiler Collection

Added to portage

2025-12-01

genshi - 0.7.10
Ebuild name:

dev-python/genshi-0.7.10

Description

Python toolkit for stream-based generation of output for the web

Added to portage

2025-12-01

gpa - 0.11.0-r2
Ebuild name:

app-crypt/gpa-0.11.0-r2

Description

GNU Privacy Assistant (GPA) a graphical user interface for GnuPG

Added to portage

2025-12-01

gpxsee - 15.5
Ebuild name:

sci-geosciences/gpxsee-15.5

Description

Viewer and analyzer that supports gpx, tcx, kml, fit, igc and nmea file

Added to portage

2025-12-01

grass - 8.4.1-r2
Ebuild name:

sci-geosciences/grass-8.4.1-r2

Description

Free GIS with raster and vector functionality, as well as 3D vizuali

Added to portage

2025-12-01

ig - 0.47.0
Ebuild name:

app-admin/ig-0.47.0

Description

Tools and framework for data collection and system inspection using eBPF

Added to portage

2025-12-01

inspectrum - 0.3.1_p20251130
Ebuild name:

net-wireless/inspectrum-0.3.1_p20251130

Description

Tool for analysing captured signals from software-defined r

Added to portage

2025-12-01

irqbalance - 1.9.4-r3
Ebuild name:

sys-apps/irqbalance-1.9.4-r3

Description

Distribute hardware interrupts across processors on a multiprocessor s

Added to portage

2025-12-01

jellyfin-bin - 10.11.4
Ebuild name:

www-apps/jellyfin-bin-10.11.4

Description

Jellyfin puts you in control of managing and streaming your media

Added to portage

2025-12-01

libtmux - 0.50.0
Ebuild name:

dev-python/libtmux-0.50.0

Description

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

Added to portage

2025-12-01

libvirt - 11.9.0
Ebuild name:

app-emulation/libvirt-11.9.0

Description

C toolkit to manipulate virtual machines

Added to portage

2025-12-01

libvirt-python - 11.9.0
Ebuild name:

dev-python/libvirt-python-11.9.0

Description

libvirt Python bindings

Added to portage

2025-12-01

libxslt - 1.1.45
Ebuild name:

dev-libs/libxslt-1.1.45

Description

XSLT libraries and tools

Added to portage

2025-12-01

limine - 10.4.0
Ebuild name:

sys-boot/limine-10.4.0

Description

Limine is a modern, advanced, and portable BIOS/UEFI multiprotocol bootloade

Added to portage

2025-12-01

meson - 1.10.0_rc1
Ebuild name:

dev-build/meson-1.10.0_rc1

Description

Open source build system

Added to portage

2025-12-01

moto - 5.1.18
Ebuild name:

dev-python/moto-5.1.18

Description

Mock library for boto

Added to portage

2025-12-01

mtx - 1.3.12-r1
Ebuild name:

sys-block/mtx-1.3.12-r1

Description

Utilities for controlling SCSI media changers and tape drives

Added to portage

2025-12-01

planner - 3.42-r1
Ebuild name:

app-emacs/planner-3.42-r1

Description

Maintain a local Wiki using Emacs-friendly markup

Added to portage

2025-12-01

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-12-01

postfix - 3.11_pre20251130
Ebuild name:

mail-mta/postfix-3.11_pre20251130

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-12-01

pygraphviz - 1.14-r1
Ebuild name:

dev-python/pygraphviz-1.14-r1

Description

Python wrapper for the Graphviz Agraph data structure

Added to portage

2025-12-01

pygraphviz - 1.14-r2
Ebuild name:

dev-python/pygraphviz-1.14-r2

Description

Python wrapper for the Graphviz Agraph data structure

Added to portage

2025-12-01

pylint - 4.0.4
Ebuild name:

dev-python/pylint-4.0.4

Description

Python code static checker

Added to portage

2025-12-01

pythontex - 0.18_p20251112
Ebuild name:

dev-tex/pythontex-0.18_p20251112

Description

Fast Access to Python from within LaTeX

Added to portage

2025-12-01

qmapshack - 1.19.0
Ebuild name:

sci-geosciences/qmapshack-1.19.0

Description

GPS mapping utility

Added to portage

2025-12-01

radicale - 3.5.9
Ebuild name:

www-apps/radicale-3.5.9

Description

A simple CalDAV calendar server

Added to portage

2025-12-01

remind - 06.02.01
Ebuild name:

app-misc/remind-06.02.01

Description

Ridiculously functional reminder program

Added to portage

2025-12-01

rpds-py - 0.30.0
Ebuild name:

dev-python/rpds-py-0.30.0

Description

Python bindings to Rust's persistent data structures (rpds)

Added to portage

2025-12-01

sbcl - 2.5.11
Ebuild name:

dev-lisp/sbcl-2.5.11

Description

Steel Bank Common Lisp (SBCL) is an implementation of ANSI Common Lisp

Added to portage

2025-12-01

socklog - 2.1.2
Ebuild name:

app-admin/socklog-2.1.2

Description

Small secure replacement for syslogd with automatic log rotation

Added to portage

2025-12-01

sphinx - 9.0.0
Ebuild name:

dev-python/sphinx-9.0.0

Description

Python documentation generator

Added to portage

2025-12-01

supercollider - 3.14.1
Ebuild name:

media-sound/supercollider-3.14.1

Description

Environment and programming language for real time audio synthesis

Added to portage

2025-12-01

wild - 0.7.0
Ebuild name:

sys-devel/wild-0.7.0

Description

A very fast linker for Linux

Added to portage

2025-12-01

wild - 0.7.0-r1
Ebuild name:

sys-devel/wild-0.7.0-r1

Description

A very fast linker for Linux

Added to portage

2025-12-01

wild - 9999
Ebuild name:

sys-devel/wild-9999

Description

A very fast linker for Linux

Added to portage

2025-12-01

xdotool - 4.20251130.1
Ebuild name:

x11-misc/xdotool-4.20251130.1

Description

Simulate keyboard input and mouse activity, move and resize windows

Added to portage

2025-12-01

zerotier - 1.16.0-r2
Ebuild name:

net-misc/zerotier-1.16.0-r2

Description

A software-based managed Ethernet switch for planet Earth

Added to portage

2025-12-01

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