CooCooWakka : GentooLinux

首页 :: 索引 :: 修订历史 :: 最新评论 :: CooCooWakkaGroup :: 登陆/注册 :: 你好, 38.103.63.62
你的足迹: » GentooLinux

How to determine what installed...


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
nmeyers <at> javalinux.net

--
gentoo-user <at> gentoo.org mailing list
当前页面没有留言.[显示留言板]

SourceForge.net Logo Creative Commons License
请享受共创成果的同时,尊重他人劳动。本站点内容如未特别声明,全部遵循 Creative Commons License by-nc-sa协议发布。