How To Install hwloc on Rocky Linux 8

In this tutorial we learn how to install hwloc on Rocky Linux 8. hwloc is Portable Hardware Locality - portable abstraction of hierarchical architectures

Introduction

In this tutorial we learn how to install hwloc on Rocky Linux 8.

What is hwloc

The Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, …) of the hierarchical topology of modern architectures, including NUMA memory nodes, shared caches, processor sockets, processor cores and processing units (logical processors or “threads”). It also gathers various system attributes such as cache and memory information. It primarily aims at helping applications with gathering information about modern computing hardware so as to exploit it accordingly and efficiently. hwloc may display the topology in multiple convenient formats. It also offers a powerful programming interface (C API) to gather information about the hardware, bind processes, and much more.

We can use yum or dnf to install hwloc on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install hwloc.

Install hwloc on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install hwloc using dnf by running the following command:

sudo dnf -y install hwloc

Install hwloc on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install hwloc using yum by running the following command:

sudo yum -y install hwloc

How To Uninstall hwloc on Rocky Linux 8

To uninstall only the hwloc package we can use the following command:

sudo dnf remove hwloc

hwloc Package Contents on Rocky Linux 8

/etc/bash_completion.d/hwloc-completion.bash
/usr/bin/hwloc-annotate
/usr/bin/hwloc-bind
/usr/bin/hwloc-calc
/usr/bin/hwloc-compress-dir
/usr/bin/hwloc-diff
/usr/bin/hwloc-distrib
/usr/bin/hwloc-gather-cpuid
/usr/bin/hwloc-gather-topology
/usr/bin/hwloc-info
/usr/bin/hwloc-ls
/usr/bin/hwloc-patch
/usr/bin/hwloc-ps
/usr/bin/lstopo-no-graphics
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/d1e3f5354ea684db38d40725ec5923e5e704b1
/usr/lib/.build-id/01
/usr/lib/.build-id/01/3f0d5c97fadcd12638fc454f24714774b54571
/usr/lib/.build-id/19
/usr/lib/.build-id/19/11b95210b3b401b66d7186bdbff3c2c5b9b255
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/0d55fc1faae65cfd6845c4562ced307de30f59
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/621f63f10f63f1ed42daace17d5dccf312fb21
/usr/lib/.build-id/50
/usr/lib/.build-id/50/7ff6ff8e1c0f8153e7fcefa653fcab9006d4f3
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/177dc4de032e7ab799e3f3c5c6e251674e39a3
/usr/lib/.build-id/96
/usr/lib/.build-id/96/73953b55469a993fd9b1cbdca2967c040ff1e7
/usr/lib/.build-id/db
/usr/lib/.build-id/db/4ca5000f35eb1ce81e4e3b6abae9b30f43a7c8
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/9eb25cff6562aa1439d43570f2b49f9c71e069
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/66ef8c25de111c8988cbd124fbc467dbc2c00f
/usr/lib/systemd/system/hwloc-dump-hwdata.service
/usr/sbin/hwloc-dump-hwdata
/usr/share/man/man1/hwloc-annotate.1.gz
/usr/share/man/man1/hwloc-bind.1.gz
/usr/share/man/man1/hwloc-calc.1.gz
/usr/share/man/man1/hwloc-compress-dir.1.gz
/usr/share/man/man1/hwloc-diff.1.gz
/usr/share/man/man1/hwloc-distrib.1.gz
/usr/share/man/man1/hwloc-dump-hwdata.1.gz
/usr/share/man/man1/hwloc-gather-cpuid.1.gz
/usr/share/man/man1/hwloc-gather-topology.1.gz
/usr/share/man/man1/hwloc-info.1.gz
/usr/share/man/man1/hwloc-ls.1.gz
/usr/share/man/man1/hwloc-patch.1.gz
/usr/share/man/man1/hwloc-ps.1.gz
/usr/share/man/man1/lstopo-no-graphics.1.gz

References

Summary

In this tutorial we learn how to install hwloc on Rocky Linux 8 using yum and dnf.