public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user]  Re: Gentoo equivalent to "yum provides"
Date: Sun, 21 Aug 2005 21:26:12 -0500	[thread overview]
Message-ID: <87fyt2btbv.fsf@newsguy.com> (raw)
In-Reply-To: 4309188B.40901@planet.nl

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



  parent reply	other threads:[~2005-08-22  2:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Harry Putnam [this message]
2005-08-22  3:07     ` [gentoo-user] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fyt2btbv.fsf@newsguy.com \
    --to=reader@newsguy.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox