Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13097 - Find files in /var/db/pkg/
Summary: Find files in /var/db/pkg/
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Karl Trygve Kalleberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-02 09:21 UTC by Bernardo S. A. Silva
Modified: 2011-10-30 22:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernardo S. A. Silva 2003-01-02 09:21:12 UTC
Hi...

 If we have an tool that can search files on CONTENTS files in /var/db/pkg it
will be wonderfull! It is a very simple idea, I just ask:

 # find-file bash
 Founded 1 reference:
 >>> /bin/bash [sys-apps/bash] 

   Thanx a lot... Bernardo S. A. Silva
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-01-02 10:19:56 UTC
try
#type bash

#qpkg -f /bin/bash

(qpkg is in gentoolkit)
Comment 2 Bernardo S. A. Silva 2003-01-02 15:33:45 UTC
Yes, it works, but some useful searches like:

 # qpkg -f csmash (filename, whithout path)

Doesn't work. Some tool that searches all kind of filenames with the same name
is VERY useful. Like:

 # qpkg -f gcc
 Founded 2 references:
 > /usr/bin/gcc [sys-devel/gcc-3.2.1-r6]
 > /usr/.../gcc [sys-devel/gcc-2.95.3-r8]

 Or something like that. So, sorry but I reopen the bug.

   Thanx a lot, Bernardo S. A. Silva
Comment 3 David M. Andersen 2003-05-01 00:14:28 UTC
Just do:
qpkg -f `which bash`

Or if you want to be more hardcore:
find /var/db/pkg -name CONTENTS | xargs grep bash | less
Comment 4 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2003-05-03 08:49:59 UTC
Not really a bug.