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:

83402

userrating:

average rating: 1.2 (52 votes) (1=very good 6=terrible)


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

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2026-02-22
2026-02-21
0ad - 0.28.0
Ebuild name:

games-strategy/0ad-0.28.0

Description

A free, real-time strategy game

Added to portage

2026-02-21

async-lru - 2.2.0
Ebuild name:

dev-python/async-lru-2.2.0

Description

Simple lru_cache for asyncio

Added to portage

2026-02-21

awscli - 1.44.44
Ebuild name:

app-admin/awscli-1.44.44

Description

Universal Command Line Environment for AWS

Added to portage

2026-02-21

boto3 - 1.42.54
Ebuild name:

dev-python/boto3-1.42.54

Description

The AWS SDK for Python

Added to portage

2026-02-21

botocore - 1.42.54
Ebuild name:

dev-python/botocore-1.42.54

Description

Low-level, data-driven core of boto 3

Added to portage

2026-02-21

ccid - 1.7.1
Ebuild name:

app-crypt/ccid-1.7.1

Description

CCID free software driver

Added to portage

2026-02-21

devedeng - 4.21.2
Ebuild name:

media-video/devedeng-4.21.2

Description

DevedeNG is a program to create video DVDs and CDs (VCD, sVCD or CVD)

Added to portage

2026-02-21

django-polymorphic - 4.11.1
Ebuild name:

dev-python/django-polymorphic-4.11.1

Description

Seamless Polymorphic Inheritance for Django Models

Added to portage

2026-02-21

drgn - 0.1.0
Ebuild name:

dev-debug/drgn-0.1.0

Description

Programmable debugger

Added to portage

2026-02-21

environs - 14.6.0
Ebuild name:

dev-python/environs-14.6.0

Description

Python library for simplified environment variable parsing

Added to portage

2026-02-21

fixtures - 4.3.0
Ebuild name:

dev-python/fixtures-4.3.0

Description

Fixtures, reusable state for writing clean tests and more

Added to portage

2026-02-21

free42 - 3.3.11
Ebuild name:

app-emulation/free42-3.3.11

Description

An HP-42S Calculator Simulator

Added to portage

2026-02-21

ginac - 1.8.10
Ebuild name:

sci-mathematics/ginac-1.8.10

Description

C++ library and tools for symbolic calculations

Added to portage

2026-02-21

greenlet - 3.3.2
Ebuild name:

dev-python/greenlet-3.3.2

Description

Lightweight in-process concurrent programming

Added to portage

2026-02-21

heroic-bin - 2.20.0
Ebuild name:

games-util/heroic-bin-2.20.0

Description

GOG and Epic Games Launcher for Linux

Added to portage

2026-02-21

i2p - 2.11.0
Ebuild name:

net-vpn/i2p-2.11.0

Description

A privacy-centric, anonymous network

Added to portage

2026-02-21

iptables - 1.8.12
Ebuild name:

net-firewall/iptables-1.8.12

Description

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

Added to portage

2026-02-21

jsonschema-path - 0.4.1
Ebuild name:

dev-python/jsonschema-path-0.4.1

Description

JSONSchema Spec with object-oriented paths

Added to portage

2026-02-21

keystoneauth1 - 5.13.1
Ebuild name:

dev-python/keystoneauth1-5.13.1

Description

This package contains tools for authenticating to an OpenStack-base

Added to portage

2026-02-21

lego - 4.32.0
Ebuild name:

app-crypt/lego-4.32.0

Description

Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go

Added to portage

2026-02-21

libsdl3 - 3.4.2
Ebuild name:

media-libs/libsdl3-3.4.2

Description

Simple Direct Media Layer

Added to portage

2026-02-21

mac - 12.34
Ebuild name:

media-sound/mac-12.34

Description

Monkey's Audio Codecs

Added to portage

2026-02-21

maturin - 1.12.4
Ebuild name:

dev-util/maturin-1.12.4

Description

Build and publish crates with pyo3, rust-cpython and cffi bindings

Added to portage

2026-02-21

metalog - 20260221
Ebuild name:

app-admin/metalog-20260221

Description

Highly configurable replacement for syslogd/klogd

Added to portage

2026-02-21

mkdocs-static-i18n - 1.3.1
Ebuild name:

dev-python/mkdocs-static-i18n-1.3.1

Description

MkDocs i18n plugin using static translation markdown files

Added to portage

2026-02-21

mkdocstrings-python - 2.0.3
Ebuild name:

dev-python/mkdocstrings-python-2.0.3

Description

Python handler for dev-python/mkdocstrings

Added to portage

2026-02-21

mu-cite - 8.1_p202011031127
Ebuild name:

app-emacs/mu-cite-8.1_p202011031127

Description

Message citation utilities for emacsen

Added to portage

2026-02-21

multi-term - 1.4-r1
Ebuild name:

app-emacs/multi-term-1.4-r1

Description

Manage multiple terminal buffers in Emacs

Added to portage

2026-02-21

multiple-cursors - 1.5.0
Ebuild name:

app-emacs/multiple-cursors-1.5.0

Description

Multiple cursors for Emacs

Added to portage

2026-02-21

mumble - 1.6.0_pre20260215-r1
Ebuild name:

net-voip/mumble-1.6.0_pre20260215-r1

Description

Open source, low-latency, high quality voice chat software

Added to portage

2026-02-21

