Installing pkgfile on Arch Linux

Fig.01: Installing pkgfile on Arch Linux

Fig.01: Installing pkgfile on Arch Linux

You can install pkgfile on Arch Linux to search:
# pacman -S pkgfile
Sample outputs:

 resolving dependencies...
 looking for conflicting packages...

 Packages (1) pkgfile-17-1

 Total Installed Size:  0.05 MiB

 :: Proceed with installation? [Y/n] y
 (1/1) checking keys in keyring                              [##############################################################] 100%
 (1/1) checking package integrity                            [##############################################################] 100%
 (1/1) loading package files                                 [##############################################################] 100%
 (1/1) checking for file conflicts                           [##############################################################] 100%
 (1/1) checking available disk space                         [##############################################################] 100%
 :: Processing package changes...
 (1/1) installing pkgfile                                    [##############################################################] 100%
 ==> Run 'pkgfile --update' to initialize the database
 :: Running post-transaction hooks...
 (1/1) Arming ConditionNeedsUpdate...

Now use it as follows:
$ pkgfile name
$ pkgfile nginx

extra/nginx
community/gitlab
community/nginx-mainline

Examples and usage: How to search for a package in Arch Linux