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:

83856

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-03-21
2026-03-20
accel-ppp - 1.14.0-r2
Ebuild name:

net-dialup/accel-ppp-1.14.0-r2

Description

High performance PPTP/L2TP/SSTP/PPPoE/IPoE server

Added to portage

2026-03-20

attrs - 26.1.0
Ebuild name:

dev-python/attrs-26.1.0

Description

Attributes without boilerplate

Added to portage

2026-03-20

awscli - 1.44.62
Ebuild name:

app-admin/awscli-1.44.62

Description

Universal Command Line Environment for AWS

Added to portage

2026-03-20

boto3 - 1.42.72
Ebuild name:

dev-python/boto3-1.42.72

Description

The AWS SDK for Python

Added to portage

2026-03-20

botocore - 1.42.72
Ebuild name:

dev-python/botocore-1.42.72

Description

Low-level, data-driven core of boto 3

Added to portage

2026-03-20

chibi - 0.12
Ebuild name:

dev-scheme/chibi-0.12

Description

Minimal Scheme implementation for use as an extension language

Added to portage

2026-03-20

coreutils - 9.9-r12
Ebuild name:

sys-apps/coreutils-9.9-r12

Description

Standard GNU utilities (chmod, cp, dd, ls, sort, tr, head, wc, who,...)

Added to portage

2026-03-20

deno-bin - 2.7.7
Ebuild name:

dev-lang/deno-bin-2.7.7

Description

Modern runtime for JavaScript and TypeScript

Added to portage

2026-03-20

discord - 0.0.129
Ebuild name:

net-im/discord-0.0.129

Description

All-in-one voice and text chat for gamers

Added to portage

2026-03-20

dist-kernel - 6.18.19
Ebuild name:

virtual/dist-kernel-6.18.19

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-03-20

dist-kernel - 6.19.9
Ebuild name:

virtual/dist-kernel-6.19.9

Description

Virtual to depend on any Distribution Kernel

Added to portage

2026-03-20

gallery-dl - 1.31.10
Ebuild name:

net-misc/gallery-dl-1.31.10

Description

Download image galleries and collections from several image hosting sit

Added to portage

2026-03-20

gentoo-kernel - 6.18.19
Ebuild name:

sys-kernel/gentoo-kernel-6.18.19

Description

Linux kernel built with Gentoo patches

Added to portage

2026-03-20

gentoo-kernel - 6.19.9
Ebuild name:

sys-kernel/gentoo-kernel-6.19.9

Description

Linux kernel built with Gentoo patches

Added to portage

2026-03-20

gentoo-kernel-bin - 6.18.19
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.18.19

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-03-20

gentoo-kernel-bin - 6.19.9
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.19.9

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2026-03-20

gentoo-sources - 6.18.19
Ebuild name:

sys-kernel/gentoo-sources-6.18.19

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-03-20

gentoo-sources - 6.19.9
Ebuild name:

sys-kernel/gentoo-sources-6.19.9

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2026-03-20

gmpy2 - 2.4.0_alpha0
Ebuild name:

dev-python/gmpy2-2.4.0_alpha0

Description

Python bindings for GMP, MPC, MPFR and MPIR libraries

Added to portage

2026-03-20

godot - 4.5.2
Ebuild name:

dev-games/godot-4.5.2

Description

Multi-platform 2D and 3D game engine with a feature-rich editor

Added to portage

2026-03-20

haproxy - 2.8.20
Ebuild name:

net-proxy/haproxy-2.8.20

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-03-20

haproxy - 3.0.19
Ebuild name:

net-proxy/haproxy-3.0.19

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-03-20

haproxy - 3.2.15
Ebuild name:

net-proxy/haproxy-3.2.15

Description

A TCP/HTTP reverse proxy for high availability environments

Added to portage

2026-03-20

importlib-metadata - 8.8.0
Ebuild name:

dev-python/importlib-metadata-8.8.0

Description

Read metadata from Python packages

Added to portage

2026-03-20

jingoo - 1.5.2
Ebuild name:

dev-ml/jingoo-1.5.2

Description

OCaml template engine almost compatible with Jinja2

Added to portage

2026-03-20

keychain - 2.9.8
Ebuild name:

net-misc/keychain-2.9.8

Description

Agent manager for OpenSSH, ssh.com, Sun SSH, and GnuPG

Added to portage

2026-03-20

mpc - 1.4.0
Ebuild name:

dev-libs/mpc-1.4.0

Description

A library for multiprecision complex arithmetic with exact rounding

Added to portage

2026-03-20

nitrocli - 0.4.1-r2
Ebuild name:

app-crypt/nitrocli-0.4.1-r2

Description

A command line tool for interacting with Nitrokey devices

Added to portage

2026-03-20

nwipe - 0.39
Ebuild name:

app-crypt/nwipe-0.39

Description

Securely erase disks using a variety of recognized methods

Added to portage

2026-03-20

onak - 0.6.3
Ebuild name:

app-crypt/onak-0.6.3

Description

onak is an OpenPGP keyserver

Added to portage

2026-03-20

pandoc-bin - 3.9.0.2
Ebuild name:

app-text/pandoc-bin-3.9.0.2

Description

Conversion between markup formats (binary package)

Added to portage

2026-03-20

pipdeptree - 2.32.0
Ebuild name:

dev-python/pipdeptree-2.32.0

Description

Utility for displaying installed packages in a dependency tree

Added to portage

2026-03-20

pwsh - 7.6
Ebuild name:

virtual/pwsh-7.6

Description

Virtual for PowerShell

Added to portage

2026-03-20

pwsh - 7.6.0
Ebuild name:

app-shells/pwsh-7.6.0

Description

Cross-platform automation and configuration tool

Added to portage

2026-03-20

pwsh-bin - 7.6.0
Ebuild name:

app-shells/pwsh-bin-7.6.0

Description

Cross-platform automation and configuration tool (binary package)

Added to portage

2026-03-20

pysubs2 - 1.8.1
Ebuild name:

dev-python/pysubs2-1.8.1

Description

Python library for editing subtitle files

Added to portage

2026-03-20

ruff - 0.15.7
Ebuild name:

dev-util/ruff-0.15.7

Description

An extremely fast Python linter, written in Rust

Added to portage

2026-03-20

sabctools - 9.4.0
Ebuild name:

dev-python/sabctools-9.4.0

Description

Module providing raw yEnc encoding/decoding for SABnzbd

Added to portage

2026-03-20

scitokens-cpp - 1.4.1
Ebuild name:

dev-cpp/scitokens-cpp-1.4.1

Description

C++ implementation of the SciTokens library with a C library interface

Added to portage

2026-03-20

setuptools-scm - 10.0.1
Ebuild name:

dev-python/setuptools-scm-10.0.1

Description

Manage versions by scm tags via setuptools

Added to portage

2026-03-20

shell-maker - 0.89.2
Ebuild name:

app-emacs/shell-maker-0.89.2

Description

Interaction mode for making comint shells for GNU Emacs

Added to portage

2026-03-20

simdjson - 4.4.2
Ebuild name:

dev-libs/simdjson-4.4.2

Description

SIMD accelerated C++ JSON library

Added to portage

2026-03-20

systemd-initctl - 4
Ebuild name:

sys-apps/systemd-initctl-4

Description

initctl Compatibility Daemon

Added to portage

2026-03-20

tox - 4.50.3
Ebuild name:

dev-python/tox-4.50.3

Description

virtualenv-based automation of test activities

Added to portage

2026-03-20

unifi - 10.1.89
Ebuild name:

net-wireless/unifi-10.1.89

Description

A Management Controller for Ubiquiti Networks UniFi APs

Added to portage

2026-03-20

uv - 0.10.12
Ebuild name:

dev-python/uv-0.10.12

Description

A Python package installer and resolver, written in Rust

Added to portage

2026-03-20

uv-build - 0.10.12
Ebuild name:

dev-python/uv-build-0.10.12

Description

PEP517 uv build backend

Added to portage

2026-03-20

vanilla-kernel - 6.18.19
Ebuild name:

sys-kernel/vanilla-kernel-6.18.19

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-03-20

vanilla-kernel - 6.19.9
Ebuild name:

sys-kernel/vanilla-kernel-6.19.9

Description

Linux kernel built from vanilla upstream sources

Added to portage

2026-03-20

vcs-versioning - 1.0.1
Ebuild name:

dev-python/vcs-versioning-1.0.1

Description

Core VCS versioning functionality from setuptools-scm

Added to portage

2026-03-20

vivaldi - 7.9.3970.39
Ebuild name:

www-client/vivaldi-7.9.3970.39

Description

A browser for our friends

Added to portage

2026-03-20

whenever - 0.10.0_alpha1
Ebuild name:

dev-python/whenever-0.10.0_alpha1

Description

Modern datetime library for Python

Added to portage

2026-03-20

whois - 5.6.6
Ebuild name:

net-misc/whois-5.6.6

Description

Improved Whois Client

Added to portage

2026-03-20

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