In CentOS virtual machine makes lspci to view hardware information. When using it, it prompts bash: lspci: command not found, most use /sbin/lspci to do this, I found that it is not available under /sbin on my system either. Using yum install lspci shows no such package.
#yum whatprovides */lspci
pciutils-3.1.4-9.el6.x86_64 : PCI bus related utilities
Repo : base
Matched from:
Filename : /sbin/lspci
#yum install pciutils
After installation, you can use lspci
[root@GoGo ~]# lspci
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX – 82443BX/ZX/DX Host bridge (rev 01)
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 reverse check which installation the command is in
yum whatprovides */command name
For example, to find which installer provides pvcreate.
yum whatprovides */pvcreate