On Mon, Sep 01, 2003 at 04:40:53PM -0400, Ben Kennedy wrote:
> Hello all,
>
> This must be an obscenely rudimentary question, but I can't find the answer:
>
> 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'.
There's a nice tool, "epm", that provides an rpm-like interface for us
unreconstructed rpm users. If you install that ("emerge epm"), you can
get a list of installed packages with:
epm -qa
or identify which ebuild provides a file with:
epm -qf somefile
It doesn't provide all rpm capabilities, but I find it awfully handy.
Nathan Meyers
[EMAIL PROTECTED]
--
[EMAIL PROTECTED] mailing list