Which package does this file belong to?

Usually you can just search something like “redhat which file package belong” without quotes to find it for a particular distro. Here are some I’ve used:

Gentoo / Funtoo

# equery belongs /path/to/file

 

Redhat/SUSE/Fedora

# rpm -qf /path/to/file

 

Ubuntu/Debian

apt-file search /path/to/file

You may need to install by doing this (as root):

# apt-get install apt-file
# apt-file update

 

FreeBSD

# pkg_info -W /path/to/file