Am Thu, 26 Jul 2012 09:57:54 +0200 schrieb Alan McKinnon <[email protected]>:
> On Thu, 26 Jul 2012 11:43:53 +0400 > ivan ivanov <[email protected]> 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. Yes, that is very annoying. [...] > 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. Actually, for the special case of latex packages, his best bet is dev-tex/texmfind. HTH -- Marc Joliet -- "People who think they know everything really annoy those of us who know we don't" - Bjarne Stroustrup
signature.asc
Description: PGP signature

