Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Gentoo package database
Date: Thu, 26 Jul 2012 07:59:46
Message-Id: 20120726095754.3454d57c@khamul.example.com
In Reply to: [gentoo-user] Gentoo package database by ivan ivanov
1 On Thu, 26 Jul 2012 11:43:53 +0400
2 ivan ivanov <grobokopatel@××××.ru> wrote:
3
4 > Hello, list. I am interesting how to find the package that contains
5 > the file that i want to have in my system.
6 > Let's suppose that latex tells me: File upgreek.sty not found. To
7 > solve this i need to install dev-texlive/texlive-latexextra. But, if
8 > i do not know this, i have to search the appropriate package. On
9 > debian i can easily do this by visiting official database
10 > http://www.debian.org/distrib/packages . On archlinux i can use
11 > "pkgfile upgreek.sty" that searches through NOT INSTALLED packages.
12 > I found site http://www.portagefilelist.de/ that does this job for
13 > gentoo. But, as i suppose, it is third party project.
14 >
15 > I cannot believe that such great project as gentoo does not have
16 > OFFICIAL database, that allows to search package by the file name.
17 >
18 > So, the question is: how to find the name of NOT installed package
19 > that provides needed file?
20 >
21
22 First of all:
23
24 DO NOT HIJACK THREADS.
25
26 You replied to an existing thread, changed the subject line, deleted
27 the content and type your question. This is a big nono and is
28 considered exceptionally rude (it makes everyone else's mail client do
29 strange things with displaying threads). To start a new thread, compose
30 an entirely new mail and address it to gentoo-user@l.g.o
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
50
51 --
52 Alan McKinnon
53 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] Gentoo package database Marc Joliet <marcec@×××.de>
Re: [gentoo-user] Gentoo package database ivan ivanov <grobokopatel@××××.ru>