Open cndaqiang opened 4 years ago
yum whatprovides xxx
示例
[root@339105e1f102 cndaqiang]# ifconfig bash: ifconfig: command not found [root@339105e1f102 cndaqiang]# yum whatprovides ifconfig Failed to set locale, defaulting to C Last metadata expiration check: 1:30:02 ago on Sun Dec 15 14:11:51 2019. net-tools-2.0-0.51.20160912git.el8.i686 : Basic networking tools Repo : BaseOS Matched from: Filename : /usr/sbin/ifconfig net-tools-2.0-0.51.20160912git.el8.x86_64 : Basic networking tools Repo : BaseOS Matched from: Filename : /usr/sbin/ifconfig
查询命令所在程序包
示例