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:

8140

userrating:

no votes yet


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tips&Tricks

Using qpkg

This tip demonstrates some basic uses of the "query package" (qpkg) which allows you to perform get information about installed or uninstalled packages on your system. It can be used to find package ownership of files, to find duplicate packages, to list the files installed by a package, and more.

To get qpkg you need to install app-portage/gentoolkit.

Code Listing 1: Installing gentoolkit

# emerge app-portage/gentoolkit

Now that you have qpkg installed, you can start using it to examine your system. The first example is figuring out which package owns which file. This is done with the --find-file (or alternatively --find-pattern option.

Note: To get a complete list of packages and the version installed on your machine use the command qpkg --installed --verbose.

Code Listing 2: Finding the package that owns a file

// Which package owns /etc/crontab? 
% qpkg --find-file /etc/crontab 
sys-apps/vcron * 
 
// What version of vcron? (--verbose) 
% qpkg --find-file --verbose /etc/crontab 
sys-apps/vcron-3.0.1-r1 * 
 
// Where's the ebuild for this file? (--verbose --verbose) 
% qpkg --find-file --verbose --verbose /etc/crontab 
   /var/db/pkg/sys-apps/vcron-3.0.1-r1/vcron-3.0.1-r1.ebuild 
sys-apps/vcron-3.0.1-r1 *

To list all the files a package installed, use the --list option.

Code Listing 3: Listing all the files installed by a package

% qpkg --list units 
// Directories were snipped for brevity 
app-sci/units-1.74 * 
CONTENTS: 
/usr/bin/units 
/usr/share/doc/units-1.74 
/usr/share/doc/units-1.74/README.gz 
/usr/share/doc/units-1.74/NEWS.gz 
/usr/share/doc/units-1.74/INSTALL.gz 
/usr/share/doc/units-1.74/COPYING.gz 
/usr/share/doc/units-1.74/ChangeLog.gz 
/usr/share/man/man1/units.1.gz 
/usr/share/info/units.info.gz 
/usr/share/units/units.dat

The last example shows you how to find which packages depend on a specified package using --query-deps.

Code Listing 4: Finding dependencies

% qpkg --installed --query-deps mozilla 
net-www/mozilla-1.4-r3 * 
DEPENDED ON BY: 
        net-mail/evolution-1.4.3 
        net-www/galeon-1.3.9

Note: Not specifying --installed causes qpkg to look inside the entire Portage tree which is probably not what you want.

This should get you started with qpkg. For more options see qpkg --help or man 1 qpkg.

From http://www.gentoo.org/news/en/gwn/20031006-newsletter.xml


rate this article:
current rating: no votes yet
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-03-11
balsa - 2.4.7
Ebuild name:

mail-client/balsa-2.4.7

Description

Email client for GNOME

Added to portage

2010-03-11

ccpn - 2.1.3.1_p100311
Ebuild name:

sci-chemistry/ccpn-2.1.3.1_p100311

Description

The Collaborative Computing Project for NMR

Added to portage

2010-03-11

evolution - 2.28.3.1
Ebuild name:

mail-client/evolution-2.28.3.1

Description

Integrated mail, addressbook and calendaring functionality

Added to portage

2010-03-11

fcron - 3.0.5-r1
Ebuild name:

sys-process/fcron-3.0.5-r1

Description

A command scheduler with extended capabilities over cron and anacron

Added to portage

2010-03-11

freepv - 0.3.0-r2
Ebuild name:

media-gfx/freepv-0.3.0-r2

Description

Panorama viewer (Quicktime, PangeaVR, GLPanoView formats)

Added to portage

2010-03-11

goffice - 0.8.1
Ebuild name:

x11-libs/goffice-0.8.1

Description

A library of document-centric objects and utilities

Added to portage

2010-03-11

graphicsmagick - 1.3.12
Ebuild name:

media-gfx/graphicsmagick-1.3.12

Description

Collection of tools and libraries for many image formats

Added to portage

2010-03-11

grub - 1.98
Ebuild name:

sys-boot/grub-1.98

Description

GNU GRUB 2 boot loader

Added to portage

2010-03-11

gstreamermm - 0.10.6
Ebuild name:

dev-cpp/gstreamermm-0.10.6

Description

C++ interface for GStreamer

Added to portage

2010-03-11

gtk+ - 2.18.7-r1
Ebuild name:

x11-libs/gtk+-2.18.7-r1

Description

Gimp ToolKit +

Added to portage

2010-03-11

iptables - 1.4.7
Ebuild name:

net-firewall/iptables-1.4.7

Description

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

Added to portage

2010-03-11

libfishsound - 1.0.0
Ebuild name:

media-libs/libfishsound-1.0.0

Description

Simple programming interface for decoding and encoding audio data usi

Added to portage

2010-03-11

libgadu - 1.9.0_rc3
Ebuild name:

net-libs/libgadu-1.9.0_rc3

Description

This library implements the client side of the Gadu-Gadu protocol

Added to portage

2010-03-11

libspectre - 0.2.4
Ebuild name:

app-text/libspectre-0.2.4

Description

Library to render Postscript documents.

Added to portage

2010-03-11

pam-pgsql - 0.7_p20100311
Ebuild name:

sys-auth/pam-pgsql-0.7_p20100311

Description

pam_pgsql is a module for pam to authenticate users with PostgreSQ

Added to portage

2010-03-11

pulseaudio - 0.9.21.2-r1
Ebuild name:

media-sound/pulseaudio-0.9.21.2-r1

Description

A networked sound server with an advanced plugin system

Added to portage

2010-03-11

pycups - 1.9.49
Ebuild name:

dev-python/pycups-1.9.49

Description

Python bindings for the CUPS API

Added to portage

2010-03-11

pythoncad - 1.37
Ebuild name:

sci-misc/pythoncad-1.37

Description

CAD program written in PyGTK

Added to portage

2010-03-11

qrna - 2.0.3c-r1
Ebuild name:

sci-biology/qrna-2.0.3c-r1

Description

Prototype ncRNA genefinder

Added to portage

2010-03-11

shared-desktop-ontologies - 0.3
Ebuild name:

dev-libs/shared-desktop-ontologies-0.3

Description

Shared OSCAF desktop ontologies

Added to portage

2010-03-11

slimrat - 1.0
Ebuild name:

net-misc/slimrat-1.0

Description

Linux Rapidshare downloader

Added to portage

2010-03-11

soprano - 2.4.1
Ebuild name:

dev-libs/soprano-2.4.1

Description

Library that provides a nice Qt interface to RDF storage solutions

Added to portage

2010-03-11

subtitleeditor - 0.36.0
Ebuild name:

media-video/subtitleeditor-0.36.0

Description

GTK+2 subtitle editing tool.

Added to portage

2010-03-11

system-config-printer-common - 1.1.18
Ebuild name:

app-admin/system-config-printer-common-1.1.18

Description

Common modules of Red Hat's printer administration to

Added to portage

2010-03-11

tinycobol - 0.65.9
Ebuild name:

dev-lang/tinycobol-0.65.9

Description

COBOL for linux

Added to portage

2010-03-11

tmux - 1.2
Ebuild name:

app-misc/tmux-1.2

Description

Terminal multiplexer

Added to portage

2010-03-11

trac - 0.11.7
Ebuild name:

www-apps/trac-0.11.7

Description

Trac is a minimalistic web-based project management, wiki and bug/issue tracki

Added to portage

2010-03-11

weechat - 0.3.1.1
Ebuild name:

net-irc/weechat-0.3.1.1

Description

Portable and multi-interface IRC client.

Added to portage

2010-03-11

xf86-video-virtualbox - 3.1.4-r1
Ebuild name:

x11-drivers/xf86-video-virtualbox-3.1.4-r1

Description

VirtualBox video driver

Added to portage

2010-03-11

2010-03-10
Devel-Declare - 0.006000
Ebuild name:

dev-perl/Devel-Declare-0.006000

Description

Adding keywords to perl, in perl

Added to portage

2010-03-10

ORLite - 1.41
Ebuild name:

dev-perl/ORLite-1.41

Description

Extremely light weight SQLite-specific ORM

Added to portage

2010-03-10

PBS-Client - 0.08
Ebuild name:

dev-perl/PBS-Client-0.08

Description

Perl interface to submit jobs to PBS (Portable Batch System)

Added to portage

2010-03-10

Safe - 2.26
Ebuild name:

perl-core/Safe-2.26

Description

Compile and execute code in restricted compartments

Added to portage

2010-03-10

atanks - 4.4
Ebuild name:

games-action/atanks-4.4

Description

Worms and Scorched Earth-like game

Added to portage

2010-03-10

cgit - 0.8.3.1-r1
Ebuild name:

www-apps/cgit-0.8.3.1-r1

Description

a fast web-interface for git repositories

Added to portage

2010-03-10

coppermine - 1.4.26
Ebuild name:

www-apps/coppermine-1.4.26

Description

Web picture gallery written in PHP with a MySQL backend

Added to portage

2010-03-10

deutex - 4.4.0
Ebuild name:

games-util/deutex-4.4.0

Description

A wad composer for Doom, Heretic, Hexen and Strife

Added to portage

2010-03-10

doomsday - 1.9.0_beta68
Ebuild name:

games-fps/doomsday-1.9.0_beta68

Description

A modern gaming engine for Doom, Heretic, and Hexen

Added to portage

2010-03-10

eix - 0.20.2
Ebuild name:

app-portage/eix-0.20.2

Description

Search and query ebuilds, portage incl. local settings, ext. overlays, versi

Added to portage

2010-03-10

emacs - 24
Ebuild name:

virtual/emacs-24

Description

Virtual for GNU Emacs

Added to portage

2010-03-10

emacs-vcs - 23.1.9999-r3
Ebuild name:

app-editors/emacs-vcs-23.1.9999-r3

Description

The extensible, customizable, self-documenting real-time display

Added to portage

2010-03-10

emacs-vcs - 24.0.9999
Ebuild name:

app-editors/emacs-vcs-24.0.9999

Description

The extensible, customizable, self-documenting real-time display ed

Added to portage

2010-03-10

etc-proposals - 1.4.3-r2
Ebuild name:

app-portage/etc-proposals-1.4.3-r2

Description

a set of tools for updating gentoo config files

Added to portage

2010-03-10

fancytasks - 1.0.92
Ebuild name:

kde-misc/fancytasks-1.0.92

Description

A task and launch representation plasmoid

Added to portage

2010-03-10

geolizer - 2.01.10_p20070115
Ebuild name:

app-admin/geolizer-2.01.10_p20070115

Description

Webserver log file analyzer

Added to portage

2010-03-10

git-sources - 2.6.34_rc1-r1
Ebuild name:

sys-kernel/git-sources-2.6.34_rc1-r1

Description

The very latest -git version of the Linux kernel

Added to portage

2010-03-10

gnupg - 2.0.15
Ebuild name:

app-crypt/gnupg-2.0.15

Description

The GNU Privacy Guard, a GPL pgp replacement

Added to portage

2010-03-10

iptraf-ng - 1.0.1
Ebuild name:

net-analyzer/iptraf-ng-1.0.1

Description

console-based network monitoring utility, fork off iptraf 3.0.0

Added to portage

2010-03-10

kdevelop - 3.9.99
Ebuild name:

dev-util/kdevelop-3.9.99

Description

Integrated Development Environment for Unix, supporting KDE/Qt, C/C++ and

Added to portage

2010-03-10

kdevplatform - 0.9.99
Ebuild name:

dev-util/kdevplatform-0.9.99

Description

KDE development support libraries and apps

Added to portage

2010-03-10

libnss-pgsql - 1.5.0_beta
Ebuild name:

sys-auth/libnss-pgsql-1.5.0_beta

Description

Name Service Switch module for use with PostgreSQL

Added to portage

2010-03-10

mira - 3.0.2
Ebuild name:

sci-biology/mira-3.0.2

Description

Whole Genome Shotgun and EST Sequence Assembler for Sanger, 454 and Solexa /

Added to portage

2010-03-10

nxclient - 3.4.0.7
Ebuild name:

net-misc/nxclient-3.4.0.7

Description

X11/VNC/NXServer client (remote desktops over low-bandwidth links)

Added to portage

2010-03-10

ocamlnet - 3.0_beta2
Ebuild name:

dev-ml/ocamlnet-3.0_beta2

Description

Modules for OCaml application-level Internet protocols

Added to portage

2010-03-10

pam - 1.1.1-r1
Ebuild name:

sys-libs/pam-1.1.1-r1

Description

Linux-PAM (Pluggable Authentication Modules)

Added to portage

2010-03-10

pambase - 20100310
Ebuild name:

sys-auth/pambase-20100310

Description

PAM base configuration files

Added to portage

2010-03-10

pecl-gearman - 0.7.0
Ebuild name:

dev-php5/pecl-gearman-0.7.0

Description

PHP extension for using gearmand.

Added to portage

2010-03-10

perl-Safe - 2.26
Ebuild name:

virtual/perl-Safe-2.26

Description

Virtual for Safe

Added to portage

2010-03-10

portage - 2.1.8.3
Ebuild name:

sys-apps/portage-2.1.8.3

Description

Portage is the package management and distribution system for Gentoo

Added to portage

2010-03-10

portage - 2.2_rc67
Ebuild name:

sys-apps/portage-2.2_rc67

Description

Portage is the package management and distribution system for Gentoo

Added to portage

2010-03-10

pyasn1 - 0.0.11a
Ebuild name:

dev-python/pyasn1-0.0.11a

Description

ASN.1 types and codecs (BER, CER, DER) implementation.

Added to portage

2010-03-10

pylibacl - 0.5.0
Ebuild name:

dev-python/pylibacl-0.5.0

Description

POSIX ACLs (Access Control Lists) for Python

Added to portage

2010-03-10

pyxattr - 0.5.0
Ebuild name:

dev-python/pyxattr-0.5.0

Description

Python interface to xattr

Added to portage

2010-03-10

qjackctl - 0.3.6
Ebuild name:

media-sound/qjackctl-0.3.6

Description

A Qt application to control the JACK Audio Connection Kit and ALSA seque

Added to portage

2010-03-10

remind - 03.01.08
Ebuild name:

x11-misc/remind-03.01.08

Description

Ridiculously functional reminder program

Added to portage

2010-03-10

root - 5.26.00-r2
Ebuild name:

sci-physics/root-5.26.00-r2

Description

C++ data analysis framework and interpreter from CERN

Added to portage

2010-03-10

searchandrescue - 0.8.3
Ebuild name:

games-simulation/searchandrescue-0.8.3

Description

Helicopter based air rescue flight simulator

Added to portage

2010-03-10

tar - 1.23
Ebuild name:

app-arch/tar-1.23

Description

Use this to make tarballs

Added to portage

2010-03-10

viewmol - 2.4.1-r1
Ebuild name:

sci-chemistry/viewmol-2.4.1-r1

Description

Open-source graphical front end for computational chemistry programs

Added to portage

2010-03-10

webalizer - 2.21.02
Ebuild name:

app-admin/webalizer-2.21.02

Description

Webserver log file analyzer

Added to portage

2010-03-10

webalizer-xtended - 2.01.10_p21
Ebuild name:

app-admin/webalizer-xtended-2.01.10_p21

Description

Webserver log file analyzer

Added to portage

2010-03-10

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: 15.6 ms
system status display
Stellenangebote
Ärger mit Freenet.de