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:

78181

userrating:

average rating: 1.1 (26 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


rate this article:
current rating: average rating: 1.0 (206 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2025-07-11
azure-core - 1.16.0
Ebuild name:

dev-cpp/azure-core-1.16.0

Description

Azure SDK for C++

Added to portage

2025-07-11

azure-identity - 1.12.0
Ebuild name:

dev-cpp/azure-identity-1.12.0

Description

Azure SDK for C++

Added to portage

2025-07-11

dist-kernel - 6.12.37
Ebuild name:

virtual/dist-kernel-6.12.37

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-07-11

dist-kernel - 6.15.6
Ebuild name:

virtual/dist-kernel-6.15.6

Description

Virtual to depend on any Distribution Kernel

Added to portage

2025-07-11

flrig - 2.0.08
Ebuild name:

media-radio/flrig-2.0.08

Description

Transceiver control program for Amateur Radio use

Added to portage

2025-07-11

gentoo-kernel - 6.12.37
Ebuild name:

sys-kernel/gentoo-kernel-6.12.37

Description

Linux kernel built with Gentoo patches

Added to portage

2025-07-11

gentoo-kernel - 6.15.6
Ebuild name:

sys-kernel/gentoo-kernel-6.15.6

Description

Linux kernel built with Gentoo patches

Added to portage

2025-07-11

gentoo-kernel-bin - 6.12.37
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.12.37

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-07-11

gentoo-kernel-bin - 6.15.6
Ebuild name:

sys-kernel/gentoo-kernel-bin-6.15.6

Description

Pre-built Linux kernel with Gentoo patches

Added to portage

2025-07-11

inspectrum - 0.3.1
Ebuild name:

net-wireless/inspectrum-0.3.1

Description

Tool for analysing captured signals from software-defined radio recei

Added to portage

2025-07-11

konqueror - 25.04.3-r1
Ebuild name:

kde-apps/konqueror-25.04.3-r1

Description

Web browser and file manager based on KDE Frameworks

Added to portage

2025-07-11

mod_h2 - 2.0.33
Ebuild name:

www-apache/mod_h2-2.0.33

Description

HTTP/2 module for Apache

Added to portage

2025-07-11

onlyoffice-bin - 9.0.3
Ebuild name:

app-office/onlyoffice-bin-9.0.3

Description

Onlyoffice is an office productivity suite (binary version)

Added to portage

2025-07-11

openssl - 3.0.17
Ebuild name:

dev-libs/openssl-3.0.17

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security

Added to portage

2025-07-11

openssl - 3.2.5
Ebuild name:

dev-libs/openssl-3.2.5

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2025-07-11

openssl - 3.3.4
Ebuild name:

dev-libs/openssl-3.3.4

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2025-07-11

openssl - 3.4.2
Ebuild name:

dev-libs/openssl-3.4.2

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2025-07-11

openssl - 3.5.1
Ebuild name:

dev-libs/openssl-3.5.1

Description

Robust, full-featured Open Source Toolkit for the Transport Layer Security (

Added to portage

2025-07-11

ppx_deriving - 6.0.3-r1
Ebuild name:

dev-ml/ppx_deriving-6.0.3-r1

Description

Type-driven code generation for OCaml

Added to portage

2025-07-11

ppx_deriving - 6.1.0
Ebuild name:

dev-ml/ppx_deriving-6.1.0

Description

Type-driven code generation for OCaml

Added to portage

2025-07-11

robotfindskitten - 2.8284271.702
Ebuild name:

games-misc/robotfindskitten-2.8284271.702

Description

Help robot find kitten

Added to portage

2025-07-11

vanilla-kernel - 6.12.37
Ebuild name:

sys-kernel/vanilla-kernel-6.12.37

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-07-11

vanilla-kernel - 6.15.6
Ebuild name:

sys-kernel/vanilla-kernel-6.15.6

Description

Linux kernel built from vanilla upstream sources

Added to portage

2025-07-11

2025-07-10
Encode-IMAPUTF7 - 1.70.0
Ebuild name:

dev-perl/Encode-IMAPUTF7-1.70.0

Description

Modification of UTF-7 encoding for IMAP

Added to portage

2025-07-10

Exception-System - 0.110.0-r3
Ebuild name:

dev-perl/Exception-System-0.110.0-r3

Description

Exception class for system or library calls

Added to portage

2025-07-10

Exception-Warning - 0.40.100-r3
Ebuild name:

dev-perl/Exception-Warning-0.40.100-r3

Description

Convert simple warn into real exception object

Added to portage

2025-07-10

Exporter-Cluster - 0.310.0-r3
Ebuild name:

dev-perl/Exporter-Cluster-0.310.0-r3

Description

Extension for easy multiple module imports

Added to portage

2025-07-10

ExtUtils-Depends - 0.800.100-r1
Ebuild name:

dev-perl/ExtUtils-Depends-0.800.100-r1

Description

Easily build XS extensions that depend on XS extensions

Added to portage

2025-07-10

ExtUtils-F77 - 1.260.0-r1
Ebuild name:

dev-perl/ExtUtils-F77-1.260.0-r1

Description

Simple interface to F77 libs

Added to portage

2025-07-10

ExtUtils-LibBuilder - 0.80.0-r2
Ebuild name:

dev-perl/ExtUtils-LibBuilder-0.80.0-r2

Description

Tool to build C libraries

Added to portage

2025-07-10

ExtUtils-XSBuilder - 0.280.0-r3
Ebuild name:

dev-perl/ExtUtils-XSBuilder-0.280.0-r3

Description

Modules to parse C header files and create XS glue code

Added to portage

2025-07-10

ExtUtils-XSpp - 0.180.0-r2
Ebuild name:

dev-perl/ExtUtils-XSpp-0.180.0-r2

Description

XS for C++

Added to portage

2025-07-10

File-BOM - 0.180.0-r1
Ebuild name:

dev-perl/File-BOM-0.180.0-r1

Description

Utilities for handling Byte Order Marks

Added to portage

2025-07-10

adjtimex - 1.29-r4
Ebuild name:

net-misc/adjtimex-1.29-r4

Description

Display or set the kernel time variables

Added to portage

2025-07-10

asm - 9.7.1-r1
Ebuild name:

dev-java/asm-9.7.1-r1

Description

Bytecode manipulation framework for Java

Added to portage

2025-07-10

asm - 9.8-r1
Ebuild name:

dev-java/asm-9.8-r1

Description

Bytecode manipulation framework for Java

Added to portage

2025-07-10

awscli - 1.41.4
Ebuild name:

app-admin/awscli-1.41.4

Description

Universal Command Line Environment for AWS

Added to portage

2025-07-10

bareos - 24.0.4
Ebuild name:

app-backup/bareos-24.0.4

Description

Featureful client/server network backup suite

Added to portage

2025-07-10

binutils-hppa64 - 2.44-r3
Ebuild name:

sys-devel/binutils-hppa64-2.44-r3

Description

Tools necessary to build programs

Added to portage

2025-07-10

boto3 - 1.39.4
Ebuild name:

dev-python/boto3-1.39.4

Description

The AWS SDK for Python

Added to portage

2025-07-10

botocore - 1.39.4
Ebuild name:

dev-python/botocore-1.39.4

Description

Low-level, data-driven core of boto 3

Added to portage

2025-07-10

camlidl - 1.13
Ebuild name:

dev-ml/camlidl-1.13

Description

Stub code generator for OCaml

Added to portage

2025-07-10

chromium - 139.0.7258.31
Ebuild name:

www-client/chromium-139.0.7258.31

Description

Open-source version of Google Chrome web browser

Added to portage

2025-07-10

clang - 20.1.8
Ebuild name:

dev-python/clang-20.1.8

Description

Python bindings for llvm-core/clang

Added to portage

2025-07-10

clang - 20.1.8
Ebuild name:

llvm-core/clang-20.1.8

Description

C language family frontend for LLVM

Added to portage

2025-07-10

clang-common - 20.1.8
Ebuild name:

llvm-core/clang-common-20.1.8

Description

Common files shared between multiple slots of clang

Added to portage

2025-07-10

clang-runtime - 20.1.8
Ebuild name:

llvm-core/clang-runtime-20.1.8

Description

Meta-ebuild for clang runtime libraries

Added to portage

2025-07-10

commons-cli - 1.9.0-r1
Ebuild name:

dev-java/commons-cli-1.9.0-r1

Description

A Java library for working with the command line arguments and option

Added to portage

2025-07-10

compiler-rt - 20.1.8
Ebuild name:

llvm-runtimes/compiler-rt-20.1.8

Description

Compiler runtime library for clang (built-in part)

Added to portage

2025-07-10

compiler-rt-sanitizers - 20.1.8
Ebuild name:

llvm-runtimes/compiler-rt-sanitizers-20.1.8

Description

Compiler runtime libraries for clang (sanitizers & xray

Added to portage

2025-07-10

copyq - 9.1.0-r1
Ebuild name:

x11-misc/copyq-9.1.0-r1

Description

Clipboard manager with advanced features

Added to portage

2025-07-10

dbf - 5.1.1
Ebuild name:

dev-ruby/dbf-5.1.1

Description

Small fast library for reading dBase, xBase, Clipper, FoxPro databases

Added to portage

2025-07-10

dict2xml - 1.7.7
Ebuild name:

dev-python/dict2xml-1.7.7

Description

Small utility to convert a python dictionary into an XML string

Added to portage

2025-07-10

dotnet-runtime-nugets - 8.0.18
Ebuild name:

dev-dotnet/dotnet-runtime-nugets-8.0.18

Description

.NET runtime nugets

Added to portage

2025-07-10

dotnet-runtime-nugets - 9.0.7
Ebuild name:

dev-dotnet/dotnet-runtime-nugets-9.0.7

Description

.NET runtime nugets

Added to portage

2025-07-10

dotnet-sdk-bin - 9.0.108
Ebuild name:

dev-dotnet/dotnet-sdk-bin-9.0.108

Description

.NET is a free, cross-platform, open-source developer platform

Added to portage

2025-07-10

dotnet-sdk-bin - 9.0.302
Ebuild name:

dev-dotnet/dotnet-sdk-bin-9.0.302

Description

.NET is a free, cross-platform, open-source developer platform

Added to portage

2025-07-10

exif - 0.6.22-r2
Ebuild name:

media-gfx/exif-0.6.22-r2

Description

Small CLI util to show EXIF infos hidden in JPEG files

Added to portage

2025-07-10

gst-plugins-qt6 - 1.24.11
Ebuild name:

media-plugins/gst-plugins-qt6-1.24.11

Description

Qt6 QML video sink plugin for GStreamer

Added to portage

2025-07-10

hcloud - 2.5.4
Ebuild name:

dev-python/hcloud-2.5.4

Description

Official Hetzner Cloud python library

Added to portage

2025-07-10

idris2 - 0.7.0-r1
Ebuild name:

dev-lang/idris2-0.7.0-r1

Description

Purely functional programming language with first class types

Added to portage

2025-07-10

java-dep-check - 0.5-r6
Ebuild name:

dev-java/java-dep-check-0.5-r6

Description

Java Dependency checker

Added to portage

2025-07-10

jenkins-bin - 2.504.3
Ebuild name:

dev-util/jenkins-bin-2.504.3

Description

The leading open source automation server

Added to portage

2025-07-10

kamoso - 25.07.80_pre20250708
Ebuild name:

kde-apps/kamoso-25.07.80_pre20250708

Description

Application to take pictures and videos from your webcam

Added to portage

2025-07-10

kdeedu-meta - 25.04.3-r1
Ebuild name:

kde-apps/kdeedu-meta-25.04.3-r1

Description

KDE educational apps - merge this to pull in all kdeedu-derived pac

Added to portage

2025-07-10

kdemultimedia-meta - 25.04.3-r1
Ebuild name:

kde-apps/kdemultimedia-meta-25.04.3-r1

Description

kdemultimedia - merge this to pull in all kdemultimedia-deri

Added to portage

2025-07-10

kmod - 34.2
Ebuild name:

sys-apps/kmod-34.2

Description

Library and tools for managing linux kernel modules

Added to portage

2025-07-10

kmymoney - 5.2.0_p20250709
Ebuild name:

app-office/kmymoney-5.2.0_p20250709

Description

Personal finance manager based on KDE Frameworks

Added to portage

2025-07-10

kontact - 25.04.3-r1
Ebuild name:

kde-apps/kontact-25.04.3-r1

Description

Container application to unify several major PIM applications within on

Added to portage

2025-07-10

libalkimia - 8.2.0_p20250709
Ebuild name:

app-office/libalkimia-8.2.0_p20250709

Description

Library with common classes and functionality used by KDE fin

Added to portage

2025-07-10

libclc - 20.1.8
Ebuild name:

llvm-core/libclc-20.1.8

Description

OpenCL C library

Added to portage

2025-07-10

libcxx - 20.1.8
Ebuild name:

llvm-runtimes/libcxx-20.1.8

Description

New implementation of the C++ standard library, targeting C++11

Added to portage

2025-07-10

libcxxabi - 20.1.8
Ebuild name:

llvm-runtimes/libcxxabi-20.1.8

Description

Low level support for a standard C++ library

Added to portage

2025-07-10

libgcc - 20.1.8
Ebuild name:

llvm-runtimes/libgcc-20.1.8

Description

Compiler runtime library for clang, compatible with libgcc_s

Added to portage

2025-07-10

libgphoto2 - 2.5.32
Ebuild name:

media-libs/libgphoto2-2.5.32

Description

Library that implements support for numerous digital cameras

Added to portage

2025-07-10

libphonenumber - 8.13.47-r1
Ebuild name:

dev-libs/libphonenumber-8.13.47-r1

Description

Library for parsing, formatting, and validating international ph

Added to portage

2025-07-10

libunwind - 20.1.8
Ebuild name:

llvm-runtimes/libunwind-20.1.8

Description

C++ runtime stack unwinder from LLVM

Added to portage

2025-07-10

lit - 20.1.8
Ebuild name:

dev-python/lit-20.1.8

Description

A stand-alone install of the LLVM suite testing tool

Added to portage

2025-07-10

lld - 20.1.8
Ebuild name:

llvm-core/lld-20.1.8

Description

The LLVM linker (link editor)

Added to portage

2025-07-10

lldb - 20.1.8
Ebuild name:

llvm-core/lldb-20.1.8

Description

The LLVM debugger

Added to portage

2025-07-10

llvm - 20.1.8
Ebuild name:

dev-ml/llvm-20.1.8

Description

OCaml bindings for LLVM

Added to portage

2025-07-10

llvm - 20.1.8
Ebuild name:

llvm-core/llvm-20.1.8

Description

Low Level Virtual Machine

Added to portage

2025-07-10

llvm-common - 20.1.8
Ebuild name:

llvm-core/llvm-common-20.1.8

Description

Common files shared between multiple slots of LLVM

Added to portage

2025-07-10

mbedtls - 3.6.4
Ebuild name:

net-libs/mbedtls-3.6.4

Description

Cryptographic library for embedded systems

Added to portage

2025-07-10

melonds - 1.0
Ebuild name:

games-emulation/melonds-1.0

Description

Nintendo DS emulator, sorta

Added to portage

2025-07-10

offload - 20.1.8-r1
Ebuild name:

llvm-runtimes/offload-20.1.8-r1

Description

OpenMP offloading support

Added to portage

2025-07-10

openblas - 0.3.30-r1
Ebuild name:

sci-libs/openblas-0.3.30-r1

Description

Optimized BLAS library based on GotoBLAS2

Added to portage

2025-07-10

openjdk - 11.0.27_p6-r1
Ebuild name:

dev-java/openjdk-11.0.27_p6-r1

Description

Open source implementation of the Java programming language

Added to portage

2025-07-10

openjdk - 17.0.15_p6-r1
Ebuild name:

dev-java/openjdk-17.0.15_p6-r1

Description

Open source implementation of the Java programming language

Added to portage

2025-07-10

openjdk - 21.0.7_p6-r1
Ebuild name:

dev-java/openjdk-21.0.7_p6-r1

Description

Open source implementation of the Java programming language

Added to portage

2025-07-10

openjdk - 25_p19-r1
Ebuild name:

dev-java/openjdk-25_p19-r1

Description

Open source implementation of the Java programming language

Added to portage

2025-07-10

openjdk - 8.452_p09-r1
Ebuild name:

dev-java/openjdk-8.452_p09-r1

Description

Open source implementation of the Java programming language

Added to portage

2025-07-10

openmp - 20.1.8
Ebuild name:

llvm-runtimes/openmp-20.1.8

Description

OpenMP runtime library for LLVM/clang compiler

Added to portage

2025-07-10

pbs-installer - 2025.07.08
Ebuild name:

dev-python/pbs-installer-2025.07.08

Description

Installer for Python Build Standalone

Added to portage

2025-07-10

polly - 20.1.8
Ebuild name:

llvm-core/polly-20.1.8

Description

Polyhedral optimizations for LLVM

Added to portage

2025-07-10

postfix - 3.11_pre20250709
Ebuild name:

mail-mta/postfix-3.11_pre20250709

Description

A fast and secure drop-in replacement for sendmail

Added to portage

2025-07-10

powershell - 0.3_pre20220402
Ebuild name:

app-emacs/powershell-0.3_pre20220402

Description

GNU Emacs mode for editing and running PowerShell code

Added to portage

2025-07-10

readline - 8.3-r2
Ebuild name:

sys-libs/readline-8.3-r2

Description

Another cute console display library

Added to portage

2025-07-10

resolv - 0.6.2
Ebuild name:

dev-ruby/resolv-0.6.2

Description

Thread-aware DNS resolver library in Ruby

Added to portage

2025-07-10

samba - 4.21.7
Ebuild name:

net-fs/samba-4.21.7

Description

Samba Suite Version 4

Added to portage

2025-07-10

samba - 4.22.3
Ebuild name:

net-fs/samba-4.22.3

Description

Samba Suite Version 4

Added to portage

2025-07-10

screenkey - 1.5_p20230109-r3
Ebuild name:

x11-misc/screenkey-1.5_p20230109-r3

Description

A screencast tool to display your keys inspired by Screenflick

Added to portage

2025-07-10

signal-desktop-bin - 7.61.0
Ebuild name:

net-im/signal-desktop-bin-7.61.0

Description

Allows you to send and receive messages of Signal Messenger on you

Added to portage

2025-07-10

spectacle - 6.3.6-r1
Ebuild name:

kde-plasma/spectacle-6.3.6-r1

Description

Screenshot capture utility

Added to portage

2025-07-10

spectacle - 6.4.2-r1
Ebuild name:

kde-plasma/spectacle-6.4.2-r1

Description

Screenshot capture utility

Added to portage

2025-07-10

thunderbird - 140.0.1
Ebuild name:

mail-client/thunderbird-140.0.1

Description

Thunderbird Mail Client

Added to portage

2025-07-10

thunderbird-bin - 140.0.1
Ebuild name:

mail-client/thunderbird-bin-140.0.1

Description

Thunderbird Mail Client

Added to portage

2025-07-10

trimesh - 4.7.0
Ebuild name:

dev-python/trimesh-4.7.0

Description

Python library for loading and using triangular meshes

Added to portage

2025-07-10

uv - 0.7.20
Ebuild name:

dev-python/uv-0.7.20

Description

A Python package installer and resolver, written in Rust

Added to portage

2025-07-10

uv-build - 0.7.20
Ebuild name:

dev-python/uv-build-0.7.20

Description

PEP517 uv build backend

Added to portage

2025-07-10

wayfire - 0.9.0-r1
Ebuild name:

gui-wm/wayfire-0.9.0-r1

Description

compiz like 3D wayland compositor

Added to portage

2025-07-10

why3 - 1.8.1
Ebuild name:

sci-mathematics/why3-1.8.1

Description

Platform for deductive program verification

Added to portage

2025-07-10

wireless-tools - 30_pre9-r2
Ebuild name:

net-wireless/wireless-tools-30_pre9-r2

Description

A collection of tools to configure IEEE 802.11 wireless LAN

Added to portage

2025-07-10

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
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: 69.8 ms