Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368729 - would like to see some way to know what files an ebuild installs without having to install it
Summary: would like to see some way to know what files an ebuild installs without havi...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2011-05-25 18:25 UTC by Evan Teran
Modified: 2011-05-25 18:32 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Evan Teran 2011-05-25 18:25:09 UTC
Often I find myself needing a particular program, but being unsure of what particular ebuild provides it.

I know that it is likely a complicated task, but I think it would be very useful if there was a mechanism in place to determine which ebuilds provide which files without actually emerging them.

Unfortunately, as far as I understand, this would require *someone* (or a group) to emerge every single ebuild in the tree and then look at what it provides. A tall order, but probably wouldn't be so bad once the initial set it done.

One data storage format that I can envision would be something like this:


where provides would have subdirs and files which match the actual filesystem but whose files are a listing of packages which provide that particular file. For example:


might contain the following:


I'm assuming such a feature would have to include versions since different versions of the same package may have different sets of files they provide.

Obviously this is not the only way, but it would make it very easy to write tools to work with this.

Honestly, the ubuntu feature where typing a command that doesn't exist recommends a package is kinda nice ;-).

Reproducible: Always
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2011-05-25 18:30:58 UTC
You are looking for a third party service, ex: (for /bin/bash)
Comment 2 Sebastian Luther (few) 2011-05-25 18:32:55 UTC
The set of installed files depends on the use flag configuration, the versions of the installed dependencies, etc. To create a database you would have to install all packages with all use flag combinations. This means it's impossible to create a reliable database.

Having said that, there is [1] and app-portage/pfl in which you might be interested.