* [gentoo-user] Gentoo equivalent to "yum provides"
@ 2005-08-21 23:55 Rennie deGraaf
2005-08-22 0:12 ` Holly Bostick
2005-08-22 2:57 ` [gentoo-user] " Brett I. Holcomb
0 siblings, 2 replies; 10+ messages in thread
From: Rennie deGraaf @ 2005-08-21 23:55 UTC (permalink / raw
To: gentoo-user
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
What command does one use to find what package(s) provide a particular
file, given that that particular file is not present on my system? For
example, I need a program called "foobar", but don't know what package
provides it. Under Fedora, I'd use "yum provides foobar"; what command
should I use under Gentoo?
Something like "esearch foobar" searches package titles, not contents.
So, if I was searching for "vi", I'd get all sorts of stuff that has
nothing to do with the editor "vi", but happens to have the substring
"vi" in its name. And if I was searching for "libfoobar.so", then I
might not find any matches, since that file might be in a package called
"foobar". In other words, "esearch foobar" doesn't do what I want.
Thanks,
Rennie
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
iD8DBQFDCRRxIvU5mZP08HERAoINAJsEepjSgBbeVyB+YRLr0A1VNh9qjACg2ROR
VaVZ1b2wCKuwKTOwuNjNmiM=
=lEJD
-----END PGP SIGNATURE-----
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Gentoo equivalent to "yum provides"
2005-08-21 23:55 [gentoo-user] Gentoo equivalent to "yum provides" Rennie deGraaf
@ 2005-08-22 0:12 ` Holly Bostick
2005-08-22 1:16 ` W.Kenworthy
2005-08-22 2:26 ` [gentoo-user] " Harry Putnam
2005-08-22 2:57 ` [gentoo-user] " Brett I. Holcomb
1 sibling, 2 replies; 10+ messages in thread
From: Holly Bostick @ 2005-08-22 0:12 UTC (permalink / raw
To: gentoo-user
Rennie deGraaf schreef:
> What command does one use to find what package(s) provide a particular
> file, given that that particular file is not present on my system? For
> example, I need a program called "foobar", but don't know what package
> provides it. Under Fedora, I'd use "yum provides foobar"; what command
> should I use under Gentoo?
>
> Something like "esearch foobar" searches package titles, not contents.
> So, if I was searching for "vi", I'd get all sorts of stuff that has
> nothing to do with the editor "vi", but happens to have the substring
> "vi" in its name. And if I was searching for "libfoobar.so", then I
> might not find any matches, since that file might be in a package called
> "foobar". In other words, "esearch foobar" doesn't do what I want.
>
> Thanks,
>
> Rennie
equery belongs equery
[ Searching for file(s) equery in *... ]
app-portage/gentoolkit-0.2.1_pre5 (/usr/bin/equery)
app-portage/gentoolkit-0.2.1_pre5
(/usr/share/doc/gentoolkit-0.2.1_pre5/equery)
:-)
HTH,
Holly
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Gentoo equivalent to "yum provides"
2005-08-22 0:12 ` Holly Bostick
@ 2005-08-22 1:16 ` W.Kenworthy
2005-08-22 2:26 ` [gentoo-user] " Harry Putnam
1 sibling, 0 replies; 10+ messages in thread
From: W.Kenworthy @ 2005-08-22 1:16 UTC (permalink / raw
To: gentoo-user
man equery doesnt specifically say, but I suspect that along with other
tools that do this like qpkg, they only work on the installed packages.
I dont think gentoo can do this for packages not installed on the
system. I usually end up googling ...
BillK
On Mon, 2005-08-22 at 02:12 +0200, Holly Bostick wrote:
> Rennie deGraaf schreef:
> > What command does one use to find what package(s) provide a particular
> > file, given that that particular file is not present on my system? For
...
>
> equery belongs equery
> [ Searching for file(s) equery in *... ]
> app-portage/gentoolkit-0.2.1_pre5 (/usr/bin/equery)
> app-portage/gentoolkit-0.2.1_pre5
> (/usr/share/doc/gentoolkit-0.2.1_pre5/equery)
>
> :-)
>
> HTH,
> Holly
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* [gentoo-user] Re: Gentoo equivalent to "yum provides"
2005-08-22 0:12 ` Holly Bostick
2005-08-22 1:16 ` W.Kenworthy
@ 2005-08-22 2:26 ` Harry Putnam
2005-08-22 3:07 ` W.Kenworthy
1 sibling, 1 reply; 10+ messages in thread
From: Harry Putnam @ 2005-08-22 2:26 UTC (permalink / raw
To: gentoo-user
Holly Bostick <motub@planet.nl> writes:
> Rennie deGraaf schreef:
>> What command does one use to find what package(s) provide a particular
>> file, given that that particular file is not present on my system? For
>> example, I need a program called "foobar", but don't know what package
>> provides it. Under Fedora, I'd use "yum provides foobar"; what command
>> should I use under Gentoo?
>>
>> Something like "esearch foobar" searches package titles, not contents.
>> So, if I was searching for "vi", I'd get all sorts of stuff that has
>> nothing to do with the editor "vi", but happens to have the substring
>> "vi" in its name. And if I was searching for "libfoobar.so", then I
>> might not find any matches, since that file might be in a package called
>> "foobar". In other words, "esearch foobar" doesn't do what I want.
>>
>> Thanks,
>>
>> Rennie
>
>
> equery belongs equery
> [ Searching for file(s) equery in *... ]
> app-portage/gentoolkit-0.2.1_pre5 (/usr/bin/equery)
> app-portage/gentoolkit-0.2.1_pre5
> (/usr/share/doc/gentoolkit-0.2.1_pre5/equery)
This is new to me... thanks Holly
"W.Kenworthy" <billk@iinet.net.au> writes:
> man equery doesnt specifically say, but I suspect that along with other
> tools that do this like qpkg, they only work on the installed packages.
> I dont think gentoo can do this for packages not installed on the
> system. I usually end up googling ...
One piece of man page may indicate otherwise:
list <local-opts> pkgspec
This command lists packages matching pkgspec in a user-specified
combination of installed packages, packages which are not
installed, the portage tree, and the portage overlay tree.
<local-opts> must include not include only -I; if -I is used, -p
and/or -o must be also. By default, only installed packages are
searched. -o searches only the overlay tree [and possibly
installed packages], not the main portage tree.
-i, --installed search installed packages (default)
-I, --exclude-installed do not search installed packages
-p, --portage-tree also search in portage tree (/usr/portage)
-o, --overlay-tree also search in overlay tree
(/usr/local/portage)
However, I couldn't piece together what `pkgspec' might mean.
Can anyone here show some example commands using above with pkgspec
explained a bit more?
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Gentoo equivalent to "yum provides"
2005-08-21 23:55 [gentoo-user] Gentoo equivalent to "yum provides" Rennie deGraaf
2005-08-22 0:12 ` Holly Bostick
@ 2005-08-22 2:57 ` Brett I. Holcomb
1 sibling, 0 replies; 10+ messages in thread
From: Brett I. Holcomb @ 2005-08-22 2:57 UTC (permalink / raw
To: gentoo-user
Try equery.
On Sun, 21 Aug 2005, Rennie deGraaf wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> What command does one use to find what package(s) provide a particular
> file, given that that particular file is not present on my system? For
> example, I need a program called "foobar", but don't know what package
> provides it. Under Fedora, I'd use "yum provides foobar"; what command
> should I use under Gentoo?
>
> Something like "esearch foobar" searches package titles, not contents.
> So, if I was searching for "vi", I'd get all sorts of stuff that has
> nothing to do with the editor "vi", but happens to have the substring
> "vi" in its name. And if I was searching for "libfoobar.so", then I
> might not find any matches, since that file might be in a package called
> "foobar". In other words, "esearch foobar" doesn't do what I want.
>
> Thanks,
>
> Rennie
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (GNU/Linux)
>
> iD8DBQFDCRRxIvU5mZP08HERAoINAJsEepjSgBbeVyB+YRLr0A1VNh9qjACg2ROR
> VaVZ1b2wCKuwKTOwuNjNmiM=
> =lEJD
> -----END PGP SIGNATURE-----
>
--
Brett I. Holcomb
brettholcomb@R777bellsouth.net
Registered Linux User #188143
Remove R777 to email
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Gentoo equivalent to "yum provides"
2005-08-22 2:26 ` [gentoo-user] " Harry Putnam
@ 2005-08-22 3:07 ` W.Kenworthy
2005-08-22 3:36 ` Nick Rout
0 siblings, 1 reply; 10+ messages in thread
From: W.Kenworthy @ 2005-08-22 3:07 UTC (permalink / raw
To: gentoo-user
I tried it and it didnt work - though the package I tried it on was a
masked one.
On Sun, 2005-08-21 at 21:26 -0500, Harry Putnam wrote:
> Holly Bostick <motub@planet.nl> writes:
>
...
> One piece of man page may indicate otherwise:
>
> list <local-opts> pkgspec
> This command lists packages matching pkgspec in a user-specified
> combination of installed packages, packages which are not
> installed, the portage tree, and the portage overlay tree.
>
> <local-opts> must include not include only -I; if -I is used, -p
> and/or -o must be also. By default, only installed packages are
> searched. -o searches only the overlay tree [and possibly
> installed packages], not the main portage tree.
>
> -i, --installed search installed packages (default)
> -I, --exclude-installed do not search installed packages
> -p, --portage-tree also search in portage tree (/usr/portage)
> -o, --overlay-tree also search in overlay tree
> (/usr/local/portage)
>
> However, I couldn't piece together what `pkgspec' might mean.
>
> Can anyone here show some example commands using above with pkgspec
> explained a bit more?
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Gentoo equivalent to "yum provides"
2005-08-22 3:07 ` W.Kenworthy
@ 2005-08-22 3:36 ` Nick Rout
2005-08-22 9:25 ` Holly Bostick
2005-08-22 11:43 ` Graham Murray
0 siblings, 2 replies; 10+ messages in thread
From: Nick Rout @ 2005-08-22 3:36 UTC (permalink / raw
To: gentoo-user
neither equery nor any other program can predict what will be installed
in a package, because that varies with architecture and USE flags.
So there is no direct equivalent.
You either have to work it out for yuorself, ggogle or ask here.
This topic has been covered many times on this list.
If you have a list of binary packages you can make a catalogue of
filenames that appear in those binary packages. (rpm, deb etc)
If you have a list of source files, and more than one way of compiling
them (USE flags, gentoo) then you cannot make such a catalogue.
On Mon, 22 Aug 2005 11:07:00 +0800
W.Kenworthy wrote:
--
Nick Rout <nick@rout.co.nz>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Gentoo equivalent to "yum provides"
2005-08-22 3:36 ` Nick Rout
@ 2005-08-22 9:25 ` Holly Bostick
2005-08-22 11:43 ` Graham Murray
1 sibling, 0 replies; 10+ messages in thread
From: Holly Bostick @ 2005-08-22 9:25 UTC (permalink / raw
To: gentoo-user
Nick Rout schreef:
> neither equery nor any other program can predict what will be installed
> in a package, because that varies with architecture and USE flags.
>
> So there is no direct equivalent.
You're right; I forgot that equery and its equivalents work by default
on installed packages (although sometimes that's what you need, so it's
still good to know). I don't know how 'pkgspec' works either (though
I've never looked into it, so that's no surprise), so even though it
does suggest that you could search the Portage tree of not-installed
packages to see what PacKaGe SPECifies a particular file, I don't know
how precisely to use equery to do so.
>
> You either have to work it out for yuorself, ggogle or ask here.
I find it most useful to go to the Debian package search tool
( http://www.debian.org/distrib/packages -- "search the contents of
packages") on the (extremely) rare occasion that I need to know what
(not currently installed) package provides a particular file or library.
The package names are often not quite the same, but usually close enough
that you can find the correct package on packages.gentoo.org. Putting
the exact filename into Google works too; you'll get a whole list of
where one or two similarly-named rpm's, deb files and slack packages are
located, and then you most likely know the name of the application you
want to search on packages.gentoo.org.
Holly
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Gentoo equivalent to "yum provides"
2005-08-22 3:36 ` Nick Rout
2005-08-22 9:25 ` Holly Bostick
@ 2005-08-22 11:43 ` Graham Murray
2005-08-22 14:21 ` A. Khattri
1 sibling, 1 reply; 10+ messages in thread
From: Graham Murray @ 2005-08-22 11:43 UTC (permalink / raw
To: gentoo-user
Nick Rout <nick@rout.co.nz> writes:
> neither equery nor any other program can predict what will be installed
> in a package, because that varies with architecture and USE flags.
>
> So there is no direct equivalent.
However it should be possible to know all of files that the package
may install. Also, I suspect that the main use of such a search
utility is to find the package which provides either an executable or
a library. In many cases these are installed irrespective of which USE
flags are given. So it would still be useful to have a search function
which would tell you, for example, that 'dig' is installed by package
'net-dns/bind-tools'.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [gentoo-user] Re: Gentoo equivalent to "yum provides"
2005-08-22 11:43 ` Graham Murray
@ 2005-08-22 14:21 ` A. Khattri
0 siblings, 0 replies; 10+ messages in thread
From: A. Khattri @ 2005-08-22 14:21 UTC (permalink / raw
To: gentoo-user
On Mon, 22 Aug 2005, Graham Murray wrote:
> However it should be possible to know all of files that the package
> may install.
You would have to write a utility that looked at ALL the possible USE
flags a package could make use of and build a tree that was stored in a
database (not to mention, you would have to actually run the build process
to get the list of files to populate the database for EACH combination
of USE flags!).
Not exactly a trivial undertaking and the resulting database would be very
big.
Binary distributions can do this because they usually dont allow any
customization (i.e. there is just ONE package for say, Pine, usually) and
since its built already they can easily create populate a database.
--
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-08-22 14:36 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-21 23:55 [gentoo-user] Gentoo equivalent to "yum provides" Rennie deGraaf
2005-08-22 0:12 ` Holly Bostick
2005-08-22 1:16 ` W.Kenworthy
2005-08-22 2:26 ` [gentoo-user] " Harry Putnam
2005-08-22 3:07 ` W.Kenworthy
2005-08-22 3:36 ` Nick Rout
2005-08-22 9:25 ` Holly Bostick
2005-08-22 11:43 ` Graham Murray
2005-08-22 14:21 ` A. Khattri
2005-08-22 2:57 ` [gentoo-user] " Brett I. Holcomb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox