How to search efficiently for a package using Msys2 pacman?

Viewed 4205

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 ?

1 Answers

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 ...
Related