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:

61800

userrating:

average rating: 1.5 (4 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
2022-08-19
Email-Address-XS - 1.50.0
Ebuild name:

dev-perl/Email-Address-XS-1.50.0

Description

Parse and format RFC 2822 email addresses and groups

Added to portage

2022-08-19

Email-MIME - 1.952.0
Ebuild name:

dev-perl/Email-MIME-1.952.0

Description

Easy MIME message parsing

Added to portage

2022-08-19

Email-Valid - 1.203.0
Ebuild name:

dev-perl/Email-Valid-1.203.0

Description

Check validity of Internet email addresses

Added to portage

2022-08-19

aspell-sl - 0.50.0-r1
Ebuild name:

app-dicts/aspell-sl-0.50.0-r1

Description

Added to portage

2022-08-19

awscli - 1.25.54
Ebuild name:

app-admin/awscli-1.25.54

Description

Universal Command Line Environment for AWS

Added to portage

2022-08-19

bgpq4 - 1.5
Ebuild name:

net-misc/bgpq4-1.5

Description

Generate access-lists for various routers, maintained fork of bgpq3

Added to portage

2022-08-19

boto3 - 1.24.54
Ebuild name:

dev-python/boto3-1.24.54

Description

The AWS SDK for Python

Added to portage

2022-08-19

botocore - 1.27.54
Ebuild name:

dev-python/botocore-1.27.54

Description

Low-level, data-driven core of boto 3

Added to portage

2022-08-19

chrome-binary-plugins - 106.0.5245.0_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-106.0.5245.0_alpha

Description

Binary plugins from Google Chrome for use in C

Added to portage

2022-08-19

emacspeak - 56.0-r1
Ebuild name:

app-accessibility/emacspeak-56.0-r1

Description

The emacspeak audio desktop

Added to portage

2022-08-19

ensurepip-setuptools - 65.1.0
Ebuild name:

dev-python/ensurepip-setuptools-65.1.0

Description

Shared setuptools wheel for ensurepip Python module

Added to portage

2022-08-19

exo - 1.59.0
Ebuild name:

app-admin/exo-1.59.0

Description

Command-line tool for everything at Exoscale compute, storage, dns

Added to portage

2022-08-19

gamescope - 3.11.36
Ebuild name:

gui-wm/gamescope-3.11.36

Description

Efficient micro-compositor for running games

Added to portage

2022-08-19

git - 1.12.0
Ebuild name:

dev-ruby/git-1.12.0

Description

Library for using Git in Ruby

Added to portage

2022-08-19

glusterfs - 10.2-r2
Ebuild name:

sys-cluster/glusterfs-10.2-r2

Description

GlusterFS is a powerful network/cluster filesystem

Added to portage

2022-08-19

google-chrome-unstable - 106.0.5245.0
Ebuild name:

www-client/google-chrome-unstable-106.0.5245.0

Description

The web browser from Google

Added to portage

2022-08-19

gr-iqbal - 0.38.2_p20210108
Ebuild name:

net-wireless/gr-iqbal-0.38.2_p20210108

Description

gnuradio I/Q balancing

Added to portage

2022-08-19

gr-osmosdr - 0.2.3_p20210128
Ebuild name:

net-wireless/gr-osmosdr-0.2.3_p20210128

Description

GNU Radio source block for OsmoSDR and rtlsdr and hackrf

Added to portage

2022-08-19

hatch-fancy-pypi-readme - 22.3.0
Ebuild name:

dev-python/hatch-fancy-pypi-readme-22.3.0

Description

Fancy PyPI READMEs with Hatch

Added to portage

2022-08-19

hcloud - 1.30.3
Ebuild name:

app-admin/hcloud-1.30.3

Description

A command-line interface for Hetzner Cloud

Added to portage

2022-08-19

idea-community - 2022.2.1.222.3739.54
Ebuild name:

dev-util/idea-community-2022.2.1.222.3739.54

Description

A complete toolset for web, mobile and enterprise deve

Added to portage

2022-08-19

iotop-c - 1.22
Ebuild name:

sys-process/iotop-c-1.22

Description

top utility for IO (C port)

Added to portage

2022-08-19

ipywidgets - 8.0.1
Ebuild name:

dev-python/ipywidgets-8.0.1

Description

IPython HTML widgets for Jupyter

Added to portage

2022-08-19

jsonschema - 4.12.1
Ebuild name:

dev-python/jsonschema-4.12.1

Description

An implementation of JSON-Schema validation for Python

Added to portage

2022-08-19

libewf - 20171104-r2
Ebuild name:

app-forensics/libewf-20171104-r2

Description

Implementation of the EWF (SMART and EnCase) image format

Added to portage

2022-08-19

libiio - 0.24
Ebuild name:

net-libs/libiio-0.24

Description

Library for interfacing with IIO devices

Added to portage

2022-08-19

libliftoff - 0.3.0
Ebuild name:

dev-libs/libliftoff-0.3.0

Description

Lightweight KMS plane library

Added to portage

2022-08-19

libtracefs - 1.4.2
Ebuild name:

dev-libs/libtracefs-1.4.2

Description

Linux kernel trace file system library

Added to portage

2022-08-19

liquidprompt - 2.1.2
Ebuild name:

app-shells/liquidprompt-2.1.2

Description

Full-featured & carefully designed adaptive prompt for Bash &

Added to portage

2022-08-19

lldpd - 1.0.15-r1
Ebuild name:

net-misc/lldpd-1.0.15-r1

Description

Implementation of IEEE 802.1ab (LLDP)

Added to portage

2022-08-19

matplotlib-inline - 0.1.6
Ebuild name:

dev-python/matplotlib-inline-0.1.6

Description

Inline Matplotlib backend for Jupyter

Added to portage

2022-08-19

meson - 0.63.1
Ebuild name:

dev-util/meson-0.63.1

Description

Open source build system

Added to portage

2022-08-19

mosquitto - 2.0.15
Ebuild name:

app-misc/mosquitto-2.0.15

Description

An Open Source MQTT v3 Broker

Added to portage

2022-08-19

mpd - 0.23.9
Ebuild name:

media-sound/mpd-0.23.9

Description

The Music Player Daemon (mpd)

Added to portage

2022-08-19

nss - 3.82
Ebuild name:

dev-libs/nss-3.82

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2022-08-19

pyspnego - 0.6.0
Ebuild name:

dev-python/pyspnego-0.6.0

Description

Library to handle SPNEGO and CredSSP authentication

Added to portage

2022-08-19

python-openstackclient - 6.0.0
Ebuild name:

dev-python/python-openstackclient-6.0.0

Description

A client for the OpenStack APIs

Added to portage

2022-08-19

pyupgrade - 2.37.3
Ebuild name:

dev-python/pyupgrade-2.37.3

Description

A tool (and pre-commit hook) to automatically upgrade syntax for newer

Added to portage

2022-08-19

regex - 2022.8.17
Ebuild name:

dev-python/regex-2022.8.17

Description

Alternative regular expression module to replace re

Added to portage

2022-08-19

setuptools - 65.1.0
Ebuild name:

dev-python/setuptools-65.1.0

Description

Collection of extensions to Distutils

Added to portage

2022-08-19

shadow - 4.12.2
Ebuild name:

sys-apps/shadow-4.12.2

Description

Utilities to deal with user accounts

Added to portage

2022-08-19

spidermonkey - 102.1.0-r1
Ebuild name:

dev-lang/spidermonkey-102.1.0-r1

Description

SpiderMonkey is Mozilla's JavaScript engine written in C and C++

Added to portage

2022-08-19

tokenize-rt - 4.2.1
Ebuild name:

dev-python/tokenize-rt-4.2.1

Description

A wrapper around the stdlib 'tokenize' which roundtrips

Added to portage

2022-08-19

toybox - 0.8.8
Ebuild name:

sys-apps/toybox-0.8.8

Description

Common linux commands in a multicall binary

Added to portage

2022-08-19

uglifyjs - 3.17.0
Ebuild name:

dev-util/uglifyjs-3.17.0

Description

JavaScript parser, minifier, compressor and beautifier toolkit

Added to portage

2022-08-19

vivaldi - 5.4.2753.37
Ebuild name:

www-client/vivaldi-5.4.2753.37

Description

A browser for our friends

Added to portage

2022-08-19

yt-dlp - 2022.8.19
Ebuild name:

net-misc/yt-dlp-2022.8.19

Description

youtube-dl fork with additional features and fixes

Added to portage

2022-08-19

2022-08-18
Faker - 14.1.0
Ebuild name:

dev-python/Faker-14.1.0

Description

A Python package that generates fake data for you

Added to portage

2022-08-18

aspell-rw - 0.50.0-r1
Ebuild name:

app-dicts/aspell-rw-0.50.0-r1

Description

Added to portage

2022-08-18

aspell-sc - 1.0-r1
Ebuild name:

app-dicts/aspell-sc-1.0-r1

Description

Added to portage

2022-08-18

aspell-sk - 2.02.0-r1
Ebuild name:

app-dicts/aspell-sk-2.02.0-r1

Description

Added to portage

2022-08-18

aspell-sl - 0.50.0-r1
Ebuild name:

app-dicts/aspell-sl-0.50.0-r1

Description

Added to portage

2022-08-18

avahi - 0.8-r6
Ebuild name:

net-dns/avahi-0.8-r6

Description

System which facilitates service discovery on a local network

Added to portage

2022-08-18

aws-sam-translator - 1.50.0
Ebuild name:

dev-python/aws-sam-translator-1.50.0

Description

A library that transform SAM templates into AWS CloudFormation

Added to portage

2022-08-18

awscli - 1.25.53
Ebuild name:

app-admin/awscli-1.25.53

Description

Universal Command Line Environment for AWS

Added to portage

2022-08-18

bind - 9.16.32
Ebuild name:

net-dns/bind-9.16.32

Description

Berkeley Internet Name Domain - Name Server

Added to portage

2022-08-18

bind-tools - 9.16.32
Ebuild name:

net-dns/bind-tools-9.16.32

Description

bind tools dig, nslookup, host, nsupdate, dnssec-keygen

Added to portage

2022-08-18

bitlbee - 3.6-r2
Ebuild name:

net-im/bitlbee-3.6-r2

Description

irc to IM gateway that support multiple IM protocols

Added to portage

2022-08-18

bitlbee - 3.6-r3
Ebuild name:

net-im/bitlbee-3.6-r3

Description

irc to IM gateway that support multiple IM protocols

Added to portage

2022-08-18

boto3 - 1.24.53
Ebuild name:

dev-python/boto3-1.24.53

Description

The AWS SDK for Python

Added to portage

2022-08-18

botocore - 1.27.53
Ebuild name:

dev-python/botocore-1.27.53

Description

Low-level, data-driven core of boto 3

Added to portage

2022-08-18

chrome-binary-plugins - 105.0.5195.37_beta
Ebuild name:

www-plugins/chrome-binary-plugins-105.0.5195.37_beta

Description

Binary plugins from Google Chrome for use in C

Added to portage

2022-08-18

cmake - 3.24.1
Ebuild name:

dev-util/cmake-3.24.1

Description

Cross platform Make

Added to portage

2022-08-18

cwcwidth - 0.1.7
Ebuild name:

dev-python/cwcwidth-0.1.7

Description

Python bindings for wc(s)width

Added to portage

2022-08-18

dist-kernel - 5.15.61
Ebuild name:

virtual/dist-kernel-5.15.61

Description

Virtual to depend on any Distribution Kernel

Added to portage

2022-08-18

dist-kernel - 5.18.18
Ebuild name:

virtual/dist-kernel-5.18.18

Description

Virtual to depend on any Distribution Kernel

Added to portage

2022-08-18

fonttools - 4.36.0
Ebuild name:

dev-python/fonttools-4.36.0

Description

Library for manipulating TrueType, OpenType, AFM and Type1 fonts

Added to portage

2022-08-18

gentoo-kernel - 5.15.61
Ebuild name:

sys-kernel/gentoo-kernel-5.15.61

Description

Linux kernel built with Gentoo patches

Added to portage

2022-08-18

gentoo-kernel - 5.18.18
Ebuild name:

sys-kernel/gentoo-kernel-5.18.18

Description

Linux kernel built with Gentoo patches

Added to portage

2022-08-18

gentoo-kernel-bin - 5.15.61
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.15.61

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2022-08-18

gentoo-kernel-bin - 5.18.18
Ebuild name:

sys-kernel/gentoo-kernel-bin-5.18.18

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2022-08-18

google-chrome-beta - 105.0.5195.37
Ebuild name:

www-client/google-chrome-beta-105.0.5195.37

Description

The web browser from Google

Added to portage

2022-08-18

gtk - 4.6.7
Ebuild name:

gui-libs/gtk-4.6.7

Description

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

Added to portage

2022-08-18

hcloud-python - 1.18.0
Ebuild name:

dev-python/hcloud-python-1.18.0

Description

Official Hetzner Cloud python library

Added to portage

2022-08-18

hdf5 - 1.12.2-r5
Ebuild name:

sci-libs/hdf5-1.12.2-r5

Description

General purpose library and file format for storing scientific data

Added to portage

2022-08-18

jaraco-logging - 3.1.1
Ebuild name:

dev-python/jaraco-logging-3.1.1

Description

Additional facilities to supplement Python's stdlib logging module

Added to portage

2022-08-18

json-parser - 1.1.0_p20211208
Ebuild name:

dev-libs/json-parser-1.1.0_p20211208

Description

Very low footprint JSON parser written in portable ANSI C

Added to portage

2022-08-18

jsonschema - 4.10.2
Ebuild name:

dev-python/jsonschema-4.10.2

Description

An implementation of JSON-Schema validation for Python

Added to portage

2022-08-18

lesspipe - 2.06
Ebuild name:

app-text/lesspipe-2.06

Description

A preprocessor for less

Added to portage

2022-08-18

libgssglue - 0.7
Ebuild name:

net-libs/libgssglue-0.7

Description

Exports a gssapi interface which calls other random gssapi libraries

Added to portage

2022-08-18

liblouis - 3.22.0
Ebuild name:

dev-libs/liblouis-3.22.0

Description

An open-source braille translator and back-translator

Added to portage

2022-08-18

libtmux - 0.14.2
Ebuild name:

dev-python/libtmux-0.14.2

Description

python api for tmux

Added to portage

2022-08-18

libxml2 - 2.10.0
Ebuild name:

dev-libs/libxml2-2.10.0

Description

XML C parser and toolkit

Added to portage

2022-08-18

libxslt - 1.1.36
Ebuild name:

dev-libs/libxslt-1.1.36

Description

XSLT libraries and tools

Added to portage

2022-08-18

matplotlib-inline - 0.1.5
Ebuild name:

dev-python/matplotlib-inline-0.1.5

Description

Inline Matplotlib backend for Jupyter

Added to portage

2022-08-18

mesa - 22.1.7
Ebuild name:

media-libs/mesa-22.1.7

Description

OpenGL-like graphic library for Linux

Added to portage

2022-08-18

microsoft-edge-dev - 106.0.1349.1
Ebuild name:

www-client/microsoft-edge-dev-106.0.1349.1

Description

The web browser from Microsoft

Added to portage

2022-08-18

nodejs - 16.17.0
Ebuild name:

net-libs/nodejs-16.17.0

Description

A JavaScript runtime built on Chrome's V8 JavaScript engine

Added to portage

2022-08-18

ntopng - 5.2.1-r1
Ebuild name:

net-analyzer/ntopng-5.2.1-r1

Description

Network traffic analyzer with web interface

Added to portage

2022-08-18

openpgp-keys-bradking - 20220818
Ebuild name:

sec-keys/openpgp-keys-bradking-20220818

Description

OpenPGP keys used by Brad King

Added to portage

2022-08-18

opera-developer - 91.0.4514.0
Ebuild name:

www-client/opera-developer-91.0.4514.0

Description

A fast and secure web browser

Added to portage

2022-08-18

qtractor - 0.9.27-r1
Ebuild name:

media-sound/qtractor-0.9.27-r1

Description

Audio/MIDI multi-track sequencer written in C++ with the Qt framewor

Added to portage

2022-08-18

recoll - 1.32.5
Ebuild name:

app-misc/recoll-1.32.5

Description

Personal full text search package

Added to portage

2022-08-18

sentry-sdk - 1.7.2
Ebuild name:

dev-python/sentry-sdk-1.7.2

Description

Python client for Sentry

Added to portage

2022-08-18

tempestsdr - 0.0_p20200221-r1
Ebuild name:

net-wireless/tempestsdr-0.0_p20200221-r1

Description

Remote video eavesdropping using a software-defined radio

Added to portage

2022-08-18

vanilla-kernel - 5.15.61
Ebuild name:

sys-kernel/vanilla-kernel-5.15.61

Description

Linux kernel built from vanilla upstream sources

Added to portage

2022-08-18

vanilla-kernel - 5.18.18
Ebuild name:

sys-kernel/vanilla-kernel-5.18.18

Description

Linux kernel built from vanilla upstream sources

Added to portage

2022-08-18

wireshark - 4.0.0_rc1
Ebuild name:

net-analyzer/wireshark-4.0.0_rc1

Description

A network protocol analyzer formerly known as ethereal

Added to portage

2022-08-18

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