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

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>