hwinfo - Hardware information tool ChangeLog

HOWTO


# hwinfo 23.3
# ===========
# There is no hwinfo package for Slackware, but it is on Slackbuilds:
# https://slackbuilds.org/repository/15.0/system/hwinfo/?search=hwinfo

# If you ever want to remove hwinfo or clean up files from previous versions
# before installing a new one, skip down to the bottom

# Prerequisites:
# libx86emu
# doxygen (if you run 'make doc')

# Get the tarball
cd
test -f installed/hwinfo-23.3.tar.gz &&
mv -f installed/hwinfo-23.3.tar.gz .
test ! -f hwinfo-23.3.tar.gz &&
wget -O hwinfo-23.3.tar.gz \
https://github.com/openSUSE/hwinfo/archive/refs/tags/23.3.tar.gz

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "hwinfo-*" -exec rm -r {} \;
tar xzvf ~/hwinfo-23.3.tar.gz
cd hwinfo-23.3
test $UID = 0 && chown -R root:root .

# Read ./README.md or read it online here:
# https://github.com/openSUSE/hwinfo/blob/23.3/README.md

# Build it
# Note: when it runs 'check_hd' that can take a long time
make HWINFO_VERSION=23.3

# If you run 'make doc' it will use doxygen to create
# HTML and LaTeX docs in doc/libhd/

# Become root to install it
su

# Install programs and library
make install HWINFO_VERSION=23.3
ldconfig

# Install man pages
# Note: hwinfo.8 refers to /usr/share/doc/packages/hwinfo/ but that
# is the openSUSE path, not the Slackware path ]
( cd doc
  install -m 644 check_hd.1 convert_hd.1 getsysinfo.1 mk_isdnhwdb.1 \
   /usr/man/man1/
  install -m 644 hwinfo.8 /usr/man/man8 )

# If you want to install docs under /usr/doc you could do something like
# this...
mkdir -p /usr/doc/hwinfo
cp --preserve=timestamps -r COPYING MAINTAINER README* doc/ /usr/doc/hwinfo/

# Become your non-root user again
exit

# Save the tarball for later
cd
mkdir -p -m 0700 installed
rm -f installed/hwinfo-*.tar.*
mv hwinfo-23.3.tar.gz installed/


# If you ever want to uninstall hwinfo, this should do it:
cd
su
test -d /usr/doc/hwinfo && rm -r /usr/doc/hwinfo
rm -f /usr/include/hd.h
( cd /usr/lib
  rm -f libhd.so.23.3 libhd.so.23 libhd.so libhd.a
   pkgconfig/hwinfo.pc )
( cd /usr/lib64
  rm -f libhd.so.23.3 libhd.so.23 libhd.so libhd.a
   pkgconfig/hwinfo.pc )
( cd /usr/man/man1
  rm -f check_hd.1 convert_hd.1 getsysinfo.1 mk_isdnhwdb.1 )
rm -f /usr/man/man8/hwinfo.8
( cd /usr/sbin
  rm -f convert_hd check_hd getsysinfo hwinfo mk_isdnhwdb )
test -d /usr/share/hwinfo && rm -r /usr/share/hwinfo
test -d /var/lib/hardware/udi && rm -r /var/lib/hardware/udi
test -d /var/lib/hardware && rm --ignore-fail-on-non-empty /var/lib/hardware
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "atk-*" -exec rm -r {} \;
rm -f ~/installed/atk-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2025-02-03 6:25pm
Copyright © 2001-2025 Jason Englander. All Rights reserved.
[HTML5]