How To Install hwinfo on CentOS 8
Introduction
In this tutorial we learn how to install hwinfo
on CentOS 8.
What is hwinfo
hwinfo is to probe for the hardware present in the system. It can be used to generate a system overview log which can be later used for support.
We can use yum
or dnf
to install hwinfo
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install hwinfo.
Install hwinfo on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install hwinfo
using dnf
by running the following command:
sudo dnf -y install hwinfo
Install hwinfo on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install hwinfo
using yum
by running the following command:
sudo yum -y install hwinfo
How To Uninstall hwinfo on CentOS 8
To uninstall only the hwinfo
package we can use the following command:
sudo dnf remove hwinfo
hwinfo Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/25
/usr/lib/.build-id/25/eb6682ee139ca4c06074765d3b4d9b95866224
/usr/lib/.build-id/27
/usr/lib/.build-id/27/cbbf27ade0105ca96f7239070ffa9836fa806b
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/be90fe6a0606339eaff3468f3e95644ce8d823
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/38dfd5816b10daaa2ef851db3f0a8fd34beb92
/usr/lib64/libhd.so.21
/usr/lib64/libhd.so.21.47
/usr/sbin/check_hd
/usr/sbin/convert_hd
/usr/sbin/getsysinfo
/usr/sbin/hwinfo
/usr/sbin/mk_isdnhwdb
/usr/share/doc/hwinfo
/usr/share/doc/hwinfo/MAINTAINER
/usr/share/doc/hwinfo/README-hwprobe.md
/usr/share/doc/hwinfo/README-legacy.md
/usr/share/doc/hwinfo/README.md
/usr/share/doc/hwinfo/specifications.md
/usr/share/hwinfo
/usr/share/hwinfo/ISDN.CDB.hwdb
/usr/share/hwinfo/ISDN.CDB.txt
/usr/share/licenses/hwinfo
/usr/share/licenses/hwinfo/COPYING
References
Summary
In this tutorial we learn how to install hwinfo
on CentOS 8 using yum and dnf.