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:

9272

userrating:

no votes yet


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
Please read "Why adblockers are bad".



other Ads
Stellenangebote
Stellenangebote
für Fach- und
Führungskräfte
www.nachoben.com
Trace My Cash
Wenn Sie sich schon immer mal gefragt haben, wo eigentlich Ihr geliebtes Bargeld geblieben ist, finden Sie hier vielleicht die Antwort.
www.tracemycash.com
Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
FeedCollector
Combine various newsfeeds to one customized webpage
www.feedcollector.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2010-09-03
bchunk - 1.2.0-r1
Ebuild name:

app-cdr/bchunk-1.2.0-r1

Description

Converts bin/cue CD-images to iso+wav/cdr

Added to portage

2010-09-03

corosync - 1.2.8
Ebuild name:

sys-cluster/corosync-1.2.8

Description

OSI Certified implementation of a complete cluster engine

Added to portage

2010-09-03

global - 5.9.2-r1
Ebuild name:

dev-util/global-5.9.2-r1

Description

GNU Global is a tag system to find the locations of a specified object in

Added to portage

2010-09-03

gradm - 2.2.0.201008292125
Ebuild name:

sys-apps/gradm-2.2.0.201008292125

Description

Administrative interface for the grsecurity Role Based Access Con

Added to portage

2010-09-03

hardened-sources - 2.6.32-r15
Ebuild name:

sys-kernel/hardened-sources-2.6.32-r15

Description

Hardened kernel sources (kernel series .)

Added to portage

2010-09-03

hardened-sources - 2.6.34-r3
Ebuild name:

sys-kernel/hardened-sources-2.6.34-r3

Description

Hardened kernel sources (kernel series .)

Added to portage

2010-09-03

kiwix - 0.9_alpha6
Ebuild name:

app-text/kiwix-0.9_alpha6

Description

A ZIM reader, especially for offline web content retrieved from Wikipedia

Added to portage

2010-09-03

lftp - 4.0.10
Ebuild name:

net-ftp/lftp-4.0.10

Description

A sophisticated ftp/sftp/http/https/torrent client and file transfer program

Added to portage

2010-09-03

nagios - 3.2.2
Ebuild name:

net-analyzer/nagios-3.2.2

Description

The Nagios metapackage - merge this to pull install all of the nagios pac

Added to portage

2010-09-03

nagios-core - 3.2.2
Ebuild name:

net-analyzer/nagios-core-3.2.2

Description

Nagios Core - Check daemon, CGIs, docs

Added to portage

2010-09-03

nbaudit - 1.0-r2
Ebuild name:

net-analyzer/nbaudit-1.0-r2

Description

NetBIOS file sharing services scanner (nat10)

Added to portage

2010-09-03

nmon - 14a
Ebuild name:

sys-process/nmon-14a

Description

Nigel's performance MONitor for CPU, memory, network, disks, etc...

Added to portage

2010-09-03

portage - 2.2_rc74
Ebuild name:

sys-apps/portage-2.2_rc74

Description

Portage is the package management and distribution system for Gentoo

Added to portage

2010-09-03

smbnetfs - 0.5.3
Ebuild name:

net-fs/smbnetfs-0.5.3

Description

FUSE filesystem for SMB shares

Added to portage

2010-09-03

usb_modeswitch - 1.1.4
Ebuild name:

sys-apps/usb_modeswitch-1.1.4

Description

USB_ModeSwitch is a tool for controlling 'flip flop' (multiple device

Added to portage

2010-09-03

virt-manager - 0.8.5
Ebuild name:

app-emulation/virt-manager-0.8.5

Description

A graphical tool for administering virtual machines (KVM/Xen)

Added to portage

2010-09-03

virtinst - 0.500.4
Ebuild name:

app-emulation/virtinst-0.500.4

Description

Python modules for starting virtualized guest installations

Added to portage

2010-09-03

2010-09-02
URI - 1.55
Ebuild name:

dev-perl/URI-1.55

Description

A URI Perl Module

Added to portage

2010-09-02

WWW-Curl - 4.13
Ebuild name:

dev-perl/WWW-Curl-4.13

Description

Perl extension interface for libcurl

Added to portage

2010-09-02

asciitable - 0.2.6
Ebuild name:

dev-python/asciitable-0.2.6

Description

An extensible ASCII table reader

Added to portage

2010-09-02

atpy - 0.9.4
Ebuild name:

dev-python/atpy-0.9.4

Description

Astronomical tables support Python

Added to portage

2010-09-02

bti - 028
Ebuild name:

net-misc/bti-028

Description

A command line twitter/identi.ca client

Added to portage

2010-09-02

bzr-gtk - 0.99.0
Ebuild name:

dev-vcs/bzr-gtk-0.99.0

Description

A GTK+ interfaces to most Bazaar operations

Added to portage

2010-09-02

cfengine - 3.0.5_p1
Ebuild name:

net-misc/cfengine-3.0.5_p1

Description

An automated suite of programs for configuring and maintaining Unix-like

Added to portage

2010-09-02

choqok - 0.9.90
Ebuild name:

net-im/choqok-0.9.90

Description

A Free/Open Source micro-blogging client for KDE

Added to portage

2010-09-02

chromium - 6.0.472.53
Ebuild name:

www-client/chromium-6.0.472.53

Description

Open-source version of Google Chrome web browser

Added to portage

2010-09-02

feh - 1.9
Ebuild name:

media-gfx/feh-1.9

Description

A fast, lightweight imageviewer using imlib2

Added to portage

2010-09-02

freeverb3 - 2.5.8
Ebuild name:

media-libs/freeverb3-2.5.8

Description

High Quality Reverb and Impulse Response Convolution library including X

Added to portage

2010-09-02

gtk-doc - 1.15-r1
Ebuild name:

dev-util/gtk-doc-1.15-r1

Description

GTK+ Documentation Generator

Added to portage

2010-09-02

icedtea6-bin - 1.8.1-r1
Ebuild name:

dev-java/icedtea6-bin-1.8.1-r1

Description

A Gentoo-made binary build of the icedtea6 JDK

Added to portage

2010-09-02

libview - 0.6.6
Ebuild name:

x11-libs/libview-0.6.6

Description

VMware's Incredibly Exciting Widgets

Added to portage

2010-09-02

mysql - 5.1.50-r1
Ebuild name:

dev-db/mysql-5.1.50-r1

Description

Based on the eclass

Added to portage

2010-09-02

numpy - 1.5.0
Ebuild name:

dev-python/numpy-1.5.0

Description

Fast array and numerical python library

Added to portage

2010-09-02

openrc - 0.6.3
Ebuild name:

sys-apps/openrc-0.6.3

Description

OpenRC manages the services, startup and shutdown of a host

Added to portage

2010-09-02

paml - 4.4c
Ebuild name:

sci-biology/paml-4.4c

Description

Phylogenetic Analysis by Maximum Likelihood

Added to portage

2010-09-02

portage - 2.2_rc73
Ebuild name:

sys-apps/portage-2.2_rc73

Description

Portage is the package management and distribution system for Gentoo

Added to portage

2010-09-02

portpeek - 1.9.45
Ebuild name:

app-portage/portpeek-1.9.45

Description

A helper program for maintaining the package.keyword and package.unmask

Added to portage

2010-09-02

portpeek - 2.0.5
Ebuild name:

app-portage/portpeek-2.0.5

Description

A helper program for maintaining the package.keyword and package.unmask

Added to portage

2010-09-02

postgresql-base - 9.0_rc1
Ebuild name:

dev-db/postgresql-base-9.0_rc1

Description

PostgreSQL libraries and clients

Added to portage

2010-09-02

postgresql-docs - 9.0_rc1
Ebuild name:

dev-db/postgresql-docs-9.0_rc1

Description

PostgreSQL documentation

Added to portage

2010-09-02

postgresql-server - 9.0_rc1
Ebuild name:

dev-db/postgresql-server-9.0_rc1

Description

PostgreSQL server

Added to portage

2010-09-02

redet - 8.26
Ebuild name:

dev-util/redet-8.26

Description

A regular expression development and execution tool

Added to portage

2010-09-02

ruby-enterprise - 1.8.7.2010.02-r1
Ebuild name:

dev-lang/ruby-enterprise-1.8.7.2010.02-r1

Description

Ruby Enterprise Edition is a branch of Ruby including var

Added to portage

2010-09-02

sane-backends - 1.0.21-r1
Ebuild name:

media-gfx/sane-backends-1.0.21-r1

Description

Scanner Access Now Easy - Backends

Added to portage

2010-09-02

tripwire - 2.4.2-r1
Ebuild name:

app-admin/tripwire-2.4.2-r1

Description

Open Source File Integrity Checker and IDS

Added to portage

2010-09-02

vo - 0.6
Ebuild name:

dev-python/vo-0.6

Description

Python module to read VOTABLE into a Numpy recarray

Added to portage

2010-09-02

xen-sources - 2.6.34-r3
Ebuild name:

sys-kernel/xen-sources-2.6.34-r3

Description

Full sources for a dom0/domU Linux kernel to run under Xen

Added to portage

2010-09-02

yaml - 0.72
Ebuild name:

dev-perl/yaml-0.72

Description

YAML Ain't Markup Language (tm)

Added to portage

2010-09-02

zen-sources - 2.6.35_p2
Ebuild name:

sys-kernel/zen-sources-2.6.35_p2

Description

The Zen Kernel Sources v2.6

Added to portage

2010-09-02

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004 S&P Softwaredesign
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: 18.5 ms
system status display
Stellenangebote
Ärger mit Freenet.de