我相信我已经安装了多个使用相同shell命令运行的软件包。我知道其中一个,但是我只隐约记得安装了另一个,因此无法将其卸载。我相信它们彼此之间会引起问题,因此我需要卸载一个我不记得的文件。有没有一种简单的方法来查找使用某个shell命令调用哪个程序包?这是在RHEL 6.5上。
尝试:
yum whatprovides <command>
来自man yum
:
provides or whatprovides
Is used to find out which package provides some feature or file.
Just use a specific name or a file-glob-syntax wildcards to list
the packages available or installed that provide that feature or
file.
例子:
yum whatprovides /bin/ls
coreutils-5.97-34.el5_8.1.x86_64 : The GNU core utilities: a set of tools
: commonly used in shell scripts
Repo : base
Matched from:
Filename : /bin/ls
coreutils-5.97-34.el5_8.1.x86_64 : The GNU core utilities: a set of tools
: commonly used in shell scripts
Repo : installed
Matched from:
Other : Provides-match: /bin/ls
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句