public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] which package?
@ 2007-04-02 14:16 alain.didierjean
  2007-04-02 14:20 ` Fabio
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: alain.didierjean @ 2007-04-02 14:16 UTC (permalink / raw
  To: gentoo-user

Is there a command to provide me with the package name to which a given file
belongs ?
Man equery seems of little help

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] which package?
  2007-04-02 14:16 [gentoo-user] which package? alain.didierjean
@ 2007-04-02 14:20 ` Fabio
  2007-04-02 14:27 ` Peter Ruskin
  2007-04-02 14:31 ` Alan McKinnon
  2 siblings, 0 replies; 5+ messages in thread
From: Fabio @ 2007-04-02 14:20 UTC (permalink / raw
  To: gentoo-user

equery   belongs   /path/to/file

You must be root or member of the portage group.

Cheers!

On 02/04/07, alain.didierjean@free.fr <alain.didierjean@free.fr> wrote:
> Is there a command to provide me with the package name to which a given file
> belongs ?
> Man equery seems of little help
>
> --
> gentoo-user@gentoo.org mailing list
>
>


-- 
Fabio A. Correa D.

Physics Dept, Universidad Nacional, Bogota, Colombia
facorread@gmail.com
ffaaccdd@yahoo.co.uk         facorread@unal.edu.co
My webpage and OpenPGP key at http://facorread.150m.com
My alexandria.cc address is not available anymore.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] which package?
  2007-04-02 14:16 [gentoo-user] which package? alain.didierjean
  2007-04-02 14:20 ` Fabio
@ 2007-04-02 14:27 ` Peter Ruskin
  2007-04-02 14:31 ` Alan McKinnon
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Ruskin @ 2007-04-02 14:27 UTC (permalink / raw
  To: gentoo-user

On Monday 02 April 2007, alain.didierjean@free.fr wrote:
> Is there a command to provide me with the package name to which a
> given file belongs ?
> Man equery seems of little help

$ qfile $(which qfile)
app-portage/portage-utils (/usr/bin/qfile)

-- 
Peter
========================================================================
Gentoo Linux: Portage 2.1.2.3		kernel-2.6.20-gentoo
AMD Athlon(tm) 64 X2 Dual Core Processor 4400+	gcc(GCC): 4.1.2
KDE: 3.5.6					Qt: 3.3.8
========================================================================
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] which package?
  2007-04-02 14:16 [gentoo-user] which package? alain.didierjean
  2007-04-02 14:20 ` Fabio
  2007-04-02 14:27 ` Peter Ruskin
@ 2007-04-02 14:31 ` Alan McKinnon
  2007-04-02 14:52   ` Boris Fersing
  2 siblings, 1 reply; 5+ messages in thread
From: Alan McKinnon @ 2007-04-02 14:31 UTC (permalink / raw
  To: gentoo-user

On Monday 02 April 2007, alain.didierjean@free.fr wrote:
> Is there a command to provide me with the package name to which a
> given file belongs ?
> Man equery seems of little help

If you want to know which package installed an existing file, use:

equery belongs <filename>

If you know which file you want to have and would like to know which 
package provides it, well there's no tool for that, the solution would 
be horrific. Instead, you ask here and usually someone who has it 
already will run equery belongs for you :-)

Be aware that not all existing files were installed during an emerge, so 
quite often you get zero results.

alan



-- 
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?

Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] which package?
  2007-04-02 14:31 ` Alan McKinnon
@ 2007-04-02 14:52   ` Boris Fersing
  0 siblings, 0 replies; 5+ messages in thread
From: Boris Fersing @ 2007-04-02 14:52 UTC (permalink / raw
  To: gentoo-user

2007/4/2, Alan McKinnon <alan@linuxholdings.co.za>:
> On Monday 02 April 2007, alain.didierjean@free.fr wrote:
> > Is there a command to provide me with the package name to which a
> > given file belongs ?
> > Man equery seems of little help
>
> If you want to know which package installed an existing file, use:
>
> equery belongs <filename>
>
> If you know which file you want to have and would like to know which
> package provides it, well there's no tool for that, the solution would
> be horrific. Instead, you ask here and usually someone who has it
> already will run equery belongs for you :-)

I use this database :
http://www.rommel.stw.uni-erlangen.de/~fejf/cgi-bin/pfs-web.pl

HTH.

Boris

>
> Be aware that not all existing files were installed during an emerge, so
> quite often you get zero results.
>
> alan
>
>
>
> --
> Optimists say the glass is half full,
> Pessimists say the glass is half empty,
> Developers say wtf is the glass twice as big as it needs to be?
>
> Alan McKinnon
> alan at linuxholdings dot co dot za
> +27 82, double three seven, one nine three five
> --
> gentoo-user@gentoo.org mailing list
>
>


-- 
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2 \
aX5aX8axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4 \
ax3aX4aXaX12ax10aaX7a").join'
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-04-02 15:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-02 14:16 [gentoo-user] which package? alain.didierjean
2007-04-02 14:20 ` Fabio
2007-04-02 14:27 ` Peter Ruskin
2007-04-02 14:31 ` Alan McKinnon
2007-04-02 14:52   ` Boris Fersing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox