Install lshw on RHEL, Fedora, Centos
The easiest way to install lshw on a RedHat based system is to get the package from DAG:
http://dag.wieers.com/packages/lshw/
If you already have the DAG repository in your sources, just use
up2date lshwor
yum install lshwbased on what package management tool you are using.
If not, just download the appropriate package for your operating system (for centos use the appropriate rhel base version) and install it manually with rpm. For example on a Centos4 i386 system I would use:
wget http://packages.sw.be/lshw/lshw-2.14-1.el4.rf.i386.rpmThat’s it… You might want to return to the main article on lshw.
>

28th September 2007, 05:49
Hello Marius
This package is really good.
Thanks alot
Regards
pawan
13th September 2008, 12:23
[...] installation is really simple, and you can find some details about installing lshw on Debian, or Rhel, Centos, or Fedora in the small posts I have written for [...]
11th August 2010, 08:41
http://dag.wieers.com/packages/lshw/lshw-2.08-1.el4.rf.i386.rpm link is broken.
11th August 2010, 21:59
@Eduardo, thanks for mentioning this. I fixed the link to point the current latest version, but hopefully everyone would want to use yum to do this automatically as versions come and go, and this will become obsolete in another few years
3rd November 2010, 00:42
i try to install in centos, but it says :
sudo yum install lshw-2.15-1.el5.rf.i386.rpm
…
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Public key for lshw-2.15-1.el5.rf.i386.rpm is not installed
what should i do?
thq
19th May 2011, 08:48
@herman
To turn off GPG key checking, use –nogpgcheck with yum.
$ yum –nogpgcheck localinstall lswh-2.15-1.el5.rf.i386.rpm
Installed for me no problem once I added that.
Cheers.