Question is really simple: I want to get the package which contain a file,in this example I will use "ifconfig".
On Centos I use
yum --whatprovides *bin/ifconfig
On debian I can use
apt-file search *bin/ifconfig
And on Archlinux with pacman?
pacman -Fy pacman -Fs whatever_file
First command pulls the latest databases of files, second one searches for the file you are looking for(in this example