lspci: command not found di CentOS 7

Hallo, untuk teman-teman yang lagi belajar linux. Di linux ada tools yang bisa kita gunakan untuk melihat informasi hardware contohnya command lspci. Bagi anda yang mau coba, anda bisa mengetikkan command lspci.

Kebetulan saya baru saja menemukan kendala saat mengetikkan command lscpi di Centos 7. Outputnya kira-kira seperti ini:

[root@localhost]# lspci
bash: lspci: command not found
[root@localhost]#

Untuk dapat menggunakan command lspci tadi, kita perlu install package pciutils terlebih dahulu, caranya adalah :

[root@localhost]# yum install pciutils
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.dionipe.net
 * extras: mirror.dionipe.net
 * updates: mirror.dionipe.net
Resolving Dependencies
--> Running transaction check
---> Package pciutils.x86_64 0:3.5.1-1.el7 will be installed
--> Processing Dependency: pciutils-libs = 3.5.1-1.el7 for package: pciutils-3.5.1-1.el7.x86_64
--> Processing Dependency: libpci.so.3(LIBPCI_3.5)(64bit) for package: pciutils-3.5.1-1.el7.x86_64
--> Processing Dependency: libpci.so.3(LIBPCI_3.3)(64bit) for package: pciutils-3.5.1-1.el7.x86_64
--> Running transaction check
---> Package pciutils-libs.x86_64 0:3.2.1-4.el7 will be updated
---> Package pciutils-libs.x86_64 0:3.5.1-1.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch           Version                Repository    Size
================================================================================
Installing:
 pciutils              x86_64         3.5.1-1.el7            base          93 k
Updating for dependencies:
 pciutils-libs         x86_64         3.5.1-1.el7            base          46 k

Transaction Summary
================================================================================
Install  1 Package
Upgrade             ( 1 Dependent package)

Total download size: 139 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): pciutils-libs-3.5.1-1.el7.x86_64.rpm                |  46 kB   00:00     
(2/2): pciutils-3.5.1-1.el7.x86_64.rpm                     |  93 kB   00:00     
--------------------------------------------------------------------------------
Total                                              146 kB/s | 139 kB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : pciutils-libs-3.5.1-1.el7.x86_64                             1/3 
  Installing : pciutils-3.5.1-1.el7.x86_64                                  2/3 
  Cleanup    : pciutils-libs-3.2.1-4.el7.x86_64                             3/3 
  Verifying  : pciutils-3.5.1-1.el7.x86_64                                  1/3 
  Verifying  : pciutils-libs-3.5.1-1.el7.x86_64                             2/3 
  Verifying  : pciutils-libs-3.2.1-4.el7.x86_64                             3/3 

Installed:
  pciutils.x86_64 0:3.5.1-1.el7                                                 

Dependency Updated:
  pciutils-libs.x86_64 0:3.5.1-1.el7                                            

Complete!
[root@localhost]#

Keterangan: Jika ada pertanyaan seperti di bawah ini, pilih y

Is this ok [y/d/N]:

Sekarang command lspci sudah bisa digunakan

[root@localhost]# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
00:03.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:04.0 System peripheral: InnoTek Systemberatung GmbH VirtualBox Guest Service
00:05.0 Multimedia audio controller: Intel Corporation 82801AA AC'97 Audio Controller (rev 01)
00:06.0 USB controller: Apple Inc. KeyLargo/Intrepid USB
00:07.0 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
00:08.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
00:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)
[root@localhost]#

Sekian dan selamat belajar 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s