Gentoo Linux / Portage : How to know which package provided an installed file

December 3rd, 2009 by Stephane Kattoor

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 :

1
2
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.

1
2
3
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)

Tagged with:

Related Post

3 Responses to “Gentoo Linux / Portage : How to know which package provided an installed file”

  1. Links 04/12/2009: Bologna Moves to OpenOffice.org | Boycott Novell Says:

    [...] Gentoo Linux / Portage : How to know which package provided an installed file [...]

  2. Network Switching Says:

    Do you know the process of finding what package depends on another? For example x11-apps/ttmkfdir is now masked with xfs, so I was trying to find what package depends on ttmkfdir, and I’m unable to find that. I was assuming the ‘-t’ flag would give it to me, but I’m not finding anything.

    s

  3. Stephane Kattoor Says:

    If I understood correctly, you are looking for

    equery depends ttmkfdir

    Hope this helps !

    Stephane

Leave a Reply