How To Install lshw-gui on CentOS 8

lshw-gui is Graphical hardware lister

Introduction

In this tutorial we learn how to install lshw-gui on CentOS 8.

What is lshw-gui

Graphical frontend for the hardware lister (lshw) tool. If desired, hardware information can be saved to file in plain, XML or HTML format.

We can use yum or dnf to install lshw-gui on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install lshw-gui.

Install lshw-gui 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 lshw-gui using dnf by running the following command:

sudo dnf -y install lshw-gui

Install lshw-gui 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 lshw-gui using yum by running the following command:

sudo yum -y install lshw-gui

How To Uninstall lshw-gui on CentOS 8

To uninstall only the lshw-gui package we can use the following command:

sudo dnf remove lshw-gui

lshw-gui Package Contents on CentOS 8

/usr/bin/lshw-gui
/usr/lib/.build-id
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/34fba44e78cc18c2aca922e0c9501077483544
/usr/sbin/gtk-lshw
/usr/sbin/lshw-gui
/usr/share/appdata/gtk-lshw.appdata.xml
/usr/share/applications/gtk-lshw.desktop
/usr/share/licenses/lshw-gui
/usr/share/licenses/lshw-gui/COPYING
/usr/share/lshw
/usr/share/lshw/artwork
/usr/share/lshw/artwork/32.svg
/usr/share/lshw/artwork/64.svg
/usr/share/lshw/artwork/alpha.svg
/usr/share/lshw/artwork/amd.svg
/usr/share/lshw/artwork/audio.svg
/usr/share/lshw/artwork/battery.svg
/usr/share/lshw/artwork/bluetooth.svg
/usr/share/lshw/artwork/board.svg
/usr/share/lshw/artwork/cd.svg
/usr/share/lshw/artwork/chip.svg
/usr/share/lshw/artwork/cloud.svg
/usr/share/lshw/artwork/cpu.svg
/usr/share/lshw/artwork/desktopcomputer.svg
/usr/share/lshw/artwork/disabled.svg
/usr/share/lshw/artwork/disc.svg
/usr/share/lshw/artwork/display.svg
/usr/share/lshw/artwork/emac.svg
/usr/share/lshw/artwork/firewire.svg
/usr/share/lshw/artwork/intel.svg
/usr/share/lshw/artwork/laptop.svg
/usr/share/lshw/artwork/logo.svg
/usr/share/lshw/artwork/md.svg
/usr/share/lshw/artwork/memory.svg
/usr/share/lshw/artwork/mini.svg
/usr/share/lshw/artwork/mips.svg
/usr/share/lshw/artwork/modem.svg
/usr/share/lshw/artwork/motherboard.svg
/usr/share/lshw/artwork/network.svg
/usr/share/lshw/artwork/parallel.svg
/usr/share/lshw/artwork/parisc.svg
/usr/share/lshw/artwork/powermac.svg
/usr/share/lshw/artwork/powermacg5.svg
/usr/share/lshw/artwork/powerpc.svg
/usr/share/lshw/artwork/printer.svg
/usr/share/lshw/artwork/question.svg
/usr/share/lshw/artwork/radio.svg
/usr/share/lshw/artwork/scsi.svg
/usr/share/lshw/artwork/serial.svg
/usr/share/lshw/artwork/sparc.svg
/usr/share/lshw/artwork/tablet.svg
/usr/share/lshw/artwork/towercomputer.svg
/usr/share/lshw/artwork/usb.svg
/usr/share/lshw/artwork/wifi.svg
/usr/share/lshw/ui
/usr/share/lshw/ui/gtk-lshw.ui
/usr/share/pixmaps/gtk-lshw.svg
/usr/share/polkit-1/actions/org.ezix.lshw.gui.policy

References

Summary

In this tutorial we learn how to install lshw-gui on CentOS 8 using yum and dnf.