You are not logged in.

#1 2020-01-02 21:15:22

ttoirrah
Member
Registered: 2015-01-29
Posts: 52

pacman -Qs string1 string2 returns nothing

I can do this:

$ pacman -Qs libdmx
local/libdmx 1.1.4-1

and this:

$ pacman -Qs libxxf86dga
local/libxxf86dga 1.1.5-1

but this returns nothing:

$ pacman -Qs libdmx libxxf86dga

which isn't normal, or as recommended in pacman > Querying package databases.
Any ideas why?

Offline

#2 2020-01-02 21:31:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,659

Re: pacman -Qs string1 string2 returns nothing

It's a regex string search, both strings must be part of the description, if you want a package information print out drop the -s

man pacman wrote:

-s, --search <regexp>
           Search each locally-installed package for names or descriptions that match regexp. When including multiple search terms, only packages with
           descriptions matching ALL of those terms are returned.

Offline

#3 2020-01-02 21:38:10

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,772

Re: pacman -Qs string1 string2 returns nothing

But, man pacman says

       -s, --search <regexp>
           Search each locally-installed package for names or descriptions that match regexp. When including
           multiple search terms, only packages with descriptions matching ALL of those terms are returned.

Behold:

ewaller@odin/home/ewaller[1] % pacman -Qs firmware linux
local/linux-firmware 20191220.6871bff-1
    Firmware files for Linux
ewaller@odin/home/ewaller % pacman -Qs linux
local/alsa-lib 1.2.1.2-2
    An alternative implementation of Linux sound support
local/alsa-utils 1.2.1-1
    An alternative implementation of Linux sound support
local/android-udev 20191103-1
    Udev rules to connect Android devices to your linux box
local/arch-install-scripts 23-1
    Scripts to aid in installing Arch Linux
local/archlinux-keyring 20191219-1
    Arch Linux PGP keyring
local/avahi 0.7+18+g1b5f401-3
    Service Discovery for Linux using mDNS/DNS-SD -- compatible with Bonjour
local/base 2-2
    Minimal package set to define a basic Arch Linux installation
local/bridge-utils 1.6-4
    Utilities for configuring the Linux ethernet bridge
local/brltty 6.0-8
    Braille display driver for Linux/Unix
local/bsd-games 2.17-18
    Linux port of the collection of BSD command line games
local/devtools 20191212-1
    Tools for Arch Linux package maintainers
local/filesystem 2019.10-2
    Base Arch Linux files
local/i7z 0.27.2.git1-6
    A better i7 (and now i3, i5) reporting tool for Linux
local/iptables 1:1.8.3-3
    Linux kernel packet control tool (using legacy interface)
local/keyutils 1.6.1-3
    Linux Key Management Utilities
local/kmod 26-3
    Linux kernel module management tools and library
local/ladspa 1.15-1
    Linux Audio Developer's Simple Plugin API (LADSPA)
local/libaio 0.3.112-2
    The Linux-native asynchronous I/O facility (aio) library
local/libiec61883 1.2.0-5
    A higher level API for streaming DV, MPEG-2 and audio over Linux IEEE 1394
local/libimobiledevice 1.2.0+87+g92c5462-6
    Library that talks the protocols to support iPhone and iPod Touch devices on
    Linux
local/libraw1394 2.1.2-2
    Provides an API to the Linux IEEE1394 (FireWire) driver
local/libutil-linux 2.34-8
    util-linux runtime libraries
local/libva 2.6.0-1
    Video Acceleration (VA) API for Linux
local/libxshmfence 1.3-1
    a library that exposes a event API on top of Linux futexes
local/linux 5.4.7.arch1-1
    The Linux kernel and modules
local/linux-api-headers 5.3.1-2
    Kernel headers sanitized for use in userspace
local/linux-firmware 20191220.6871bff-1
    Firmware files for Linux
local/lirc 1:0.10.1-4
    Linux Infrared Remote Control utilities
local/man-pages 5.04-2
    Linux man pages
local/mdadm 4.1-2
    A tool for managing/monitoring Linux md device arrays, also known as
    Software RAID
local/mplayer 38139-3
    Media player for Linux
local/ndctl 67-1
    Utility library for managing the libnvdimm (non-volatile memory device)
    sub-system in the Linux kernel
local/ni-visa 17.0.0-3
    National Instruments NI-VISA(TM) Library for Linux.
local/pacman-mirrorlist 20191001-2
    Arch Linux mirror list for use by pacman
local/python-distro 1.4.0-3
    Linux OS platform information API
local/python2-distro 1.4.0-3
    Linux OS platform information API
local/util-linux 2.34-8
    Miscellaneous system utilities for Linux
local/v4l-utils 1.18.0-1
    Userspace tools and conversion library for Video 4 Linux
ewaller@odin/home/ewaller % pacman -Qs firmware
local/efibootmgr 16-2
    Tool to modify UEFI Firmware Boot Manager Variables
local/linux-firmware 20191220.6871bff-1
    Firmware files for Linux
ewaller@odin/home/ewaller % 

Edit:  Snaked.  Yet again.

Last edited by ewaller (2020-01-02 21:39:43)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2020-05-17 13:22:23

ttoirrah
Member
Registered: 2015-01-29
Posts: 52

Re: pacman -Qs string1 string2 returns nothing

Ah yes, of course.

Offline

#5 2020-05-17 13:48:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: pacman -Qs string1 string2 returns nothing

The above are, or course, correct.  But it's a bit odd to use the -s flag at all in your case.  If you know the package names, you don't need to search.  This will work:

pacman -Q libdmx libxxf86dga

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB