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:

43570

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



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
2018-11-15
bashdb - 4.4.1.0.0
Ebuild name:

app-shells/bashdb-4.4.1.0.0

Description

bash source code debugging

Added to portage

2018-11-15

checkbashisms - 2.18.9
Ebuild name:

dev-util/checkbashisms-2.18.9

Description

Perl script to check for commonly used bash features not defined by P

Added to portage

2018-11-15

chronograf - 1.7.3
Ebuild name:

net-analyzer/chronograf-1.7.3

Description

Monitoring, processing and alerting on time series data

Added to portage

2018-11-15

ck-sources - 4.14.81
Ebuild name:

sys-kernel/ck-sources-4.14.81

Description

Gentoo's genpatches for Linux ., with Con Kolivas' MuQSS process sche

Added to portage

2018-11-15

ck-sources - 4.18.19
Ebuild name:

sys-kernel/ck-sources-4.18.19

Description

Gentoo's genpatches for Linux ., with Con Kolivas' MuQSS process sche

Added to portage

2018-11-15

ck-sources - 4.19.2
Ebuild name:

sys-kernel/ck-sources-4.19.2

Description

Gentoo's genpatches for Linux ., with Con Kolivas' MuQSS process sched

Added to portage

2018-11-15

ck-sources - 4.9.137
Ebuild name:

sys-kernel/ck-sources-4.9.137

Description

Gentoo's genpatches for Linux ., with Con Kolivas' MuQSS process sche

Added to portage

2018-11-15

conky - 1.10.8-r4
Ebuild name:

app-admin/conky-1.10.8-r4

Description

An advanced, highly configurable system monitor for X

Added to portage

2018-11-15

cuneiform - 1.1.0-r3
Ebuild name:

app-text/cuneiform-1.1.0-r3

Description

An enterprise quality OCR engine by Cognitive Technologies

Added to portage

2018-11-15

davix - 0.7.1
Ebuild name:

net-libs/davix-0.7.1

Description

High-performance file management over WebDAV/HTTP

Added to portage

2018-11-15

grpc - 1.16.1
Ebuild name:

net-libs/grpc-1.16.1

Description

Modern open source high performance RPC framework

Added to portage

2018-11-15

grpcio - 1.16.1
Ebuild name:

dev-python/grpcio-1.16.1

Description

High-performance RPC framework (python libraries)

Added to portage

2018-11-15

grpcio-testing - 1.16.1
Ebuild name:

dev-python/grpcio-testing-1.16.1

Description

Testing utilities for gRPC Python

Added to portage

2018-11-15

grpcio-tools - 1.16.1
Ebuild name:

dev-python/grpcio-tools-1.16.1

Description

Protobuf code generator for gRPC

Added to portage

2018-11-15

grs - 0.7
Ebuild name:

app-portage/grs-0.7

Description

Suite to build Gentoo Reference Systems

Added to portage

2018-11-15

httparty - 0.16.3
Ebuild name:

dev-ruby/httparty-0.16.3

Description

Makes http fun Also, makes consuming restful web services dead easy

Added to portage

2018-11-15

img - 0.5.4
Ebuild name:

app-emulation/img-0.5.4

Description

Standalone daemon-less unprivileged Dockerfile and OCI container image buil

Added to portage

2018-11-15

keepalived - 2.0.10-r1
Ebuild name:

sys-cluster/keepalived-2.0.10-r1

Description

A strong & robust keepalive facility to the Linux Virtual Serv

Added to portage

2018-11-15

kodi-audioencoder-flac - 1.1.0-r1
Ebuild name:

media-plugins/kodi-audioencoder-flac-1.1.0-r1

Description

Flac encoder addon for Kodi

Added to portage

2018-11-15

kodi-audioencoder-flac - 2.0.1
Ebuild name:

media-plugins/kodi-audioencoder-flac-2.0.1

Description

Flac encoder addon for Kodi

Added to portage

2018-11-15

kodi-audioencoder-vorbis - 1.1.0-r1
Ebuild name:

media-plugins/kodi-audioencoder-vorbis-1.1.0-r1

Description

Vorbis encoder addon for Kodi

Added to portage

2018-11-15

kodi-audioencoder-vorbis - 2.0.1
Ebuild name:

media-plugins/kodi-audioencoder-vorbis-2.0.1

Description

Vorbis encoder addon for Kodi

Added to portage

2018-11-15

kodi-inputstream-adaptive - 2.3.9
Ebuild name:

media-plugins/kodi-inputstream-adaptive-2.3.9

Description

Kodi's Adaptive inputstream addon

Added to portage

2018-11-15

kodi-pvr-dvbviewer - 3.7.5
Ebuild name:

media-plugins/kodi-pvr-dvbviewer-3.7.5

Description

Kodi's DVBViewer client addon

Added to portage

2018-11-15

kodi-pvr-wmc - 2.4.1
Ebuild name:

media-plugins/kodi-pvr-wmc-2.4.1

Description

Kodi's Windows Media Center client addon

Added to portage

2018-11-15

kodi-visualization-goom - 1.1.0-r1
Ebuild name:

media-plugins/kodi-visualization-goom-1.1.0-r1

Description

Goom visualizer for Kodi

Added to portage

2018-11-15

libadalang - 2017-r1
Ebuild name:

dev-ada/libadalang-2017-r1

Description

high performance semantic engine for the Ada programming language

Added to portage

2018-11-15

liboauth - 1.0.3-r1
Ebuild name:

net-libs/liboauth-1.0.3-r1

Description

C library implementing the OAuth secure authentication protocol

Added to portage

2018-11-15

mesa - 18.2.5
Ebuild name:

media-libs/mesa-18.2.5

Description

OpenGL-like graphic library for Linux

Added to portage

2018-11-15

minio - 2018.11.15.01.26.07
Ebuild name:

net-fs/minio-2018.11.15.01.26.07

Description

An Amazon S3 compatible object storage server

Added to portage

2018-11-15

nfs4-acl-tools - 0.3.5
Ebuild name:

net-fs/nfs4-acl-tools-0.3.5

Description

Commandline and GUI tools that deal directly with NFSv4 ACLs

Added to portage

2018-11-15

percona-server - 5.7.23.24
Ebuild name:

dev-db/percona-server-5.7.23.24

Description

A fast, multi-threaded, multi-user SQL database server

Added to portage

2018-11-15

phpsysinfo - 3.2.10-r1
Ebuild name:

www-apps/phpsysinfo-3.2.10-r1

Description

A customizable PHP script that displays information about your system

Added to portage

2018-11-15

pyTenable - 0.3.0
Ebuild name:

dev-python/pyTenable-0.3.0

Description

Tenable API Library for Tenable.io and SecurityCenter

Added to portage

2018-11-15

reg - 0.16.0
Ebuild name:

app-emulation/reg-0.16.0

Description

Docker registry v2 command line client

Added to portage

2018-11-15

regexp_parser - 1.3.0
Ebuild name:

dev-ruby/regexp_parser-1.3.0

Description

A library for tokenizing, lexing, and parsing Ruby regular expressions

Added to portage

2018-11-15

rust - 1.29.1-r1
Ebuild name:

dev-lang/rust-1.29.1-r1

Description

Systems programming language from Mozilla

Added to portage

2018-11-15

rust - 1.29.2-r1
Ebuild name:

dev-lang/rust-1.29.2-r1

Description

Systems programming language from Mozilla

Added to portage

2018-11-15

rust - 1.30.1-r1
Ebuild name:

dev-lang/rust-1.30.1-r1

Description

Systems programming language from Mozilla

Added to portage

2018-11-15

rust-bin - 1.29.1-r1
Ebuild name:

dev-lang/rust-bin-1.29.1-r1

Description

Systems programming language from Mozilla

Added to portage

2018-11-15

rust-bin - 1.29.2-r1
Ebuild name:

dev-lang/rust-bin-1.29.2-r1

Description

Systems programming language from Mozilla

Added to portage

2018-11-15

rust-bin - 1.30.1-r1
Ebuild name:

dev-lang/rust-bin-1.30.1-r1

Description

Systems programming language from Mozilla

Added to portage

2018-11-15

thunderbird - 60.3.1
Ebuild name:

mail-client/thunderbird-60.3.1

Description

Thunderbird Mail Client

Added to portage

2018-11-15

thunderbird-bin - 60.3.1
Ebuild name:

mail-client/thunderbird-bin-60.3.1

Description

Thunderbird Mail Client

Added to portage

2018-11-15

vc - 1.4.0
Ebuild name:

dev-libs/vc-1.4.0

Description

SIMD Vector Class Library for C++

Added to portage

2018-11-15

vobject - 0.9.6.1
Ebuild name:

dev-python/vobject-0.9.6.1

Description

Python package for parsing and generating vCard and vCalendar files

Added to portage

2018-11-15

yarn - 1.12.3
Ebuild name:

sys-apps/yarn-1.12.3

Description

Fast, reliable, and secure node dependency management

Added to portage

2018-11-15

2018-11-14
alacritty - 0.2.3
Ebuild name:

x11-terms/alacritty-0.2.3

Description

GPU-accelerated terminal emulator

Added to portage

2018-11-14

cargo - 1.30.1
Ebuild name:

virtual/cargo-1.30.1

Description

Package manager for Rust

Added to portage

2018-11-14

chrome-binary-plugins - 72.0.3608.4_alpha
Ebuild name:

www-plugins/chrome-binary-plugins-72.0.3608.4_alpha

Description

Binary plugins from Google Chrome for use in Ch

Added to portage

2018-11-14

ecma-re-validator - 0.2.0
Ebuild name:

dev-ruby/ecma-re-validator-0.2.0

Description

Validate a regular expression string against what ECMA-262 can act

Added to portage

2018-11-14

gentoo-sources - 4.14.81
Ebuild name:

sys-kernel/gentoo-sources-4.14.81

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-11-14

gentoo-sources - 4.18.19
Ebuild name:

sys-kernel/gentoo-sources-4.18.19

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-11-14

gentoo-sources - 4.19.2
Ebuild name:

sys-kernel/gentoo-sources-4.19.2

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-11-14

gentoo-sources - 4.9.137
Ebuild name:

sys-kernel/gentoo-sources-4.9.137

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2018-11-14

google-chrome-unstable - 72.0.3608.4
Ebuild name:

www-client/google-chrome-unstable-72.0.3608.4

Description

The web browser from Google

Added to portage

2018-11-14

gsoap - 2.8.71
Ebuild name:

net-libs/gsoap-2.8.71

Description

A cross-platform open source C and C++ SDK for SOAP/XML Web services

Added to portage

2018-11-14

icinga2 - 2.10.2
Ebuild name:

net-analyzer/icinga2-2.10.2

Description

Distributed, general purpose, network monitoring engine

Added to portage

2018-11-14

iptables - 1.8.2
Ebuild name:

net-firewall/iptables-1.8.2

Description

Linux kernel (2.4+) firewall, NAT and packet mangling tools

Added to portage

2018-11-14

kio-extras - 18.08.3-r1
Ebuild name:

kde-apps/kio-extras-18.08.3-r1

Description

KIO plugins present a filesystem-like view of arbitrary data

Added to portage

2018-11-14

libdlo - 0.1.2-r1
Ebuild name:

x11-libs/libdlo-0.1.2-r1

Description

A fully open source driver which supports all DisplayLink devices

Added to portage

2018-11-14

libnftnl - 1.1.2-r1
Ebuild name:

net-libs/libnftnl-1.1.2-r1

Description

Netlink API to the in-kernel nf_tables subsystem

Added to portage

2018-11-14

mariadb - 10.2.19
Ebuild name:

dev-db/mariadb-10.2.19

Description

An enhanced, drop-in replacement for MySQL

Added to portage

2018-11-14

mysql - 5.5.62
Ebuild name:

dev-db/mysql-5.5.62

Description

An enhanced, drop-in replacement for MySQL

Added to portage

2018-11-14

mysql - 5.6.42
Ebuild name:

dev-db/mysql-5.6.42

Description

A fast, multi-threaded, multi-user SQL database server

Added to portage

2018-11-14

prompt_toolkit - 2.0.7
Ebuild name:

dev-python/prompt_toolkit-2.0.7

Description

Building powerful interactive command lines in Python

Added to portage

2018-11-14

pysaml2 - 4.6.3
Ebuild name:

dev-python/pysaml2-4.6.3

Description

Python implementation of SAML Version 2 to be used in a WSGI environment

Added to portage

2018-11-14

rust - 1.30.1
Ebuild name:

virtual/rust-1.30.1

Description

Virtual for Rust language compiler

Added to portage

2018-11-14

sudo - 1.8.26
Ebuild name:

app-admin/sudo-1.8.26

Description

Allows users or groups to run commands as other users

Added to portage

2018-11-14

vanilla-sources - 4.14.81
Ebuild name:

sys-kernel/vanilla-sources-4.14.81

Description

Full sources for the Linux kernel

Added to portage

2018-11-14

vanilla-sources - 4.18.19
Ebuild name:

sys-kernel/vanilla-sources-4.18.19

Description

Full sources for the Linux kernel

Added to portage

2018-11-14

vanilla-sources - 4.19.2
Ebuild name:

sys-kernel/vanilla-sources-4.19.2

Description

Full sources for the Linux kernel

Added to portage

2018-11-14

vanilla-sources - 4.9.137
Ebuild name:

sys-kernel/vanilla-sources-4.9.137

Description

Full sources for the Linux kernel

Added to portage

2018-11-14

wget - 1.19.5-r1
Ebuild name:

net-misc/wget-1.19.5-r1

Description

Network utility to retrieve files from the WWW

Added to portage

2018-11-14

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2018 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: 77.6 ms