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:

46440

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
2019-06-17
adjtimex - 1.29-r2
Ebuild name:

net-misc/adjtimex-1.29-r2

Description

display or set the kernel time variables

Added to portage

2019-06-17

alacritty - 0.3.3
Ebuild name:

x11-terms/alacritty-0.3.3

Description

GPU-accelerated terminal emulator

Added to portage

2019-06-17

alembic - 1.7.11
Ebuild name:

media-gfx/alembic-1.7.11

Description

Open framework for storing and sharing scene data

Added to portage

2019-06-17

buildah - 1.8.4
Ebuild name:

app-emulation/buildah-1.8.4

Description

A tool that facilitates building OCI images

Added to portage

2019-06-17

buildah - 1.9.0
Ebuild name:

app-emulation/buildah-1.9.0

Description

A tool that facilitates building OCI images

Added to portage

2019-06-17

catalyst - 3.0.5
Ebuild name:

dev-util/catalyst-3.0.5

Description

Release metatool used for creating releases based on Gentoo Linux

Added to portage

2019-06-17

cryfs - 0.10.2
Ebuild name:

sys-fs/cryfs-0.10.2

Description

Encrypted FUSE filesystem that conceals metadata

Added to portage

2019-06-17

dnetc - 2.9112.521
Ebuild name:

app-misc/dnetc-2.9112.521

Description

distributed.net client

Added to portage

2019-06-17

equatable - 0.6.0
Ebuild name:

dev-ruby/equatable-0.6.0

Description

Allows ruby objects to implement equality comparison and inspection method

Added to portage

2019-06-17

git-sources - 5.2_rc5
Ebuild name:

sys-kernel/git-sources-5.2_rc5

Description

The very latest -git version of the Linux kernel

Added to portage

2019-06-17

mbr-gpt - 0.0.1-r1
Ebuild name:

sys-boot/mbr-gpt-0.0.1-r1

Description

An MBR that can handle BIOS-based boot on GPT

Added to portage

2019-06-17

pastel - 0.7.3
Ebuild name:

dev-ruby/pastel-0.7.3

Description

Terminal strings styling with intuitive and clean API

Added to portage

2019-06-17

pychess - 0.99.4-r1
Ebuild name:

games-board/pychess-0.99.4-r1

Description

A chess client for Gnome

Added to portage

2019-06-17

pyroute2 - 0.5.5-r1
Ebuild name:

dev-python/pyroute2-0.5.5-r1

Description

A pure Python netlink and Linux network configuration library.

Added to portage

2019-06-17

rmagick - 3.2.0
Ebuild name:

dev-ruby/rmagick-3.2.0

Description

An interface between Ruby and the ImageMagick(TM) image processing library

Added to portage

2019-06-17

shadow - 4.7
Ebuild name:

sys-apps/shadow-4.7

Description

Utilities to deal with user accounts

Added to portage

2019-06-17

swi-prolog - 8.1.8
Ebuild name:

dev-lang/swi-prolog-8.1.8

Description

versatile implementation of the Prolog programming language

Added to portage

2019-06-17

texlive-langczechslovak - 2019-r1
Ebuild name:

dev-texlive/texlive-langczechslovak-2019-r1

Description

TeXLive Czech/Slovak

Added to portage

2019-06-17

tty-platform - 0.2.1
Ebuild name:

dev-ruby/tty-platform-0.2.1

Description

Query methods for detecting different operating systems

Added to portage

2019-06-17

tty-reader - 0.6.0-r1
Ebuild name:

dev-ruby/tty-reader-0.6.0-r1

Description

Methods for processing keyboard input in character, line and multiline

Added to portage

2019-06-17

unsymlink-lib - 16
Ebuild name:

app-portage/unsymlink-lib-16

Description

Convert your system to SYMLINK_LIB=no

Added to portage

2019-06-17

util-linux - 2.34
Ebuild name:

sys-apps/util-linux-2.34

Description

Various useful Linux utilities

Added to portage

2019-06-17

vivaldi-snapshot - 2.6.1566.31_p1
Ebuild name:

www-client/vivaldi-snapshot-2.6.1566.31_p1

Description

A browser for our friends

Added to portage

2019-06-17

xwallpaper - 0.6.0
Ebuild name:

x11-misc/xwallpaper-0.6.0

Description

Wallpaper setting utility for X

Added to portage

2019-06-17

2019-06-16
airbrussh - 1.3.2
Ebuild name:

dev-ruby/airbrussh-1.3.2

Description

A replacement log formatter for SSHKit

Added to portage

2019-06-16

chromium - 75.0.3770.90
Ebuild name:

www-client/chromium-75.0.3770.90

Description

Open-source version of Google Chrome web browser

Added to portage

2019-06-16

exiftool - 11.51
Ebuild name:

media-libs/exiftool-11.51

Description

Read and write meta information in image, audio and video files

Added to portage

2019-06-16

faudio - 19.06
Ebuild name:

app-emulation/faudio-19.06

Description

FAudio - Accuracy-focused XAudio reimplementation for open platforms

Added to portage

2019-06-16

fuse - 3.6.1
Ebuild name:

sys-fs/fuse-3.6.1

Description

An interface for filesystems implemented in userspace

