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:

68179

userrating:

average rating: 1.2 (8 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
2024-07-27
bash - 5.3_alpha_p20240726
Ebuild name:

app-shells/bash-5.3_alpha_p20240726

Description

The standard GNU Bourne again shell

Added to portage

2024-07-27

faudio - 24.07
Ebuild name:

app-emulation/faudio-24.07

Description

Accuracy-focused XAudio reimplementation for open platforms

Added to portage

2024-07-27

installkernel - 41
Ebuild name:

sys-kernel/installkernel-41

Description

Gentoo fork of installkernel script from debianutils

Added to portage

2024-07-27

latexdiff - 1.3.4
Ebuild name:

dev-tex/latexdiff-1.3.4

Description

Compare two latex files and mark up significant differences

Added to portage

2024-07-27

litecli - 1.11.1
Ebuild name:

dev-db/litecli-1.11.1

Description

CLI for SQLite with auto-completion and syntax highlighting

Added to portage

2024-07-27

maildrop - 3.1.7
Ebuild name:

mail-filter/maildrop-3.1.7

Description

Mail delivery agent/filter

Added to portage

2024-07-27

metee - 4.2.0
Ebuild name:

dev-libs/metee-4.2.0

Description

Cross-platform access library for Intel CSME HECI interface

Added to portage

2024-07-27

pahole - 1.27-r1
Ebuild name:

dev-util/pahole-1.27-r1

Description

pahole (Poke-a-Hole) and other DWARF utilities

Added to portage

2024-07-27

ssldump - 1.8
Ebuild name:

net-analyzer/ssldump-1.8

Description

An SSLv3/TLS network protocol analyzer

Added to portage

2024-07-27

tcping - 2.1.0
Ebuild name:

net-analyzer/tcping-2.1.0

Description

Check if a desired port is reachable via TCP

Added to portage

2024-07-27

2024-07-26
apprise - 1.8.1
Ebuild name:

dev-python/apprise-1.8.1

Description

Push Notifications that work with just about every platform

Added to portage

2024-07-26

aquamarine - 0.1.1-r1
Ebuild name:

gui-libs/aquamarine-0.1.1-r1

Description

Aquamarine is a very light linux rendering backend library

Added to portage

2024-07-26

atlas - 3.10.2-r1
Ebuild name:

sci-libs/atlas-3.10.2-r1

Description

Automatically Tuned Linear Algebra Software

Added to portage

2024-07-26

atlas - 3.10.3
Ebuild name:

sci-libs/atlas-3.10.3

Description

Automatically Tuned Linear Algebra Software

Added to portage

2024-07-26

atlas - 3.11.41
Ebuild name:

sci-libs/atlas-3.11.41

Description

Automatically Tuned Linear Algebra Software

Added to portage

2024-07-26

atpublic - 5.0
Ebuild name:

dev-python/atpublic-5.0

Description

A decorator to populate __all__ and the module globals

Added to portage

2024-07-26

awscli - 1.33.31
Ebuild name:

app-admin/awscli-1.33.31

Description

Universal Command Line Environment for AWS

Added to portage

2024-07-26

bindgen - 0.69.4
Ebuild name:

dev-util/bindgen-0.69.4

Description

Automatically generates Rust FFI bindings to C and C++ libraries.

Added to portage

2024-07-26

blueman - 2.4.3
Ebuild name:

net-wireless/blueman-2.4.3

Description

Simple and intuitive GTK+ Bluetooth Manager

Added to portage

2024-07-26

boto3 - 1.34.149
Ebuild name:

dev-python/boto3-1.34.149

Description

The AWS SDK for Python

Added to portage

2024-07-26

botocore - 1.34.149
Ebuild name:

dev-python/botocore-1.34.149

Description

Low-level, data-driven core of boto 3

Added to portage

2024-07-26

croniter - 3.0.1
Ebuild name:

dev-python/croniter-3.0.1

Description

Python module to provide iteration for datetime object

Added to portage

2024-07-26

docile - 1.4.1
Ebuild name:

dev-ruby/docile-1.4.1

Description

Turns any Ruby object into a DSL

Added to portage

2024-07-26

faraday-net_http - 3.1.1
Ebuild name:

dev-ruby/faraday-net_http-3.1.1

Description

Faraday adapter for Net

Added to portage

2024-07-26

fastfetch - 2.20.0
Ebuild name:

app-misc/fastfetch-2.20.0

Description

Fast neofetch-like system information tool

Added to portage

2024-07-26

google-api-python-client - 2.138.0
Ebuild name:

dev-python/google-api-python-client-2.138.0

Description

Google API Client for Python

Added to portage

2024-07-26

grisbi - 3.0.4
Ebuild name:

app-office/grisbi-3.0.4

Description

Grisbi is a personal accounting application for Linux

Added to portage

2024-07-26

hcloud - 2.1.0
Ebuild name:

dev-python/hcloud-2.1.0

Description

Official Hetzner Cloud python library

Added to portage

2024-07-26

ibus-m17n - 1.4.31
Ebuild name:

app-i18n/ibus-m17n-1.4.31

Description

M17N engine for IBus

Added to portage

2024-07-26

ibus-typing-booster - 2.25.14
Ebuild name:

app-i18n/ibus-typing-booster-2.25.14

Description

Completion input method for IBus

Added to portage

2024-07-26

kdsingleapplication - 1.1.0-r1
Ebuild name:

dev-libs/kdsingleapplication-1.1.0-r1

Description

KDAB's helper class for single-instance policy applications

Added to portage

2024-07-26

libcdada - 0.6.0
Ebuild name:

dev-libs/libcdada-0.6.0

Description

Basic data structures in C

Added to portage

2024-07-26

micropython - 1.23.0
Ebuild name:

dev-lang/micropython-1.23.0

Description

Python implementation for microcontrollers

Added to portage

2024-07-26

mkdocstrings - 0.25.2
Ebuild name:

dev-python/mkdocstrings-0.25.2

Description

Automatic documentation from sources, for MkDocs

Added to portage

2024-07-26

mkdocstrings-python - 1.10.7
Ebuild name:

dev-python/mkdocstrings-python-1.10.7

Description

Python handler for dev-python/mkdocstrings

Added to portage

2024-07-26

mrcfile - 1.5.3
Ebuild name:

dev-python/mrcfile-1.5.3

Description

MRC2014 file format I/O library

Added to portage

2024-07-26

munin - 2.0.76-r1
Ebuild name:

net-analyzer/munin-2.0.76-r1

Description

Munin Server Monitoring Tool

Added to portage

2024-07-26

openjdk - 8.422_p05
Ebuild name:

dev-java/openjdk-8.422_p05

Description

Open source implementation of the Java programming language

Added to portage

2024-07-26

openjdk-bin - 8.422_p05
Ebuild name:

dev-java/openjdk-bin-8.422_p05

Description

Prebuilt Java JDK binaries provided by Eclipse Temurin

Added to portage

2024-07-26

owncloud-client - 5.2.1.13040-r1
Ebuild name:

net-misc/owncloud-client-5.2.1.13040-r1

Description

Synchronize files from ownCloud Server with your computer

Added to portage

2024-07-26

pytest - 8.3.2
Ebuild name:

dev-python/pytest-8.3.2

Description

Simple powerful testing with Python

Added to portage

2024-07-26

regress - 1.5.1
Ebuild name:

app-emacs/regress-1.5.1

Description

Regression test harness for Emacs Lisp code

Added to portage

2024-07-26

rssguard - 4.7.3
Ebuild name:

net-news/rssguard-4.7.3

Description

Simple (yet powerful) news feed reader

Added to portage

2024-07-26

simutrans - 124.1
Ebuild name:

games-simulation/simutrans-124.1

Description

A free Transport Tycoon clone

Added to portage

2024-07-26

sqlglot - 25.7.1
Ebuild name:

dev-python/sqlglot-25.7.1

Description

An easily customizable SQL parser and transpiler

Added to portage

2024-07-26

strawberry - 1.0.23-r2
Ebuild name:

media-sound/strawberry-1.0.23-r2

Description

Modern music player and library organizer based on Clementine and

Added to portage

2024-07-26

stripe - 10.5.0
Ebuild name:

dev-python/stripe-10.5.0

Description

Stripe Python bindings

Added to portage

2024-07-26

tempora - 5.7.0
Ebuild name:

dev-python/tempora-5.7.0

Description

Objects and routines pertaining to date and time

Added to portage

2024-07-26

tomcat-native - 1.3.1
Ebuild name:

dev-java/tomcat-native-1.3.1

Description

Allows Tomcat to use certain native resources for better performance

Added to portage

2024-07-26

tuxedo-drivers - 4.6.1
Ebuild name:

app-laptop/tuxedo-drivers-4.6.1

Description

Kernel modules for TUXEDO laptops

Added to portage

2024-07-26

virtualbox - 7.1.0_beta1
Ebuild name:

app-emulation/virtualbox-7.1.0_beta1

Description

Family of powerful x86 virtualization products for enterprise

Added to portage

2024-07-26

virtualbox-additions - 7.1.0_beta1
Ebuild name:

app-emulation/virtualbox-additions-7.1.0_beta1

Description

CD image containing guest additions for VirtualBox

Added to portage

2024-07-26

virtualbox-extpack-oracle - 7.1.0_beta1
Ebuild name:

app-emulation/virtualbox-extpack-oracle-7.1.0_beta1

Description

PUEL extensions for VirtualBox

Added to portage

2024-07-26

virtualbox-guest-additions - 7.1.0_beta1
Ebuild name:

app-emulation/virtualbox-guest-additions-7.1.0_beta1

Description

VirtualBox kernel modules and user-space tools

Added to portage

2024-07-26

virtualbox-modules - 7.1.0_beta1
Ebuild name:

app-emulation/virtualbox-modules-7.1.0_beta1

Description

Kernel Modules for Virtualbox

Added to portage

2024-07-26

yara-x - 0.5.0
Ebuild name:

app-forensics/yara-x-0.5.0

Description

A malware identification and classification tool

Added to portage

2024-07-26

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