How To Install hwloc on Fedora 36

In this tutorial we learn how to install hwloc in Fedora 36. hwloc is Portable Hardware Locality - portable abstraction of hierarchical architectures

Introduction

In this tutorial we learn how to install hwloc on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install hwloc.

Install hwloc on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove hwloc

hwloc Package Contents on Fedora 36

/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/0b
/usr/lib/.build-id/0b/c10d5979dec3636ec5dbd4ae23cf655b01e634
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/e1e057ba9be3c7cb2b573f293a0048e885e860
/usr/lib/.build-id/76
/usr/lib/.build-id/76/11c8adff540b988823c21e1cb37b582052b6af
/usr/lib/.build-id/94
/usr/lib/.build-id/94/5c4252373e0e8074a95cf1d847e6194c55ce5e
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/36b0b4c4b61253d7b14f2747cd695c81695669
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/23f2c1a0b5882f7bd5360aa1850cec763036bf
/usr/lib/.build-id/b4
/usr/lib/.build-id/b4/eebea36275940a41a319f31eca226db64fa90d
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/7fe3b15ea5e98fd07d19ab69a5fe85ade71190
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/7735f7ffffa4391fa5cbb71d5552e56bb963c4
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/223d6dba884ab104ec1855c8c446409ae1e090
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/321d9b6f2d9e7d98f41df6978698557b81065f
/usr/lib/systemd/system/hwloc-dump-hwdata.service
/usr/sbin/hwloc-dump-hwdata
/usr/share/bash-completion/completions/hwloc
/usr/share/hwloc/hwloc-ps.www
/usr/share/hwloc/hwloc-ps.www/README
/usr/share/hwloc/hwloc-ps.www/assets
/usr/share/hwloc/hwloc-ps.www/assets/index.html
/usr/share/hwloc/hwloc-ps.www/assets/main.css
/usr/share/hwloc/hwloc-ps.www/assets/script.js
/usr/share/hwloc/hwloc-ps.www/assets/style.css
/usr/share/hwloc/hwloc-ps.www/client.js
/usr/share/hwloc/hwloc-ps.www/package.json
/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).