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:

37373

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



other Ads
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
.
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
2017-04-28
allin1 - 0.5.0-r2
Ebuild name:

x11-plugins/allin1-0.5.0-r2

Description

All in one monitoring dockapp RAM, CPU, Net, Power, df, seti

Added to portage

2017-04-28

cutecom - 0.40.0-r1
Ebuild name:

net-dialup/cutecom-0.40.0-r1

Description

CuteCom is a serial terminal, like minicom, written in qt

Added to portage

2017-04-28

facter - 3.6.4
Ebuild name:

dev-ruby/facter-3.6.4

Description

A cross-platform ruby library for retrieving facts from operating systems

Added to portage

2017-04-28

libkgapi - 17.04.0-r1
Ebuild name:

kde-apps/libkgapi-17.04.0-r1

Description

Library for accessing Google calendar and contact resources

Added to portage

2017-04-28

opera-beta - 45.0.2552.626
Ebuild name:

www-client/opera-beta-45.0.2552.626

Description

A fast and secure web browser

Added to portage

2017-04-28

2017-04-27
abcmidi - 2017.04.19
Ebuild name:

media-sound/abcmidi-2017.04.19

Description

Programs for processing ABC music notation files

Added to portage

2017-04-27

aunit - 2016
Ebuild name:

dev-ada/aunit-2016

Description

Ada unit testing framework

Added to portage

2017-04-27

autoconf - 2.69-r3
Ebuild name:

sys-devel/autoconf-2.69-r3

Description

Used to create autoconfiguration files

Added to portage

2017-04-27

backports - 3.8.0
Ebuild name:

dev-ruby/backports-3.8.0

Description

Backports of Ruby features for older Ruby

Added to portage

2017-04-27

busybox - 1.26.2-r1
Ebuild name:

sys-apps/busybox-1.26.2-r1

Description

Utilities for rescue and embedded systems

Added to portage

2017-04-27

chrome-gnome-shell - 9
Ebuild name:

gnome-extra/chrome-gnome-shell-9

Description

GNOME Shell integration for Chrome/Chromium, Firefox, Vivaldi, Ope

Added to portage

2017-04-27

collada_parser - 1.12.9
Ebuild name:

dev-ros/collada_parser-1.12.9

Description

C++ parser for the Collada robot description format

Added to portage

2017-04-27

collada_urdf - 1.12.9
Ebuild name:

dev-ros/collada_urdf-1.12.9

Description

Tool to convert Unified Robot Description Format (URDF) documents into

Added to portage

2017-04-27

composer - 1.4.1
Ebuild name:

dev-php/composer-1.4.1

Description

Dependency Manager for PHP

Added to portage

2017-04-27

diagnostic_aggregator - 1.9.0
Ebuild name:

dev-ros/diagnostic_aggregator-1.9.0

Description

Aggregates ROS diagnostics

Added to portage

2017-04-27

diagnostic_analysis - 1.9.0
Ebuild name:

dev-ros/diagnostic_analysis-1.9.0

Description

Converts diagnostics data into a series of CSV files

Added to portage

2017-04-27

diagnostic_common_diagnostics - 1.9.0
Ebuild name:

dev-ros/diagnostic_common_diagnostics-1.9.0

Description

Generic nodes for monitoring a linux host

Added to portage

2017-04-27

diagnostic_updater - 1.9.0
Ebuild name:

dev-ros/diagnostic_updater-1.9.0

Description

Tools for updating diagnostics

Added to portage

2017-04-27

diagnostics - 1.9.0
Ebuild name:

ros-meta/diagnostics-1.9.0

Description

Packages related to gathering, viewing, and analyzing diagnostics data f

Added to portage

2017-04-27

execline - 2.3.0.0
Ebuild name:

dev-lang/execline-2.3.0.0

Description

a non-interactive scripting language

Added to portage

2017-04-27

filebeat - 5.3.1
Ebuild name:

app-admin/filebeat-5.3.1

