Linux HOWTOs

About | Home | Search


HOWTO: lshw
Description: Hardware lister
Click here for ChangeLog
NOTE: I use GNU tar >= 1.13.25 so it's -j for .tar.bz2 files,
it's safe to assume that make, gcc, binutils, fileutils/coreutils, gawk, sed, and grep are prerequisites for almost everything


# lshw B.02.11.01
# ===============
cd
test -f installed/lshw-B.02.11.01.tar.gz &&
 mv installed/lshw-B.02.11.01.tar.gz .
test ! -f lshw-B.02.11.01.tar.gz &&
 wget http://ezix.org/software/files/lshw-B.02.11.01.tar.gz
mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "lshw-*" -exec rm -r {} \;
tar xzvf ~/lshw-B.02.11.01.tar.gz
cd lshw-B.02.11.01
test $UID = 0 && chown -R root:root .
make
su -c "make install"
cd
mkdir -p -m 0700 installed
rm -f installed/lshw-*.tar.*
mv lshw-B.02.11.01.tar.gz installed/

Back to the list


Last updated: Wed, 29 Apr 2020 22:04:50 -0400
Jason Englander <jason at englanders dot us>