yum命令“ whatprovides”接受通配符。如果要搜索提供某些文件或可执行文件的软件包,但不知道其完整路径,请使用“ yum whatprovides * / filename”。
$ yum whatprovides */ls
coreutils-5.97-23.el5_4.2.x86_64 : The GNU core utilities: a set of tools
: commonly used in shell scripts
Repo : installed
Matched from:
Filename : /bin/ls