已知可执行文件 libtoolize(当然,目标也可以是 xxx.so 之类), 但是我不知道它在在什么 rpm 包下。一个很简单的方法是利用 yum 全局找一下。

因为是可执行文件, 因此它部署后位置一般是 "xx/[s]bin/libtoolize", 那么我们以此缩小范围,搜索命令可以是:

$ sudo yum provides */libtoolize
blahblah...
updates/7/x86_64/filelists_db     | 4.3 MB  00:00:01
....
libtool-2.4.2-20.el7.x86_64 : The GNU Portable Library Tool
Repo        : base
Matched from:
Filename    : /usr/bin/libtoolize



libtool-2.4.2-20.el7.x86_64 : The GNU Portable Library Tool
Repo        : puias_core_Base
Matched from:
Filename    : /usr/bin/libtoolize



libtool-2.4.2-21.el7_2.x86_64 : The GNU Portable Library Tool
Repo        : puias_core_Updates
Matched from:
Filename    : /usr/bin/libtoolize



libtool-2.4.2-21.el7_2.x86_64 : The GNU Portable Library Tool
Repo        : updates
Matched from:
Filename    : /usr/bin/libtoolize

我们可以看到,它在 libtool 这个包下。

Categories: Code

Yu

Ideals are like the stars: we never reach them, but like the mariners of the sea, we chart our course by them.

Leave a Reply

Your email address will not be published. Required fields are marked *