View previous topic :: View next topic |
Author |
Message |
daos n00b
Joined: 18 Apr 2002 Posts: 50 Location: Virginia, USA
|
Posted: Fri Apr 19, 2002 12:29 pm Post subject: search package containg a file |
|
|
Is there any way to search a package that contains a specific file?
I came from the RPM camp, and I'm looking for something similar to rpm -qf filename.
Thanks |
|
Back to top |
|
|
Guest
|
Posted: Fri Apr 19, 2002 4:01 pm Post subject: |
|
|
Code: | grep filename `find /var/db/pkg/ -name CONTENTS` |
... |
|
Back to top |
|
|
mvo n00b
Joined: 16 Apr 2002 Posts: 49 Location: Frankfurt/Germany
|
Posted: Fri Apr 19, 2002 4:53 pm Post subject: |
|
|
Hi,
if you have installed gentoolkit, use "epm -qf <filename>" (with full path to the file). |
|
Back to top |
|
|
tod Developer
Joined: 17 Apr 2002 Posts: 136 Location: Ozarks, USA
|
Posted: Fri Apr 19, 2002 10:09 pm Post subject: |
|
|
Also, if you have gentoolkit installed,
qpkg -f <path>/foo
The possibilites are endless |
|
Back to top |
|
|
tod Developer
Joined: 17 Apr 2002 Posts: 136 Location: Ozarks, USA
|
Posted: Fri Apr 19, 2002 10:14 pm Post subject: |
|
|
Although my favorite, which is similar to Guest's post is
grep foo /var/db/pkg/*/*/CONTENTS
tod |
|
Back to top |
|
|
|