bash: lspci: command not found解決方法


在CentOS虛擬機使得lspci查看硬件信息。使用時,提示bash: lspci: command not found,大多使用/sbin/lspci即可,我發現我的系統中/sbin下也沒有。使用yum install lspci顯示沒有這個包。

#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

安裝后,即可使用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 反查命令在哪個安裝包中

yum whatprovides */命令名

比如查找pvcreate是哪個安裝包提供的:

yum whatprovides */pvcreate

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM