3

This question already has an answer here:

Hunting for dependencies when compiling software from the scratch is practically unavoidable. In Debian-based Linux distributions which use the apt-get utility to manage packages, there is also a nice command named apt-file. One can use it to search for (missing/wanted) files inside packages to actually trace the required package(s).

Is there an equivalent functionality in Gentoo's/Funtoo's portage system?

marked as duplicate by Michael Mrozek Jul 8 '13 at 17:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4

emerge pfl && e-file filename

You need to use the full file name (It also supports full path), it doesn't do partial matches as that would yield too many results; probably to spare bandwidth. For such cases you can indeed resort to running description, eg. eix -S glw or the others mentioned in the other answer.

http://wiki.gentoo.org/wiki/Pfl

  • Yep, it does the job! – Nikos Alexandris Jul 6 '13 at 21:28
  • It doesn't seem to work always though (and, yet, I have to learn how it works). E.g., e-file glw does not return anything, where qsearch glw returns x11-libs/libGLw Mesa GLw library. – Nikos Alexandris Jul 6 '13 at 22:33
  • 1
    You need to use the full file name (It also supports full path), it doesn't do partial matches as that would yield too many results; probably to spare bandwidth. For such cases you can indeed resort to running description, eg. eix -S glw or the others mentioned in the other answer. – Tamara Wijsman Jul 6 '13 at 22:37
  • Sometimes hunting for unknown packages, though, does imply that the user does not know what exactly is looking for. I guess it depends on the situation. Anyhow, the important thing is that the tools are there. – Nikos Alexandris Jul 7 '13 at 6:04
  • 1
    Done, linked to the Gentoo Wiki as well. – Tamara Wijsman Jul 14 '13 at 12:30
1

Portage-utils offer a tool, qsearch, that does search the Portage tree (much faster than default emerge -s).

Not the answer you're looking for? Browse other questions tagged or ask your own question.