Gentoo Archives: gentoo-user

From: Marc Joliet <marcec@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Gentoo package database
Date: Thu, 26 Jul 2012 08:15:30
Message-Id: 20120726101332.57f6bd67@marcec.hunte.us
In Reply to: Re: [gentoo-user] Gentoo package database by Alan McKinnon
1 Am Thu, 26 Jul 2012 09:57:54 +0200
2 schrieb Alan McKinnon <alan.mckinnon@×××××.com>:
3
4 > On Thu, 26 Jul 2012 11:43:53 +0400
5 > ivan ivanov <grobokopatel@××××.ru> wrote:
6 >
7 > > Hello, list. I am interesting how to find the package that contains
8 > > the file that i want to have in my system.
9 > > Let's suppose that latex tells me: File upgreek.sty not found. To
10 > > solve this i need to install dev-texlive/texlive-latexextra. But, if
11 > > i do not know this, i have to search the appropriate package. On
12 > > debian i can easily do this by visiting official database
13 > > http://www.debian.org/distrib/packages . On archlinux i can use
14 > > "pkgfile upgreek.sty" that searches through NOT INSTALLED packages.
15 > > I found site http://www.portagefilelist.de/ that does this job for
16 > > gentoo. But, as i suppose, it is third party project.
17 > >
18 > > I cannot believe that such great project as gentoo does not have
19 > > OFFICIAL database, that allows to search package by the file name.
20 > >
21 > > So, the question is: how to find the name of NOT installed package
22 > > that provides needed file?
23 > >
24 >
25 > First of all:
26 >
27 > DO NOT HIJACK THREADS.
28
29 Yes, that is very annoying.
30
31 [...]
32 > To answer your question, what you want cannot be reliably done. This is
33 > because of how Gentoo works.
34 >
35 > In Debian for example, someone else builds the packages, they know
36 > exactly what files will be installed ahead of time, and can put them in
37 > a database for you to query.
38 >
39 > Gentoo does not work like that. You build the packages, you specify the
40 > USE flags and different flags can easily cause very different lists of
41 > files to be installed. So the only person that can know exactly what
42 > files you will install is you, there cannot ever be a 100% correct
43 > database of this. Trust me, this has considered many times, you are not
44 > the first.
45 >
46 > http://www.portagefilelist.de/ is your best bet, it doesn't get better
47 > than that.
48
49 Actually, for the special case of latex packages, his best bet is
50 dev-tex/texmfind.
51
52 HTH
53 --
54 Marc Joliet
55 --
56 "People who think they know everything really annoy those of us who know we
57 don't" - Bjarne Stroustrup

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Gentoo package database Alan McKinnon <alan.mckinnon@×××××.com>