pkgfile

Find packages that provide certain libraries:

1. Installation

yay pkgfile
sudo pkgfile -u

2. Usage

[ecomaikgolf@desktop ~/]$ pkgfile libasm.so
system/libelf
multilib/lib32-libelf