Gentoo Linux / Portage : How to know which package provided an installed file
stephane
If there’s a file installed on your disk for which you’d like to know what package provided it, you can use the equery command like below :
roadrunner ~ # equery belongs /etc/init.d/samba [ Searching for file(s) /etc/init.d/samba in *... ]
net-fs/samba-3.0.37 (/etc/init.d/samba)
equery is part of the gentoolkit package, which provides useful tools to maintain/investigate your gentoo packages.
roadrunner ~ # equery belongs /usr/bin/revdep-rebuild
[ Searching for file(s) /usr/bin/revdep-rebuild in *... ]
app-portage/gentoolkit-0.2.4.5 (/usr/bin/revdep-rebuild)