Hi!

On Monday 01 September 2003 22:40, Ben Kennedy wrote:
> Hello all,
>
> How can I determine a) which ebuilds I have currently installed, and b)
> which of them provided a given object/file/directory?
>
> For example... /usr/sbin/sendmail exists on my system.  I want to know
> which package provided that.  In particular, I want to install courier-
> mta.  So I would like to first figure out who put sendmail there, and
> unmerge that package if appropriate.
>
> In essence, my questions are how to do the gentoo equivalents of 'rpm -
> qa' and 'rpm -q --whatprovides somefile'.

First, emerge gentoolkit. This is a "Collection of unofficial administration 
scripts for Gentoo". The script you need is qpkg.
(a) qpkg -I
(b) qpkg -f <file>

Also you can emerge epm. It is a "rpm workalike for Gentoo Linux".


Cheers,
Renat


--
[EMAIL PROTECTED] mailing list

Reply via email to