Description

Lightweight log shipper for Logstash and Elasticsearch

Added to portage

2017-04-27

filters - 1.8.1
Ebuild name:

dev-ros/filters-1.8.1

Description

Standardized interface for processing data as a sequence of filters

Added to portage

2017-04-27

flow_parser - 0.44.1
Ebuild name:

dev-ml/flow_parser-0.44.1

Description

JavaScript parser written in OCaml

Added to portage

2017-04-27

gentoo-sources - 4.10.13
Ebuild name:

sys-kernel/gentoo-sources-4.10.13

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-04-27

gentoo-sources - 4.4.64
Ebuild name:

sys-kernel/gentoo-sources-4.4.64

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-04-27

gentoo-sources - 4.9.25
Ebuild name:

sys-kernel/gentoo-sources-4.9.25

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-04-27

git - 2.13.0_rc1
Ebuild name:

dev-vcs/git-2.13.0_rc1

Description

stupid content tracker distributed VCS designed for speed and efficiency

Added to portage

2017-04-27

graphite2 - 1.3.8-r1
Ebuild name:

media-gfx/graphite2-1.3.8-r1

Description

Library providing rendering capabilities for complex non-Roman writing

Added to portage

2017-04-27

graphite2 - 1.3.9-r1
Ebuild name:

media-gfx/graphite2-1.3.9-r1

Description

Library providing rendering capabilities for complex non-Roman writing

Added to portage

2017-04-27

grub - 2.02
Ebuild name:

sys-boot/grub-2.02

Description

GNU GRUB boot loader

Added to portage

2017-04-27

hyperscan - 4.4.1-r1
Ebuild name:

dev-libs/hyperscan-4.4.1-r1

Description

High-performance regular expression matching library

Added to portage

2017-04-27

jenkins-bin - 2.46.2
Ebuild name:

dev-util/jenkins-bin-2.46.2

Description

Extensible continuous integration server

Added to portage

2017-04-27

jenkins-bin - 2.57
Ebuild name:

dev-util/jenkins-bin-2.57

Description

Extensible continuous integration server

Added to portage

2017-04-27

joint_state_publisher - 1.12.9
Ebuild name:

dev-ros/joint_state_publisher-1.12.9

Description

Tool for setting and publishing joint state values for a given

Added to portage

2017-04-27

judy - 1.0.5-r1
Ebuild name:

dev-libs/judy-1.0.5-r1

Description

A C library that implements a dynamic array

Added to portage

2017-04-27

kdl_parser - 1.12.9
Ebuild name:

dev-ros/kdl_parser-1.12.9

Description

Constructs a KDL tree from an XML robot representation in URDF

Added to portage

2017-04-27

kdl_parser_py - 1.12.9
Ebuild name:

dev-ros/kdl_parser_py-1.12.9

Description

Python tools to construct a KDL tree from an XML robot representation

Added to portage

2017-04-27

live - 2017.04.26
Ebuild name:

media-plugins/live-2017.04.26

Description

Libraries for standards-based RTP/RTCP/RTSP multimedia streaming

Added to portage

2017-04-27

lnav - 0.8.2
Ebuild name:

app-admin/lnav-0.8.2

Description

A curses-based tool for viewing and analyzing log files

Added to portage

2017-04-27

logstash-bin - 5.3.1
Ebuild name:

app-admin/logstash-bin-5.3.1

Description

Tool for managing events and logs

Added to portage

2017-04-27

mail - 2.6.5
Ebuild name:

dev-ruby/mail-2.6.5

Description

An email handling library

Added to portage

2017-04-27

mcstrans - 9999
Ebuild name:

sys-apps/mcstrans-9999

Description

SELinux context translation to human readable names

Added to portage

2017-04-27

moreutils - 0.61
Ebuild name:

sys-apps/moreutils-0.61

Description

a collection of tools that nobody thought to write when Unix was young

Added to portage

2017-04-27

munkres - 1.0.8
Ebuild name:

dev-python/munkres-1.0.8

Description

Module implementing munkres algorithm for the Assignment Problem

Added to portage

2017-04-27

parallel - 20170422
Ebuild name:

sys-process/parallel-20170422

Description

A shell tool for executing jobs in parallel locally or on remote mach

Added to portage

2017-04-27

pcl_ros - 1.5.1
Ebuild name:

dev-ros/pcl_ros-1.5.1

Description

PCL (Point Cloud Library) ROS interface stack

Added to portage

2017-04-27

perception_pcl - 1.5.1
Ebuild name:

ros-meta/perception_pcl-1.5.1

Description

PCL (Point Cloud Library) ROS interface stack

Added to portage

2017-04-27

percona-xtrabackup - 2.4.7
Ebuild name:

dev-db/percona-xtrabackup-2.4.7

Description

Hot backup utility for MySQL based servers

Added to portage

2017-04-27

pikopixel - 1.0_beta7
Ebuild name:

gnustep-apps/pikopixel-1.0_beta7

Description

a free application for drawing & editing pixel-art images

Added to portage

2017-04-27

ppx_import - 1.2
Ebuild name:

dev-ml/ppx_import-1.2

Description

A syntax extension for importing declarations from interface files

Added to portage

2017-04-27

pygame - 1.9.3
Ebuild name:

dev-python/pygame-1.9.3

Description

Python bindings for SDL multimedia library

Added to portage

2017-04-27

pyudev - 0.21.0
Ebuild name:

dev-python/pyudev-0.21.0

Description

Python binding to libudev

Added to portage

2017-04-27

restorecond - 9999
Ebuild name:

sys-apps/restorecond-9999

Description

Daemon to watch for creation and set default SELinux fcontexts

Added to portage

2017-04-27

robot_model - 1.12.9
Ebuild name:

ros-meta/robot_model-1.12.9

Description

Packages for modeling various aspects of robot information

Added to portage

2017-04-27

rosdiagnostic - 1.9.0
Ebuild name:

dev-ros/rosdiagnostic-1.9.0

Description

Command to print aggregated diagnostic contents to the command line

Added to portage

2017-04-27

rosdiagnostic - 9999
Ebuild name:

dev-ros/rosdiagnostic-9999

Description

Command to print aggregated diagnostic contents to the command line

Added to portage

2017-04-27

s6 - 2.5.0.0
Ebuild name:

sys-apps/s6-2.5.0.0

Description

skarnet.org's small and secure supervision software suite

Added to portage

2017-04-27

s6-dns - 2.2.0.0
Ebuild name:

net-dns/s6-dns-2.2.0.0

Description

suite of DNS client programs and libraries for Unix systems

Added to portage

2017-04-27

s6-linux-init - 0.3.0.0
Ebuild name:

sys-apps/s6-linux-init-0.3.0.0

Description

Generates an init binary for s6-based init systems

Added to portage

2017-04-27

s6-linux-utils - 2.3.0.0
Ebuild name:

sys-apps/s6-linux-utils-2.3.0.0

Description

set of tiny linux utilities

Added to portage

2017-04-27

s6-networking - 2.3.0.0
Ebuild name:

net-misc/s6-networking-2.3.0.0

Description

suite of small networking utilities for Unix systems

Added to portage

2017-04-27

s6-portable-utils - 2.2.0.0
Ebuild name:

sys-apps/s6-portable-utils-2.2.0.0

Description

set of tiny portable unix utilities

Added to portage

2017-04-27

s6-rc - 0.2.0.0
Ebuild name:

sys-apps/s6-rc-0.2.0.0

Description

service manager for the s6 supervision suite

Added to portage

2017-04-27

seafile-client - 6.0.4-r2
Ebuild name:

net-misc/seafile-client-6.0.4-r2

Description

Seafile desktop client

Added to portage

2017-04-27

self_test - 1.9.0
Ebuild name:

