在CentOS虛擬機使得lspci查看硬件信息。使用時,提示bash: lspci: command not found,大多使用/sbin/lspci便可,我發現個人系統中/sbin下也沒有。使用yum install lspci顯示沒有這個包。bash
#yum whatprovides */lspciide
pciutils-3.1.4-9.el6.x86_64 : PCI bus related utilitiesspa
Repo : baseci
Matched from:虛擬機
Filename : /sbin/lspciit
#yum install pciutilsio
安裝後,便可使用lspci硬件
[root@GoGo ~]# lspcicommand
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)yum
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
yum whatprovides 反查命令在哪一個安裝包中
yum whatprovides */命令名
好比查找pvcreate是哪一個安裝包提供的:
yum whatprovides */pvcreate