View previous topic :: View next topic |
Author |
Message |
2fj02jf2 n00b
Joined: 09 Aug 2003 Posts: 17
|
Posted: Sat Aug 09, 2003 1:39 pm Post subject: How can I find out which package a file belongs to? |
|
|
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 |
|
|
lisa Retired Dev
Joined: 01 Jun 2003 Posts: 273 Location: York, UK again! Horray!
|
Posted: Sat Aug 09, 2003 1:41 pm Post subject: |
|
|
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 |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Sat Aug 09, 2003 3:43 pm Post subject: |
|
|
hm.
it's qpkg -f /path/to/file/<file> _________________ Markus Nigbur |
|
Back to top |
|
|
dma Guru
Joined: 31 Jan 2003 Posts: 437 Location: Charlotte, NC, USA
|
Posted: Sat Aug 09, 2003 4:16 pm Post subject: |
|
|
qpkg -f `which ls` |
|
Back to top |
|
|
2fj02jf2 n00b
Joined: 09 Aug 2003 Posts: 17
|
Posted: Sat Aug 09, 2003 5:17 pm Post subject: |
|
|
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 |
|
|
|