I wanted to install man and wanted to look it up. pacman -Ss man finds a lot of unrelated packages but the correct way should be (I believe; I'm new to MSYS2 & Pacman):
# Update repository databases
pacman -Fy
# Should find man-db-2.8.3-2 but doesn't
pacman -Fs man
This gives me these results, missing man-db-2.8.3-2:
$ pacman -Fs man
msys/bash-completion 2.8-2
usr/share/bash-completion/completions/man
msys/xmlto 0.0.28-1
usr/share/xmlto/format/docbook/man
-F is used for searching files.
If you want to search in the repository for exact name you could try with regex: pacman -Ss ^man$.
For searching only in installed packages there is -Q option.
I probably still don't understand, man is a file, specifically, man-db-2.8.3-2 package contains the file usr/bin/man so I'm not sure why -Fs doesn't find it. I tried both pacman -Fs man and pacman -Fs usr/bin/man.
@borekb you need write full file name with extension - man.exe
Oh, it's so obvious now :) Thanks!
Most helpful comment
@borekb you need write full file name with extension - man.exe