dev-ros/self_test-1.9.0

Description

Robot self-test node

Added to portage

2017-04-27

signify - 20
Ebuild name:

app-crypt/signify-20

Description

Cryptographically sign and verify files

Added to portage

2017-04-27

skalibs - 2.5.0.0
Ebuild name:

dev-libs/skalibs-2.5.0.0

Description

skarnet.org general-purpose libraries

Added to portage

2017-04-27

sudo - 1.8.20_beta2
Ebuild name:

app-admin/sudo-1.8.20_beta2

Description

Allows users or groups to run commands as other users

Added to portage

2017-04-27

syncthing - 0.14.27
Ebuild name:

net-p2p/syncthing-0.14.27

Description

Open Source Continuous File Synchronization

Added to portage

2017-04-27

tcpreplay - 4.2.4
Ebuild name:

net-analyzer/tcpreplay-4.2.4

Description

utilities for editing and replaying previously captured network traffi

Added to portage

2017-04-27

teamviewer - 12.0.76279
Ebuild name:

net-misc/teamviewer-12.0.76279

Description

All-In-One Solution for Remote Access and Support over the Internet

Added to portage

2017-04-27

test_diagnostic_aggregator - 1.9.0
Ebuild name:

dev-ros/test_diagnostic_aggregator-1.9.0

Description

diagnostic_aggregator tests

Added to portage

2017-04-27

tigervnc - 1.7.1-r3
Ebuild name:

net-misc/tigervnc-1.7.1-r3

Description

Remote desktop viewer display system

Added to portage

2017-04-27

tor - 0.3.0.6
Ebuild name:

net-vpn/tor-0.3.0.6

Description

Anonymizing overlay network for TCP

Added to portage

2017-04-27

torque - 6.0.3
Ebuild name:

sys-cluster/torque-6.0.3

Description

Resource manager and queuing system based on OpenPBS

Added to portage

2017-04-27

urdf - 1.12.9
Ebuild name:

dev-ros/urdf-1.12.9

Description

C++ parser for the Unified Robot Description Format (URDF)

Added to portage

2017-04-27

urdf_parser_plugin - 1.12.9
Ebuild name:

dev-ros/urdf_parser_plugin-1.12.9

Description

C++ base class for URDF parsers

Added to portage

2017-04-27

vanilla-sources - 4.10.13
Ebuild name:

sys-kernel/vanilla-sources-4.10.13

Description

Full sources for the Linux kernel

Added to portage

2017-04-27

vanilla-sources - 4.4.64
Ebuild name:

sys-kernel/vanilla-sources-4.4.64

Description

Full sources for the Linux kernel

Added to portage

2017-04-27

vanilla-sources - 4.9.25
Ebuild name:

sys-kernel/vanilla-sources-4.9.25

Description

Full sources for the Linux kernel

Added to portage

2017-04-27

vivaldi - 1.9.818.44_p1
Ebuild name:

www-client/vivaldi-1.9.818.44_p1

Description

A new browser for our friends

Added to portage

2017-04-27

xapian - 1.4.4
Ebuild name:

dev-libs/xapian-1.4.4

Description

Xapian Probabilistic Information Retrieval library

Added to portage

2017-04-27

xapian-bindings - 1.4.4
Ebuild name:

dev-libs/xapian-bindings-1.4.4

Description

SWIG and JNI bindings for Xapian

Added to portage

2017-04-27

xapian-omega - 1.4.4
Ebuild name:

app-text/xapian-omega-1.4.4

Description

An application built on Xapian, consisting of indexers and a CGI search

Added to portage

2017-04-27

zziplib - 0.13.62-r2
Ebuild name:

dev-libs/zziplib-0.13.62-r2

Description

Lightweight library for extracting data from files archived in a single

Added to portage

2017-04-27

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2017 Sascha Nitsch Unternehmensberatung UG(haftungsbeschänkt)
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: 6.7 ms
system status display