Added to portage

2019-06-16

gcc - 3.3.6-r4
Ebuild name:

sys-devel/gcc-3.3.6-r4

Description

The GNU Compiler Collection

Added to portage

2019-06-16

gcc - 3.4.6-r4
Ebuild name:

sys-devel/gcc-3.4.6-r4

Description

The GNU Compiler Collection

Added to portage

2019-06-16

gentoo-sources - 4.14.126
Ebuild name:

sys-kernel/gentoo-sources-4.14.126

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2019-06-16

gentoo-sources - 4.19.51
Ebuild name:

sys-kernel/gentoo-sources-4.19.51

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2019-06-16

gentoo-sources - 5.1.10
Ebuild name:

sys-kernel/gentoo-sources-5.1.10

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2019-06-16

graphicsmagick - 1.3.32
Ebuild name:

media-gfx/graphicsmagick-1.3.32

Description

Collection of tools and libraries for many image formats

Added to portage

2019-06-16

gspoof - 3.2-r3
Ebuild name:

net-analyzer/gspoof-3.2-r3

Description

A simple GTK/command line TCP/IP packet generator

Added to portage

2019-06-16

gtest - 1.9.0_pre20190607
Ebuild name:

dev-cpp/gtest-1.9.0_pre20190607

Description

Google C++ Testing Framework

Added to portage

2019-06-16

kitty - 0.14.2
Ebuild name:

x11-terms/kitty-0.14.2

Description

A modern, hackable, featureful, OpenGL-based terminal emulator

Added to portage

2019-06-16

kodi-inputstream-adaptive - 2.3.22
Ebuild name:

media-plugins/kodi-inputstream-adaptive-2.3.22

Description

Kodi's Adaptive inputstream addon

Added to portage

2019-06-16

kodi-pvr-iptvsimple - 3.5.8
Ebuild name:

media-plugins/kodi-pvr-iptvsimple-3.5.8

Description

Kodi's IPTVSimple client addon

Added to portage

2019-06-16

nanoc - 4.11.5
Ebuild name:

www-apps/nanoc-4.11.5

Description

nanoc is a simple but very flexible static site generator written in Ruby

Added to portage

2019-06-16

nanoc-core - 4.11.5
Ebuild name:

www-apps/nanoc-core-4.11.5

Description

nanoc is a simple but very flexible static site generator written in Rub

Added to portage

2019-06-16

necromancer - 0.5.0
Ebuild name:

dev-ruby/necromancer-0.5.0

Description

Conversion from one object type to another with a bit of black magic

Added to portage

2019-06-16

qpdf - 8.4.2
Ebuild name:

app-text/qpdf-8.4.2

Description

Command-line tool for structural, content-preserving transformation of PDF file

Added to portage

2019-06-16

slony1 - 2.2.7
Ebuild name:

dev-db/slony1-2.2.7

Description

A replication system for the PostgreSQL Database Management System

Added to portage

2019-06-16

spirv-tools - 2019.1-r2
Ebuild name:

dev-util/spirv-tools-2019.1-r2

Description

Provides an API and commands for processing SPIR-V modules

Added to portage

2019-06-16

sssd - 2.2.0
Ebuild name:

sys-auth/sssd-2.2.0

Description

System Security Services Daemon provides access to identity and authentication

Added to portage

2019-06-16

sysvinit - 2.95
Ebuild name:

sys-apps/sysvinit-2.95

Description

/sbin/init - parent of all processes

Added to portage

2019-06-16

texmaths - 0.48
Ebuild name:

app-officeext/texmaths-0.48

Description

LaTeX Equation Editor for LibreOffice

Added to portage

2019-06-16

toluapp - 1.0.93_p20190513-r1
Ebuild name:

dev-lua/toluapp-1.0.93_p20190513-r1

Description

A tool to integrate C/C++ code with Lua

Added to portage

2019-06-16

tty-cursor - 0.7.0
Ebuild name:

dev-ruby/tty-cursor-0.7.0

Description

Move the terminal cursor around and manipulate text using intuitive metho

Added to portage

2019-06-16

tty-file - 0.7.0
Ebuild name:

dev-ruby/tty-file-0.7.0

Description

File manipulation utility methods

Added to portage

2019-06-16

tty-prompt - 0.19.0
Ebuild name:

dev-ruby/tty-prompt-0.19.0

Description

A beautiful and powerful interactive command line prompt

Added to portage

2019-06-16

tty-screen - 0.7.0
Ebuild name:

dev-ruby/tty-screen-0.7.0

Description

Terminal screen size detection which works on Linux, OS X and Windows/Cyg

Added to portage

2019-06-16

vulkan-tools - 1.1.106-r1
Ebuild name:

dev-util/vulkan-tools-1.1.106-r1

Description

Official Vulkan Tools and Utilities for Windows, Linux, Android, a

Added to portage

2019-06-16

wisper - 2.0.0
Ebuild name:

dev-ruby/wisper-2.0.0

Description

A micro library providing objects with Publish-Subscribe capabilities

Added to portage

2019-06-16

znc - 1.7.4_rc1
Ebuild name:

net-irc/znc-1.7.4_rc1

Description

An advanced IRC Bouncer

Added to portage

2019-06-16

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