How To Install hwloc on Fedora 34
Introduction
In this tutorial we learn how to install hwloc
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install hwloc.
Install hwloc on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install hwloc
using dnf
by running the following command:
sudo dnf -y install hwloc
Install hwloc on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 34
To uninstall only the hwloc
package we can use the following command:
sudo dnf remove hwloc
hwloc Package Contents on Fedora 34
/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/06
/usr/lib/.build-id/06/834608c0ba3aeb00867b93f8ff6da933a55c4e
/usr/lib/.build-id/17
/usr/lib/.build-id/17/12c51568e2bdae29001580ff725ec633b7df73
/usr/lib/.build-id/30
/usr/lib/.build-id/30/2602aaa5eebb8d9912ac5312c37a6b0fd063fc
/usr/lib/.build-id/53
/usr/lib/.build-id/53/1cd6453726cbdc20dabe75c83baf4c38889647
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/9daf4996367d4c41481c4c976371e11be2eb2a
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/5ba288741af821801f4f0e1f0e2d4a45b51a85
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/8c357a58aa6bf1ac716c708a6dd0bad46f9db3
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/8dc1b7ac37e0e6c7b6efc4f6c8de68d0bc53e0
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/fb0b59913cd5553fa677018ae5b9248ff99d50
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/5818f17e1e0309f0ac6e9245454af1b3e15dad
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/94a0cfd3ba18a8a3d4fa1fb2d6acd70a09c90d
/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 34 using yum and dnf.