Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
search package containg a file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
daos
n00b
n00b


Joined: 18 Apr 2002
Posts: 50
Location: Virginia, USA

PostPosted: Fri Apr 19, 2002 12:29 pm    Post subject: search package containg a file Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Fri Apr 19, 2002 4:01 pm    Post subject: Reply with quote

Code:
grep filename `find /var/db/pkg/ -name CONTENTS`


...
Back to top
mvo
n00b
n00b


Joined: 16 Apr 2002
Posts: 49
Location: Frankfurt/Germany

PostPosted: Fri Apr 19, 2002 4:53 pm    Post subject: Reply with quote

Hi,
if you have installed gentoolkit, use "epm -qf <filename>" (with full path to the file).
Back to top
View user's profile Send private message
tod
Developer
Developer


Joined: 17 Apr 2002
Posts: 136
Location: Ozarks, USA

PostPosted: Fri Apr 19, 2002 10:09 pm    Post subject: Reply with quote

Also, if you have gentoolkit installed,

qpkg -f <path>/foo


The possibilites are endless :D
Back to top
View user's profile Send private message
tod
Developer
Developer


Joined: 17 Apr 2002
Posts: 136
Location: Ozarks, USA

PostPosted: Fri Apr 19, 2002 10:14 pm    Post subject: Reply with quote

Although my favorite, which is similar to Guest's post is

grep foo /var/db/pkg/*/*/CONTENTS

tod
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum