LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神,可以点击顶部导航 Contact 按钮进行投稿。

Related entries

Gentoo 实用脚本:e-file

有时候,在 Gentoo 系统中我们需要查询某个文件属于哪个包。有鉴于此,bones7456 兄从 apt-file(for Debian)获得灵感编写了 e-file 这个实用的脚本。

e-file

e-file 需要 curl,直接从 portagefilelist.de 获取数据。比如:我要查询 pdfinfo 属于哪个包,执行 e-file pdfinfo 后,返回如上图所示的结果。

e-file 可通过 Gentoo China Overlay 获取,或从这里下载

[via bones7456]

署名 • 注明出处 • 非商业性使用

19 Comments

  1. 1 niuniu Commented @ 2008-12-02 7:58 pmReply to this comment

    虽然不用gentoo,不过要支持一下

  2. 2 slackcode Commented @ 2008-12-02 8:29 pmReply to this comment

    好东西

  3. 3 jeffffffffff Commented @ 2008-12-02 8:52 pmReply to this comment

    Gentoo 的控制台配色怎么这么丰富阿?比ubuntu的好看多了。

  4. 4 number5 Commented @ 2008-12-02 9:01 pmReply to this comment

    用 gentools 包里面的 equery也可以啊…

  5. 5 三翻领 Commented @ 2008-12-02 9:15 pmReply to this comment

    to:jeffffffffff
    你可以到gentoo的python中拷贝output模块到自己的模块路径,这样基本条件有了,只是没有应用到这个模块的应用罢了,gentoo的包管理方式基于python。这个模块是gentoo特有的

  6. 6 Jan Commented @ 2008-12-02 9:25 pmReply to this comment

    为什么不用这个? http://www.gentoo.org/doc/en/gentoolkit.xml

  7. 7 oceanboo Commented @ 2008-12-02 11:23 pmReply to this comment

    to Jan 、number5
    e-file 的目的是查未安装的文件属于哪个包,看看equery还行不行。

  8. 8 unshift Commented @ 2008-12-03 8:59 amReply to this comment

    什么字体?

  9. 9 jim4ever Commented @ 2008-12-03 10:20 amReply to this comment

    e-file可以查未安装的文件属于哪个包,而equery只能查看已经安装的文件。

  10. 10 Wick Commented @ 2008-12-03 1:02 pmReply to this comment

    e-file是从 portagefilelist.de 获取数据,equery是本机哦~

  11. 11 tlze Commented @ 2008-12-03 1:06 pmReply to this comment

    amd64应该不可用吧,被强制mask了。

  12. 12 bones7456 Commented @ 2008-12-03 2:33 pmReply to this comment

    to tlze :
    已经加上了amd64的支持了,谢谢提醒.

  13. 13 yegle Commented @ 2008-12-03 2:51 pmReply to this comment

    支持代理不?不支持的话就不尝试了=。=教育网真痛苦…

  14. 14 7dehao Commented @ 2008-12-03 4:20 pmReply to this comment

    很不错!

  15. 15 Toy Commented @ 2008-12-03 4:30 pmReply to this comment

    @unshift: Monaco.

  16. 16 chroot Commented @ 2008-12-03 6:04 pmReply to this comment

    不知道 arch 里有没有这样的软件,我一直是用自己写的脚本通过镜像网站查询的。

  17. 17 gtlyy Commented @ 2008-12-03 6:32 pmReply to this comment

    http://www.archlinux.org/packages/
    Archlinux 上网直接查可以…

  18. 18 kofshower Commented @ 2008-12-04 7:43 amReply to this comment

    arch每个服务器上都有全部包的文件列表
    这个东西要事不能上网了怎么办,而apt-file是本地文件列表

  19. 19 garfileo Commented @ 2008-12-04 8:32 amReply to this comment

    @kofshower:

    当你不能上网的时候,往往也就没必要使用 e-file 了。