pacman

find package which contains $filename

pacman -Fy
pacman -Fs $filename

clear package cache

pacman -S pacman-contrib
paccache -r