例如,我可以轻松地找到属于mlocate.i386包的locate命令。
yum search locate
mlocate.i386 : An utility for finding files by name
[mirror@home /]$ rpm -qa | grep locate
mlocate-0.15-1.el5.1
yum search updatedb
Loaded plugins: fastestmirror, protectbase
0 packages excluded due to repository protections
=========================================== Matched: updatedb ===========================================
mlocate.i386 : An utility for finding files by name
但是要找到哪个package free命令属于以下部分并不容易:
yum search free // this command just returns too much informationy
rpm -qa | grep free
freetype-2.2.1-31.el5_8.1 // obviously not the package by which free command is installed
那么,有什么可靠的方法可以知道特定命令在Linux上属于哪个软件包?例如CentOS或其他发行版
which free
呢?