How To Install lshw Command When lshw Command Not Found
How To Install lshw Command When lshw Command Not Found.
When try to execute lshw command, the error menssage say "-bash: lshw: command not found". The lshw command is not an built in command and the lshw command is not bundle with your Linux Fedora default installation, that mean you need to install lshw command. The step by step below show how to install lshw command on Linux Fedora system.
1. Example of error message "-bash: lshw: command not found".

[root@fedora ~]# lshw
-bash: lshw: command not found
[root@fedora ~]#
2. Step to install lshw command on Linux Fedora 10.
[root@fedora ~]# yum -y install lshw*
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package lshw.x86_64 0:B.02.14-1.fc10 set to be updated
---> Package lshw-gui.x86_64 0:B.02.14-1.fc10 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
===========================================================================
Package Arch Version Repository Size
===========================================================================
Installing:
lshw x86_64 B.02.14-1.fc10 updates 1.2 M
lshw-gui x86_64 B.02.14-1.fc10 updates 379 k
Transaction Summary
===========================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.5 M
Downloading Packages:
(1/2): lshw-gui-B.02.14-1.fc10.x86_64.rpm | 379 kB 00:09
(2/2): lshw-B.02.14-1.fc10.x86_64.rpm | 224 kB 00:36
http://ftp.riken.jp/Linux/fedora/updates/10/x86_64/lshw-B.02.14-1.fc10.x86_64.rpm: [Errno 4] Socket Error: timed out
Trying other mirror.
(2/2): lshw-B.02.14-1.fc10.x86_64.rpm | 1.2 MB 00:28
---------------------------------------------------------------------------
Total 19 kB/s | 1.5 MB 01:25
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : lshw 1/2
Installing : lshw-gui 2/2
Installed:
lshw.x86_64 0:B.02.14-1.fc10 lshw-gui.x86_64 0:B.02.14-1.fc10
Complete!
[root@fedora ~]#
Test Using lshw Command
Execute the lshw command to make sure that the lshw command is install properly and can be execute on your Linux Fedora machine.

[root@fedora ~]# lshw | less
DMI
fedora.jmti.gov.my
description: Tower Computer
product: ProLiant ML570 G4
vendor: HP
serial: SGH7020LYP
width: 64 bits
capabilities: smbios-2.3 dmi-2.3 vsyscall64 vsyscall32
configuration: boot=hardware-failure-fw chassis=tower u
uid=34333030-3530-5347-4837-3032304C5950
*-core
Keywords: install lshw, install lshw command, install lshw on Fedora
- Add new comment
- 1589 reads
- Tell your friends


Recent comments
16 weeks 5 days ago
21 weeks 10 hours ago
21 weeks 12 hours ago
24 weeks 4 days ago
24 weeks 4 days ago
29 weeks 5 days ago
29 weeks 6 days ago
29 weeks 6 days ago