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:

78260

userrating:

average rating: 1.1 (26 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: 2.0 (1 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-07-17
Device-SerialPort - 1.40.0-r4
Ebuild name:

dev-perl/Device-SerialPort-1.40.0-r4

Description

Serial port Perl Module

Added to portage

2025-07-17

Digest-BubbleBabble - 0.20.0-r3
Ebuild name:

dev-perl/Digest-BubbleBabble-0.20.0-r3

Description

Create bubble-babble fingerprints

Added to portage

2025-07-17

Digest-GOST - 0.60.0-r3
Ebuild name:

dev-perl/Digest-GOST-0.60.0-r3

Description

Perl interface to the GOST R 34.11-94 digest algorithm

Added to portage

2025-07-17

Digest-MD2 - 2.40.0-r2
Ebuild name:

dev-perl/Digest-MD2-2.40.0-r2

Description

Perl interface to the MD2 Algorithm

Added to portage

2025-07-17

Digest-MD4 - 1.900.0-r3
Ebuild name:

dev-perl/Digest-MD4-1.900.0-r3

Description

MD4 message digest algorithm

Added to portage

2025-07-17

Digest-MD5-File - 0.80.0-r3
Ebuild name:

dev-perl/Digest-MD5-File-0.80.0-r3

Description

Perl extension for getting MD5 sums for files and urls

Added to portage

2025-07-17

Digest-Nilsimsa - 0.60.0-r5
Ebuild name:

dev-perl/Digest-Nilsimsa-0.60.0-r5

Description

Perl version of Nilsimsa code

Added to portage

2025-07-17

Digest-Perl-MD5 - 1.900.0-r2
Ebuild name:

dev-perl/Digest-Perl-MD5-1.900.0-r2

Description

Pure perl implementation of MD5

Added to portage

2025-07-17

Dist-Milla - 1.0.20-r1
Ebuild name:

dev-perl/Dist-Milla-1.0.20-r1

Description

Distribution builder, Opinionated but Unobtrusive

Added to portage

2025-07-17

Dist-Zilla-Config-Slicer - 0.202.0-r1
Ebuild name:

dev-perl/Dist-Zilla-Config-Slicer-0.202.0-r1

Description

Config customized for Dist

Added to portage

2025-07-17

argyllcms - 3.4.0
Ebuild name:

media-gfx/argyllcms-3.4.0

Description

Open source, ICC compatible color management system

Added to portage

2025-07-17

backuppc - 4.4.0-r3
Ebuild name:

app-backup/backuppc-4.4.0-r3

Description

High-performance backups to a server's disk

Added to portage

2025-07-17

dbeaver-bin - 25.1.2
Ebuild name:

dev-db/dbeaver-bin-25.1.2

Description

Free universal database tool (community edition)

Added to portage

2025-07-17

gmmlib - 22.8.0
Ebuild name:

media-libs/gmmlib-22.8.0

Description

Intel Graphics Memory Management Library

Added to portage

2025-07-17

grim - 1.5.0
Ebuild name:

gui-apps/grim-1.5.0

Description

Grab images from a Wayland compositor

Added to portage

2025-07-17

gst-plugins-qt6 - 1.24.11-r1
Ebuild name:

media-plugins/gst-plugins-qt6-1.24.11-r1

Description

Qt6 QML video sink plugin for GStreamer

Added to portage

2025-07-17

gwenhywfar - 5.12.1
Ebuild name:

sys-libs/gwenhywfar-5.12.1

Description

Multi-platform helper library for other libraries

Added to portage

2025-07-17

kokkos - 4.0.1-r1
Ebuild name:

dev-cpp/kokkos-4.0.1-r1

Description

C++ Performance Portability Programming EcoSystem

Added to portage

2025-07-17

kokkos - 4.3.1-r1
Ebuild name:

dev-cpp/kokkos-4.3.1-r1

Description

C++ Performance Portability Programming EcoSystem

Added to portage

2025-07-17

kokkos - 4.6.2-r1
Ebuild name:

dev-cpp/kokkos-4.6.2-r1

Description

C++ Performance Portability Programming EcoSystem

Added to portage

2025-07-17

krita - 5.2.11
Ebuild name:

media-gfx/krita-5.2.11

Description

Free digital painting application. Digital Painting, Creative Freedom

Added to portage

2025-07-17

mesa - 25.2.0_rc1
Ebuild name:

media-libs/mesa-25.2.0_rc1

Description

OpenGL-like graphic library for Linux

Added to portage

2025-07-17

mesa_clc - 25.2.0_rc1
Ebuild name:

dev-util/mesa_clc-25.2.0_rc1

Description

mesa_clc tool used for building OpenCL C to SPIR-V

Added to portage

2025-07-17

pos-tip - 0.4.7
Ebuild name:

app-emacs/pos-tip-0.4.7

Description

Show tooltip at point

Added to portage

2025-07-17

posframe - 1.4.4
Ebuild name:

app-emacs/posframe-1.4.4

Description

Pop up a frame at point

Added to portage

2025-07-17

strongswan - 6.0.1-r2
Ebuild name:

net-vpn/strongswan-6.0.1-r2

Description

IPsec-based VPN solution, supporting IKEv1/IKEv2 and MOBIKE

Added to portage

2025-07-17

strongswan - 6.0.2
Ebuild name:

net-vpn/strongswan-6.0.2

Description

IPsec-based VPN solution, supporting IKEv1/IKEv2 and MOBIKE

Added to portage

2025-07-17

trilinos - 14.4.0-r1
Ebuild name:

sci-libs/trilinos-14.4.0-r1

Description

Scientific library collection for large scale problems

Added to portage

2025-07-17

trilinos - 15.1.1-r1
Ebuild name:

sci-libs/trilinos-15.1.1-r1

Description

Scientific library collection for large scale problems

Added to portage

2025-07-17

trilinos - 16.1.0-r2
Ebuild name:

sci-libs/trilinos-16.1.0-r2

Description

Scientific library collection for large scale problems

Added to portage

2025-07-17

trilinos - 16.1.0-r3
Ebuild name:

sci-libs/trilinos-16.1.0-r3

Description

Scientific library collection for large scale problems

Added to portage

2025-07-17

2025-07-16
Crypt-CBC - 2.330.0-r3
Ebuild name:

dev-perl/Crypt-CBC-2.330.0-r3

Description

Encrypt Data with Cipher Block Chaining Mode

Added to portage

2025-07-16

Crypt-CBC - 3.40.0-r1
Ebuild name:

dev-perl/Crypt-CBC-3.40.0-r1

Description

Encrypt Data with Cipher Block Chaining Mode

Added to portage

2025-07-16

Dist-Zilla-Plugin-CheckChangesHasContent - 0.11.0-r1
Ebuild name:

dev-perl/Dist-Zilla-Plugin-CheckChangesHasContent-0.11.0-r1

Description

Ensure Changes has content before relea

Added to portage

2025-07-16

Dist-Zilla-Plugin-CheckExtraTests - 0.29.0-r2
Ebuild name:

dev-perl/Dist-Zilla-Plugin-CheckExtraTests-0.29.0-r2

Description

check xt tests before release

Added to portage

2025-07-16

Dist-Zilla-Plugin-Config-Git - 0.920.0-r2
Ebuild name:

dev-perl/Dist-Zilla-Plugin-Config-Git-0.920.0-r2

Description

Plugin configuration containing settings for a Git

Added to portage

2025-07-16

Dist-Zilla-Plugin-ContributorsFile - 0.3.0-r1
Ebuild name:

dev-perl/Dist-Zilla-Plugin-ContributorsFile-0.3.0-r1

Description

add a file listing all contributors

Added to portage

2025-07-16

Dist-Zilla-Plugin-CopyFilesFromBuild - 0.170.880-r1
Ebuild name:

dev-perl/Dist-Zilla-Plugin-CopyFilesFromBuild-0.170.880-r1

Description

Copy (or move) specific files after buil

Added to portage

2025-07-16

Dist-Zilla-Plugin-CopyFilesFromRelease - 0.7.0-r1
Ebuild name:

dev-perl/Dist-Zilla-Plugin-CopyFilesFromRelease-0.7.0-r1

Description

Copy files from a release (for SCM inclusi

Added to portage

2025-07-16

Dist-Zilla-Plugin-GithubMeta - 0.580.0-r2
Ebuild name:

dev-perl/Dist-Zilla-Plugin-GithubMeta-0.580.0-r2

Description

Automatically include GitHub meta information in M

Added to portage

2025-07-16

Dist-Zilla-Plugin-LicenseFromModule - 0.70.0-r1
Ebuild name:

dev-perl/Dist-Zilla-Plugin-LicenseFromModule-0.70.0-r1

Description

Extract License and Copyright from its main_

Added to portage

2025-07-16

Dist-Zilla-Plugin-Meta-Contributors - 0.3.0-r2
Ebuild name:

dev-perl/Dist-Zilla-Plugin-Meta-Contributors-0.3.0-r2

Description

Generate an x_contributors section in distrib

Added to portage

2025-07-16

Dist-Zilla-Plugin-ModuleBuildTiny - 0.15.0-r1
Ebuild name:

dev-perl/Dist-Zilla-Plugin-ModuleBuildTiny-0.15.0-r1

Description

Build a Build.PL that uses Module

Added to portage

2025-07-16

List-AllUtils - 0.190.0-r1
Ebuild name:

dev-perl/List-AllUtils-0.190.0-r1

Description

Combines many List utility modules in one bite-sized package

Added to portage

2025-07-16

Pegex - 0.750.0-r1
Ebuild name:

dev-perl/Pegex-0.750.0-r1

Description

Acmeist PEG Parser Framework

Added to portage

2025-07-16

awscli - 1.41.5
Ebuild name:

app-admin/awscli-1.41.5

Description

Universal Command Line Environment for AWS

Added to portage

2025-07-16

boto3 - 1.39.5
Ebuild name:

dev-python/boto3-1.39.5

Description

The AWS SDK for Python

Added to portage

2025-07-16

botocore - 1.39.5
Ebuild name:

dev-python/botocore-1.39.5

Description

Low-level, data-driven core of boto 3

Added to portage

2025-07-16

chrome-binary-plugins - 138.0.7204.157
Ebuild name:

www-plugins/chrome-binary-plugins-138.0.7204.157

Description

Binary plugins from Google Chrome for use in Chrom

Added to portage

2025-07-16

chrome-binary-plugins - 139.0.7258.31_beta
Ebuild name:

www-plugins/chrome-binary-plugins-139.0.7258.31_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2025-07-16

chromedriver-bin - 138.0.7204.157
Ebuild name:

www-apps/chromedriver-bin-138.0.7204.157

Description

WebDriver for Chrome

Added to portage

2025-07-16

chromium - 138.0.7204.157
Ebuild name:

www-client/chromium-138.0.7204.157

Description

Open-source version of Google Chrome web browser

Added to portage

2025-07-16

devcontainer - 0.80.0
Ebuild name:

app-containers/devcontainer-0.80.0

Description

Reference implementation of the Development Containers specifica

Added to portage

2025-07-16

element - 1.11.106
Ebuild name:

www-apps/element-1.11.106

Description

A glossy Matrix collaboration client for the web

Added to portage

2025-07-16

erb - 5.0.2
Ebuild name:

dev-ruby/erb-5.0.2

Description

An easy to use but powerful templating system for Ruby

Added to portage

2025-07-16

evince - 48.1
Ebuild name:

app-text/evince-48.1

Description

Simple document viewer for GNOME

Added to portage

2025-07-16

faker - 37.4.2
Ebuild name:

dev-python/faker-37.4.2

Description

A Python package that generates fake data for you

Added to portage

2025-07-16

fcft - 3.3.2
Ebuild name:

media-libs/fcft-3.3.2

Description

Simple library for font loading and glyph rasterization

Added to portage

2025-07-16

foot - 1.23.0
Ebuild name:

gui-apps/foot-1.23.0

Description

Fast, lightweight and minimalistic Wayland terminal emulator

Added to portage

2025-07-16

foot-terminfo - 1.23.0
Ebuild name:

gui-apps/foot-terminfo-1.23.0

Description

Terminfo for foot, a fast, lightweight and minimal Wayland terminal e

Added to portage

2025-07-16

free42 - 3.3.8
Ebuild name:

app-emulation/free42-3.3.8

Description

An HP-42S Calculator Simulator

Added to portage

2025-07-16

fsspec - 2025.7.0
Ebuild name:

dev-python/fsspec-2025.7.0

Description

A specification that python filesystems should adhere to

Added to portage

2025-07-16

gallery-dl - 1.30.0
Ebuild name:

net-misc/gallery-dl-1.30.0

Description

Download image galleries and collections from several image hosting site

Added to portage

2025-07-16

google-chrome - 138.0.7204.157
Ebuild name:

www-client/google-chrome-138.0.7204.157

Description

The web browser from Google

Added to portage

2025-07-16

google-chrome-beta - 139.0.7258.31
Ebuild name:

www-client/google-chrome-beta-139.0.7258.31

Description

The web browser from Google

Added to portage

2025-07-16

gruff - 0.27.1
Ebuild name:

dev-ruby/gruff-0.27.1

Description

Beautiful graphs for one or multiple datasets

Added to portage

2025-07-16

hypothesis - 6.135.32
Ebuild name:

dev-python/hypothesis-6.135.32

Description

A library for property based testing

Added to portage

2025-07-16

iir1 - 1.10.0
Ebuild name:

media-libs/iir1-1.10.0

Description

DSP IIR realtime filter library written in C++

Added to portage

2025-07-16

josm-bin - 19423
Ebuild name:

sci-geosciences/josm-bin-19423

Description

Java-based editor for the OpenStreetMap project

Added to portage

2025-07-16

kitty - 0.42.2
Ebuild name:

x11-terms/kitty-0.42.2

Description

Fast, feature-rich, GPU-based terminal

Added to portage

2025-07-16

kitty-shell-integration - 0.42.2
Ebuild name:

x11-terms/kitty-shell-integration-0.42.2

Description

Shell integration scripts for kitty, a GPU-based terminal

Added to portage

2025-07-16

kitty-terminfo - 0.42.2
Ebuild name:

x11-terms/kitty-terminfo-0.42.2

Description

Terminfo for kitty, a GPU-based terminal emulator

Added to portage

2025-07-16

kokkos - 9999
Ebuild name:

dev-cpp/kokkos-9999

Description

C++ Performance Portability Programming EcoSystem

Added to portage

2025-07-16

libraw - 0.21.4
Ebuild name:

media-libs/libraw-0.21.4

Description

LibRaw is a library for reading RAW files obtained from digital photo came

Added to portage

2025-07-16

libsc - 2.8.7
Ebuild name:

sci-libs/libsc-2.8.7

Description

Support for parallel scientific applications

Added to portage

2025-07-16

libusb3380 - 0.0_p20190125-r1
Ebuild name:

net-wireless/libusb3380-0.0_p20190125-r1

Description

USB3380 abstraction layer for libusb

Added to portage

2025-07-16

log4cplus - 2.1.2
Ebuild name:

dev-libs/log4cplus-2.1.2

Description

C++ port of the Log for Java (log4j) logging library

Added to portage

2025-07-16

microsoft-edge - 138.0.3351.83
Ebuild name:

www-client/microsoft-edge-138.0.3351.83

Description

The web browser from Microsoft

Added to portage

2025-07-16

microsoft-edge-beta - 139.0.3405.36
Ebuild name:

www-client/microsoft-edge-beta-139.0.3405.36

Description

The web browser from Microsoft

Added to portage

2025-07-16

nextcloud - 30.0.13
Ebuild name:

www-apps/nextcloud-30.0.13

Description

Personal cloud that runs on your own server

Added to portage

2025-07-16

nextcloud - 31.0.7
Ebuild name:

www-apps/nextcloud-31.0.7

Description

Personal cloud that runs on your own server

Added to portage

2025-07-16

nh3 - 0.2.22
Ebuild name:

dev-python/nh3-0.2.22

Description

Ammonia HTML sanitizer Python binding

Added to portage

2025-07-16

opera - 120.0.5543.61
Ebuild name:

www-client/opera-120.0.5543.61

Description

A fast and secure web browser

Added to portage

2025-07-16

opera-developer - 121.0.5593.0
Ebuild name:

www-client/opera-developer-121.0.5593.0

Description

A fast and secure web browser

Added to portage

2025-07-16

orjson - 3.11.0
Ebuild name:

dev-python/orjson-3.11.0

Description

Fast, correct Python JSON library supporting dataclasses, datetimes, and n

Added to portage

2025-07-16

p4est - 2.8.7
Ebuild name:

sci-libs/p4est-2.8.7

Description

Scalable Algorithms for Parallel Adaptive Mesh Refinement on Forests of Octree

Added to portage

2025-07-16

plus42 - 1.3.10
Ebuild name:

app-emulation/plus42-1.3.10

Description

An Enhanced HP-42S Calculator Simulator

Added to portage

2025-07-16

pov-mode - 3.3-r1
Ebuild name:

app-emacs/pov-mode-3.3-r1

Description

Major mode for Povray scene files

Added to portage

2025-07-16

propshaft - 1.2.0
Ebuild name:

dev-ruby/propshaft-1.2.0

Description

Deliver assets for Rails

Added to portage

2025-07-16

pytest-lazy-fixtures - 1.3.0
Ebuild name:

dev-python/pytest-lazy-fixtures-1.3.0

Description

Allows you to use fixtures in @pytest.mark.parametrize

Added to portage

2025-07-16

python-dbusmock - 0.36.0
Ebuild name:

dev-python/python-dbusmock-0.36.0

Description

Easily create mock objects on D-Bus for software testing

Added to portage

2025-07-16

pytools - 2025.2.2
Ebuild name:

dev-python/pytools-2025.2.2

Description

Collection of tools missing from the Python standard library

Added to portage

2025-07-16

rsync-bpc - 3.1.3.0_p20250706
Ebuild name:

net-misc/rsync-bpc-3.1.3.0_p20250706

Description

Rsync-bpc is a customized version of rsync that is used as par

Added to portage

2025-07-16

ruby - 3.4.5
Ebuild name:

dev-lang/ruby-3.4.5

Description

An object-oriented scripting language

Added to portage

2025-07-16

usbguard - 1.1.4
Ebuild name:

sys-apps/usbguard-1.1.4

Description

Daemon protecting your computer against BadUSB

Added to portage

2025-07-16

wordpress - 6.8.2
Ebuild name:

www-apps/wordpress-6.8.2

Description

Wordpress PHP and MySQL based content management system (CMS)

Added to portage

2025-07-16

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: 42.5 ms