3

When I search for a Package like this

pacman -Qs python
local/python2 2.7.15-2
    A high-level scripting language
local/scons 3.0.1-1 (base-devel)
    Extensible Python-based build utility

2 packages are listed and no python-3 ackage is found

but if I try to install any python like this

pacman -S python

resolving dependencies…
looking for conflicts …

Packages (2) mpdecimal-2.4.2-2  python-3.6.6-1

a python-3 package does appear !

What is the effective way to query packages using pacman ?

umläute
  • 28,885
  • 9
  • 68
  • 122
user1767316
  • 3,276
  • 3
  • 37
  • 46

1 Answers1

4

ok as stated here To search for already installed packages:

$ pacman -Qs string1 string2 ...

Pacman can search for packages in the database, searching both in packages' names and descriptions:

$ pacman -Ss string1 string2 ...
user1767316
  • 3,276
  • 3
  • 37
  • 46
  • what do u mean by `string1 string2`? this way is used for "and"-ing strings, so, in effect it's all just one string. i wanted to search for "or" like search for string1 or string2 (as in searching for multiple packages at once) but couldn't find a way. – user8395964 Jul 08 '23 at 18:09
  • @user8395964 ok but according to the link "here" (https://wiki.archlinux.org/index.php/pacman#Querying_package_databases) I though it would be an or. I didn't practice with pamcan since a long time – user1767316 Jul 10 '23 at 10:36