murmur - 1.6.0_pre20260215-r1
Ebuild name:

net-voip/murmur-1.6.0_pre20260215-r1

Description

Open source, low-latency, high quality voice chat server

Added to portage

2026-02-21

nss - 3.121
Ebuild name:

dev-libs/nss-3.121

Description

Mozilla's Network Security Services library that implements PKI support

Added to portage

2026-02-21

openpgp-keys-dovecot - 20260122
Ebuild name:

sec-keys/openpgp-keys-dovecot-20260122

Description

OpenPGP keys used by net-mail/dovecot

Added to portage

2026-02-21

openpgp-keys-postfix - 20260122
Ebuild name:

sec-keys/openpgp-keys-postfix-20260122

Description

OpenPGP keys used by mail-mta/postfix

Added to portage

2026-02-21

oslo-concurrency - 7.4.0
Ebuild name:

dev-python/oslo-concurrency-7.4.0

Description

Oslo Concurrency library

Added to portage

2026-02-21

oslo-utils - 10.0.0
Ebuild name:

dev-python/oslo-utils-10.0.0

Description

Oslo Utility library

Added to portage

2026-02-21

pathable - 0.5.0
Ebuild name:

dev-python/pathable-0.5.0

Description

Object-oriented paths

Added to portage

2026-02-21

pdns - 5.0.3
Ebuild name:

net-dns/pdns-5.0.3

Description

The PowerDNS Daemon

Added to portage

2026-02-21

peewee - 4.0.0
Ebuild name:

dev-python/peewee-4.0.0

Description

Small Python ORM

Added to portage

2026-02-21

pipdeptree - 2.31.0
Ebuild name:

dev-python/pipdeptree-2.31.0

Description

Utility for displaying installed packages in a dependency tree

Added to portage

2026-02-21

pipewire - 1.6.0
Ebuild name:

media-video/pipewire-1.6.0

Description

Multimedia processing graphs

Added to portage

2026-02-21

pipewire - 1.6.9999
Ebuild name:

media-video/pipewire-1.6.9999

Description

Multimedia processing graphs

Added to portage

2026-02-21

pkcs11-helper - 1.31.0
Ebuild name:

dev-libs/pkcs11-helper-1.31.0

Description

PKCS11 helper library

Added to portage

2026-02-21

plus42 - 1.3.13
Ebuild name:

app-emulation/plus42-1.3.13

Description

An Enhanced HP-42S Calculator Simulator

Added to portage

2026-02-21

puremagic - 2.0.0
Ebuild name:

dev-python/puremagic-2.0.0

Description

Pure python implementation of magic file detection

Added to portage

2026-02-21

pylint - 4.0.5
Ebuild name:

dev-python/pylint-4.0.5

Description

Python code static checker

Added to portage

2026-02-21

selenium - 4.41.0
Ebuild name:

dev-python/selenium-4.41.0

Description

Python language binding for Selenium Remote Control

Added to portage

2026-02-21

selenium-manager - 4.41.0
Ebuild name:

dev-util/selenium-manager-4.41.0

Description

CLI tool that manages the browser/driver infrastructure required b

Added to portage

2026-02-21

sphinxcontrib-programoutput - 0.19
Ebuild name:

dev-python/sphinxcontrib-programoutput-0.19

Description

Extension to sphinx to include program output

Added to portage

2026-02-21

spotify - 1.2.82
Ebuild name:

media-sound/spotify-1.2.82

Description

Spotify is a social music platform

Added to portage

2026-02-21

stestr - 4.2.1
Ebuild name:

dev-python/stestr-4.2.1

Description

A parallel Python test runner built around subunit

Added to portage

2026-02-21

stevedore - 5.7.0
Ebuild name:

dev-python/stevedore-5.7.0

Description

Manage dynamic plugins for Python applications

Added to portage

2026-02-21

subliminal - 2.6.0
Ebuild name:

media-video/subliminal-2.6.0

Description

Python library to search and download subtitles

Added to portage

2026-02-21

talk-desktop-bin - 2.1.1
Ebuild name:

net-im/talk-desktop-bin-2.1.1

Description

Nextcloud Talk Desktop client

Added to portage

2026-02-21

tifffile - 2026.2.20
Ebuild name:

dev-python/tifffile-2026.2.20

Description

Read and write TIFF files

Added to portage

2026-02-21

tox - 4.44.0
Ebuild name:

dev-python/tox-4.44.0

Description

virtualenv-based automation of test activities

Added to portage

2026-02-21

virtualbox-modules - 7.2.6-r2
Ebuild name:

app-emulation/virtualbox-modules-7.2.6-r2

Description

Kernel Modules for Virtualbox

Added to portage

2026-02-21

wine-staging - 11.3
Ebuild name:

app-emulation/wine-staging-11.3

Description

Free implementation of Windows(tm) on Unix, with Wine-Staging patch

Added to portage

2026-02-21

wine-vanilla - 11.3
Ebuild name:

app-emulation/wine-vanilla-11.3

Description

Free implementation of Windows(tm) on Unix, without external patchs

Added to portage

2026-02-21

xvfbwrapper - 0.2.20
Ebuild name:

dev-python/xvfbwrapper-0.2.20

Description

Python wrapper for running a display inside X virtual framebuffer

Added to portage

2026-02-21

rdf newsfeed | rss newsfeed | Atom newsfeed
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
- Copyright and legal notices -
Time to create this page: 34.4 ms