On Thu, 26 Jul 2012 11:43:53 +0400
ivan ivanov <grobokopa...@list.ru> wrote:

> Hello, list. I am interesting how to find the package that contains
> the file that i want to have in my system.
> Let's suppose that latex tells me: File upgreek.sty  not found. To
> solve this i need to install dev-texlive/texlive-latexextra. But, if
> i do not know this, i have to search the appropriate package. On
> debian i can easily do this by visiting official database 
> http://www.debian.org/distrib/packages . On archlinux i can use
> "pkgfile upgreek.sty" that searches through NOT INSTALLED packages.
> I found site http://www.portagefilelist.de/ that does this job for 
> gentoo. But, as i suppose, it is third party project.
> 
> I cannot believe that such great project as gentoo does not have 
> OFFICIAL database, that allows to search package by the file name.
> 
> So, the question is: how to find the name of NOT installed package
> that provides  needed file?
> 

First of all:

DO NOT HIJACK THREADS.

You replied to an existing thread, changed the subject line, deleted
the content and type your question. This is a big nono and is
considered exceptionally rude (it makes everyone else's mail client do
strange things with displaying threads). To start a new thread, compose
an entirely new mail and address it to gentoo-user@lists.gentoo.org

To answer your question, what you want cannot be reliably done. This is
because of how Gentoo works.

In Debian for example, someone else builds the packages, they know
exactly what files will be installed ahead of time, and can put them in
a database for you to query.

Gentoo does not work like that. You build the packages, you specify the
USE flags and different flags can easily cause very different lists of
files to be installed. So the only person that can know exactly what
files you will install is you, there cannot ever be a 100% correct
database of this. Trust me, this has considered many times, you are not
the first.

http://www.portagefilelist.de/ is your best bet, it doesn't get better
than that.


 
-- 
Alan McKinnon
alan.mckin...@gmail.com


Reply via email to