Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How can I find out which package a file belongs to?
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
2fj02jf2
n00b
n00b


Joined: 09 Aug 2003
Posts: 17

PostPosted: Sat Aug 09, 2003 1:39 pm    Post subject: How can I find out which package a file belongs to? Reply with quote

Hi,

I am very new to Gentoo, having recently converted from RedHat. I am hearing great things about this portage system and so far I have to say that it really worked great for me. There are a few things I don't quite understand about portage though. For example, is it possible to do something like

rpm --query --file /bin/ls

and find out that /bin/ls is part of sys-apps/coreutils? Or can I do something like

rpm --verify coreutils

and see whether all of the files that should be in this package are still where they are and have all the proper permissions and ownership?

Thanks already,

nick
Back to top
View user's profile Send private message
lisa
Retired Dev
Retired Dev


Joined: 01 Jun 2003
Posts: 273
Location: York, UK again! Horray!

PostPosted: Sat Aug 09, 2003 1:41 pm    Post subject: Reply with quote

Code:

qpkg -f <file>


If you don't have qpkg, emerge gentoolkit.
_________________
Distcc guide
Visit my website
I maintain Distcc, Ccache, Memcached, and some others (i think)
Back to top
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Sat Aug 09, 2003 3:43 pm    Post subject: Reply with quote

hm.

it's qpkg -f /path/to/file/<file>
_________________
Markus Nigbur
Back to top
View user's profile Send private message
dma
Guru
Guru


Joined: 31 Jan 2003
Posts: 437
Location: Charlotte, NC, USA

PostPosted: Sat Aug 09, 2003 4:16 pm    Post subject: Reply with quote

qpkg -f `which ls`
Back to top
View user's profile Send private message
2fj02jf2
n00b
n00b


Joined: 09 Aug 2003
Posts: 17

PostPosted: Sat Aug 09, 2003 5:17 pm    Post subject: Reply with quote

Thank you all for your replies. I actually already had gentools installed, but I didn't know about it.

Thanks again...

nick
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