2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CentOS7で「lspciコマンド」と「lsusbコマンド」が使えない時の対処法

Posted at

概要

CentOS7を最小構成でインストールすると「lspci」と「lsusb」が使えないらしい。

捜索

とりあえずyum search で探してみることに...

$ yum search lspci
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * epel: mirrors.nipa.cloud
 * extras: ftp.riken.jp
 * remi-php73: ftp.riken.jp
 * remi-safe: ftp.riken.jp
 * updates: ftp.riken.jp
警告: 一致するものが見つかりません: lspci
No matches found

無かったので、yum providesで調べてみます。

$ yum provides lspci
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * epel: mirrors.nipa.cloud
 * extras: ftp.riken.jp
 * remi-php73: ftp.riken.jp
 * remi-safe: ftp.riken.jp
 * updates: ftp.riken.jp
pciutils-3.5.1-3.el7.x86_64 : PCI bus related utilities
リポジトリー        : base
一致          :
ファイル名    : /usr/sbin/lspci

ありました。
pciutils←これですね。

pciutilsのインストール

$ yum install -y pciutils
インストール:
  pciutils.x86_64 0:3.5.1-3.el7

完了しました!

lscpiの実行

$ 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: VMware SVGA II 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:0d.0 SATA controller: Intel Corporation 82801HM/HEM (ICH8M/ICH8M-E) SATA Controller [AHCI mode] (rev 02)

成功。続いてlsusbyum providesで検索

$ yum provides lsusb
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.riken.jp
 * epel: mirrors.nipa.cloud
 * extras: ftp.riken.jp
 * remi-php73: ftp.riken.jp
 * remi-safe: ftp.riken.jp
 * updates: ftp.riken.jp
usbutils-007-5.el7.x86_64 : Linux USB utilities
リポジトリー        : base
一致          :
ファイル名    : /usr/bin/lsusb

usbutilsのインストール

$ yum install -y usbutils
インストール:
  usbutils.x86_64 0:007-5.el7

完了しました!

lsusbの実行

$ lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

参照

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?