pacman

find package which contains $filename

pacman -Fy
pacman -Fs $filename