LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 627|回复: 2

pac-file: An ArchLinux Version of Debian's apt-file

[复制链接]
发表于 2009-4-24 11:57:02 | 显示全部楼层 |阅读模式
Example

Suppose you are compiling a program and get an error about a missing library libImath.so To know which package to install to provide this dependency you could:

  1. $ pac-file libImath.so
  2. extra/openexr-1.4.0a-2 usr/lib/libImath.so.4
  3. extra/openexr-1.4.0a-2 usr/lib/libImath.so.4.0.0
  4. extra/openexr-1.4.0a-2 usr/lib/libImath.so
复制代码

The output indicates that you should install openexr from the extra repo. pac-file searches via grep's extended regex engine, so searches like lib[Ii]math.so or lib*math work as expected.

More...
发表于 2009-4-24 12:08:02 | 显示全部楼层
火星...
字数补丁...
回复 支持 反对

使用道具 举报

发表于 2009-4-24 17:12:18 | 显示全部楼层
这个东西非常棒,只要是二进制发行版应该都能实现的,一直很羡慕debian apt-file的功能
在gentoo下有 e-file
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表