# hwloc を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

hwloc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:hwloc
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install hwloc
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install hwloc
```

  証拠: MacPorts ports tree: devel/hwloc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add hwloc
```

  証拠: Alpine Linux edge package indexes: hwloc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install hwloc
```

  証拠: Debian stable package indexes: hwloc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install hwloc
```

  証拠: Fedora Rawhide package metadata: hwloc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#hwloc
```

  証拠: nixpkgs package indexes: pkgs/by-name/hw/hwloc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S hwloc
```

  証拠: Arch Linux sync databases: hwloc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install hwloc
```

  証拠: openSUSE Tumbleweed package metadata: hwloc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:hwloc
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/hwloc>
- **バージョン:** 2.14.0
- **ソース概要:** Portable abstraction of the hierarchical topology of modern architectures
- **ホームページ:** <https://www.open-mpi.org/projects/hwloc/>
- **リポジトリ:** <https://github.com/open-mpi/hwloc>
- **上流ドキュメント:** <https://www.open-mpi.org/projects/hwloc/>
- **ライセンス:** BSD-3-Clause
- **ソースアーカイブ:** <https://download.open-mpi.org/release/hwloc/v2.14/hwloc-2.14.0.tar.bz2>
- **最終更新:** 2026-07-14T16:33:15Z
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- hwloc-annotate (cli)
- hwloc-bind (cli)
- hwloc-calc (cli)
- hwloc-compress-dir (cli)
- hwloc-diff (cli)
- hwloc-distrib (cli)
- hwloc-gather-topology (cli)
- hwloc-info (cli)
- hwloc-ls (cli)
- hwloc-patch (cli)
- hwloc-ps (cli)
- lstopo (cli)
- lstopo-no-graphics (cli)
- hwloc-annotate (エイリアス)
- hwloc-bind (エイリアス)
- hwloc-calc (エイリアス)
- hwloc-compress-dir (エイリアス)
- hwloc-diff (エイリアス)
- hwloc-distrib (エイリアス)
- hwloc-gather-topology (エイリアス)
- hwloc-info (エイリアス)
- hwloc-ls (エイリアス)
- hwloc-patch (エイリアス)
- hwloc-ps (エイリアス)
- lstopo (エイリアス)
- lstopo-no-graphics (エイリアス)

## ビルド依存関係

- pkgconf

## macOS 提供ライブラリ

- libxml2
- ncurses

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 2.14.0
- マネージャ更新日: 2026-07-14
- ローカルデータ: OK
- 上流リポジトリ: https://www.open-mpi.org/projects/hwloc/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

hwloc, Hardware Locality, is a portable library and command-line tool suite for discovering and using machine topology: NUMA nodes, packages, cores, processing units, caches, I/O devices, and locality relationships. It is a system and HPC building block rather than a single end-user command.

### プロジェクトの歴史

The Open MPI project history says hwloc evolved from and merged the libtopology and Portable Linux Processor Affinity projects because they overlapped functionally and ideologically. It was released under the hwloc name as an Open MPI sub-project and is mostly developed by the TADaaM team at Inria in Bordeaux.

The NEWS file covers features since version 0.9 and carries 2009 copyright notices for CNRS, Inria, Universite Bordeaux, and Cisco Systems. The 1.0.0 tag dates to May 2010. Later major lines expanded the API and the command-line suite while preserving the central promise: make topology discovery and binding portable across operating systems and hardware generations.

### 採用の歴史

Open MPI's project page lists downstream or related users including MPC, Newmadeleine, StarPU, Kokkos, oneTBB, memkind, H2M, Seastar, PaStiX, LIKWID, TensorFlow, GEOPM, and OpenPMIx. The package metadata shows broad distribution across Homebrew, Debian, Ubuntu, Fedora-family, Alpine, Arch, Nix, MacPorts, and openSUSE ecosystems.

### 使われ方

Users run tools such as `lstopo`, `hwloc-info`, `hwloc-bind`, `hwloc-calc`, and related utilities to inspect topology, bind processes, calculate CPU or NUMA sets, export XML topologies, and debug locality issues. Developers use the C API to make runtime, scheduler, MPI, database, and performance tools topology-aware.

### パッケージ好きにとっての重要性

hwloc is package-nerd-significant because it is often pulled in indirectly by high-performance and systems software. A package manager may present it as a small system formula, but it encodes hard-won portability across Linux, BSDs, macOS, Windows, Solaris, AIX, cpusets, NUMA, caches, GPUs, and other topology surfaces.

### タイムライン

- 2009: NEWS history begins at version 0.9, with CNRS, Inria, Universite Bordeaux, and Cisco copyright notices.
- 2010: 1.0.0 release tag published.
- 2013: GitHub mirror/repository metadata begins for the Open MPI hwloc repo.
- 2018: 2.0.x line introduced a new major API era; 2.0.0 was marked as having a broken ABI, with 2.0.1 or later recommended.
- 2026: NEWS documents 3.0.0 API changes, removals, and topology-info updates.

### Related projects

- hwloc is historically related to libtopology and PLPA, and operationally related to Open MPI, PMIx, NUMA libraries, CPU binding APIs, StarPU, Kokkos, oneTBB, memkind, TensorFlow, and other software that needs hardware-locality knowledge.

### ソース

- Open MPI hwloc project history, README, NEWS, release archives, repository metadata, and Homebrew package metadata were used.


## セキュリティノート

broad file, network, media, or database tool signal.

- **Geiger リスク:** blue / 中
- broad file, network, media, or database tool signal

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** hwloc
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- Debian apt - hwloc - 2.12.0-4: normalized package name match | Debian stable package indexes: hwloc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Hierarchical view of the machine - utilities | https://www.open-mpi.org/projects/hwloc/
- Debian apt - hwloc-nox - 2.12.0-4: normalized package name match | Debian stable package indexes: hwloc-nox from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Hierarchical view of the machine - non-X version of utilities | https://www.open-mpi.org/projects/hwloc/
- Debian apt - libhwloc-common - 2.12.0-4: normalized package name match | Debian stable package indexes: libhwloc-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Hierarchical view of the machine - common files | https://www.open-mpi.org/projects/hwloc/
- Debian apt - libhwloc-dev - 2.12.0-4: normalized package name match | Debian stable package indexes: libhwloc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Hierarchical view of the machine - static libs and headers | https://www.open-mpi.org/projects/hwloc/
- Debian apt - libhwloc-doc - 2.12.0-4: normalized package name match | Debian stable package indexes: libhwloc-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Hierarchical view of the machine - documentation | https://www.open-mpi.org/projects/hwloc/
- Debian apt - libhwloc-plugins - 2.12.0-4: normalized package name match | Debian stable package indexes: libhwloc-plugins from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Hierarchical view of the machine - plugins | https://www.open-mpi.org/projects/hwloc/
- Debian apt - libhwloc15 - 2.12.0-4: normalized package name match | Debian stable package indexes: libhwloc15 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Hierarchical view of the machine - shared libs | https://www.open-mpi.org/projects/hwloc/
- Nix - hwloc: normalized package name match | nixpkgs package indexes: pkgs/by-name/hw/hwloc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - hwloc - 2.10.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: hwloc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Hierarchical view of the machine - utilities | https://www.open-mpi.org/projects/hwloc/
- Ubuntu apt - hwloc-nox - 2.10.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: hwloc-nox from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Hierarchical view of the machine - non-X version of utilities | https://www.open-mpi.org/projects/hwloc/
- Ubuntu apt - libhwloc-common - 2.10.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libhwloc-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Hierarchical view of the machine - common files | https://www.open-mpi.org/projects/hwloc/
- Ubuntu apt - libhwloc-dev - 2.10.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libhwloc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Hierarchical view of the machine - static libs and headers | https://www.open-mpi.org/projects/hwloc/
- Ubuntu apt - libhwloc-doc - 2.10.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libhwloc-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Hierarchical view of the machine - documentation | https://www.open-mpi.org/projects/hwloc/
- Ubuntu apt - libhwloc-plugins - 2.10.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libhwloc-plugins from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Hierarchical view of the machine - plugins | https://www.open-mpi.org/projects/hwloc/
- Ubuntu apt - libhwloc15 - 2.10.0-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libhwloc15 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Hierarchical view of the machine - shared libs | https://www.open-mpi.org/projects/hwloc/
- apk - hwloc - 2.12.2-r0: normalized package name match | Alpine Linux edge package indexes: hwloc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Portable abstraction of hierarchical hardware architectures | https://www.open-mpi.org/


## 関連リンク

- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/ja/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/ja/brew-utility-packages/) - Matched Homebrew package provider.
- [pkgconf](https://pkg.so/ja/brew/pkgconf/) - Build dependency declared by Homebrew.
- [open-mpi](https://pkg.so/ja/brew/open-mpi/) - Popular package that depends on this formula.
- [pmix](https://pkg.so/ja/brew/pmix/) - Popular package that depends on this formula.
- [mpich](https://pkg.so/ja/brew/mpich/) - Popular package that depends on this formula.
- [prrte](https://pkg.so/ja/brew/prrte/) - Popular package that depends on this formula.
- [snort](https://pkg.so/ja/brew/snort/) - Popular package that depends on this formula.
- [xmrig](https://pkg.so/ja/brew/xmrig/) - Popular package that depends on this formula.
- [zstd](https://pkg.so/ja/brew/zstd/) - Shares pkgdb curated category or tags: cli, library, system.
- [keyutils](https://pkg.so/ja/brew/keyutils/) - Shares pkgdb curated category or tags: cli, library, system.
- [libzip](https://pkg.so/ja/brew/libzip/) - Shares pkgdb curated category or tags: cli, library, system.
- [htop](https://pkg.so/ja/brew/htop/) - Shares pkgdb curated category or tags: cli, system.
- [wimlib](https://pkg.so/ja/brew/wimlib/) - Shares pkgdb curated category or tags: cli, library, system.
- [numactl](https://pkg.so/ja/brew/numactl/) - Shares pkgdb curated category or tags: cli, numa, system.
- [libxmlb](https://pkg.so/ja/brew/libxmlb/) - Shares pkgdb curated category or tags: cli, library, system.
- [libzzip](https://pkg.so/ja/brew/libzzip/) - Shares pkgdb curated category or tags: cli, library, system.
- [cpu_features](https://pkg.so/ja/brew/cpu-features/) - Local package facts share a topical domain. Shared terms: cli, cpu, hardware, library, system.
- [cpufetch](https://pkg.so/ja/brew/cpufetch/) - Local package facts share a topical domain. Shared terms: cli, cpu, hardware, info, system.
- [cpuid](https://pkg.so/ja/brew/cpuid/) - Local package facts share a topical domain. Shared terms: cli, cpu, hardware, library, system.

## Combined YAML source

View the package source record on GitHub. [combined/hwloc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/hwloc.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
