View previous topic :: View next topic |
Author |
Message |
madman420 n00b


Joined: 13 Oct 2009 Posts: 15 Location: NorthWest US
|
Posted: Thu Nov 26, 2009 3:23 am Post subject: Find which package owns a file |
|
|
I'm trying to find which package owns a file and qpkg -f /path/file keeps popping up in websearches, but the qpkg installed on my system seems only to support features related to installing binary packages and returns an error.
How do I find which package a particular file belongs to on a fairly modern Gentoo system?
Thanks. |
|
Back to top |
|
 |
MotivatedTea Apprentice


Joined: 06 Nov 2006 Posts: 269 Location: Toronto, Canada
|
Posted: Thu Nov 26, 2009 3:28 am Post subject: |
|
|
Code: | equery belongs /path/file |
That will search for all packages that own the file. Unless there were conflicts during the install, files are normally owned by a single package. In that case, it's faster to do:
Code: | equery belongs -e /path/file |
which is exactly the same, except that it stops as soon as it finds a match. See "man equery". |
|
Back to top |
|
 |
Mike Hunt Watchman


Joined: 19 Jul 2009 Posts: 5287
|
Posted: Thu Nov 26, 2009 4:12 am Post subject: |
|
|
... or for a really speedy way, emerge app-portage/portage-utils and run
|
|
Back to top |
|
 |
|