Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47149 - Gentoo needs a clean way of asking "which package installed file X"
Summary: Gentoo needs a clean way of asking "which package installed file X"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-07 15:21 UTC by Tony Kay
Modified: 2004-04-07 16:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Perl command to query the package that installed a file on the filesystem (whoowns,2.67 KB, text/plain)
2004-04-07 15:27 UTC, Tony Kay
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Kay 2004-04-07 15:21:24 UTC
On more than one occasion I have needed to know which package installed a 
specific file on my system (most recently, I needed this while debugging an 
ebuild). Doing it with grep against the /var/db/*/*/CONTENTS files works, but is
not very pretty. As a result, I wrote a Perl script to clean up the process.

Perhaps this script (or a Python equivalent addition to emerge) could be added.
Comment 1 Tony Kay 2004-04-07 15:27:39 UTC
Created attachment 28858 [details]
Perl command to query the package that installed a file on the filesystem

This perl script uses Getopt::Long and Pod::Usage. It is self-documenting (run
it with no arguments).
Comment 2 Peter Howell 2004-04-07 16:13:12 UTC
emerge gentoolkit

qpkg -f <file that you want to know the origin of>
Comment 3 Tony Kay 2004-04-07 16:16:48 UTC
Ah, well then change that to: it would be nice if that was documented on the EBuild HOWTO page or something.
Comment 4 Tony Kay 2004-04-07 16:23:46 UTC
Proper command is in gentoolkit