Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 hwloc

查看 hwloc 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install hwloc

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install hwloc

MacPorts ports tree · devel/hwloc/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add hwloc

Alpine Linux edge package indexes · hwloc · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install hwloc

Debian stable package indexes · hwloc · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install hwloc

Fedora Rawhide package metadata · hwloc · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#hwloc

nixpkgs package indexes · pkgs/by-name/hw/hwloc/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S hwloc

Arch Linux sync databases · hwloc · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install hwloc

openSUSE Tumbleweed package metadata · hwloc · 来源: download.opensuse.org

概览

软件包摘要

Portable abstraction of the hierarchical topology of modern architectures

命令和别名

  • 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

历史

项目历史与用法

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.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:compress

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
hwloc-annotatecli全局可执行文件
hwloc-bindcli全局可执行文件
hwloc-calccli全局可执行文件
hwloc-compress-dircli全局可执行文件
hwloc-diffcli全局可执行文件
hwloc-distribcli全局可执行文件
hwloc-gather-topologycli全局可执行文件
hwloc-infocli全局可执行文件
hwloc-lscli全局可执行文件
hwloc-patchcli全局可执行文件
hwloc-pscli全局可执行文件
lstopocli全局可执行文件
lstopo-no-graphicscli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本2.13.0
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.open-mpi.org/projects/hwloc/

安装元数据

软件包元数据

软件包键brew:hwloc
版本2.13.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/hwloc
主页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.13/hwloc-2.13.0.tar.bz2
构建依赖pkgconf
macOS 提供的库libxml2, ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehwloc
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

hwloc 2.12.0-4

Hierarchical view of the machine - utilities

https://www.open-mpi.org/projects/hwloc/

sudo apt install hwloc
  • Section: admin
  • Architecture: amd64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Hwloc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: hwloc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

hwloc-nox 2.12.0-4

Hierarchical view of the machine - non-X version of utilities

https://www.open-mpi.org/projects/hwloc/

sudo apt install hwloc-nox
  • Section: admin
  • Architecture: amd64
  • Source Package: hwloc
  • 3 依赖
  • normalized package name match
  • 匹配方式:Hwloc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: hwloc-nox from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libhwloc-common 2.12.0-4

Hierarchical view of the machine - common files

https://www.open-mpi.org/projects/hwloc/

sudo apt install libhwloc-common
  • Section: libs
  • Architecture: all
  • Source Package: hwloc
  • normalized package name match
  • 匹配方式:Hwloc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libhwloc-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libhwloc-dev 2.12.0-4

Hierarchical view of the machine - static libs and headers

https://www.open-mpi.org/projects/hwloc/

sudo apt install libhwloc-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: hwloc
  • 3 依赖
  • normalized package name match
  • 匹配方式:Hwloc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libhwloc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libhwloc-doc 2.12.0-4

Hierarchical view of the machine - documentation

https://www.open-mpi.org/projects/hwloc/

sudo apt install libhwloc-doc
  • Section: doc
  • Architecture: all
  • Source Package: hwloc
  • 1 依赖
  • normalized package name match
  • 匹配方式:Hwloc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libhwloc-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libhwloc-plugins 2.12.0-4

Hierarchical view of the machine - plugins

https://www.open-mpi.org/projects/hwloc/

sudo apt install libhwloc-plugins
  • Section: libs
  • Architecture: amd64
  • Source Package: hwloc
  • 9 依赖
  • normalized package name match
  • 匹配方式:Hwloc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libhwloc-plugins from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libhwloc15 2.12.0-4

Hierarchical view of the machine - shared libs

https://www.open-mpi.org/projects/hwloc/

sudo apt install libhwloc15
  • Section: libs
  • Architecture: amd64
  • Source Package: hwloc
  • 2 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Hwloc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libhwloc15 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

hwloc

nix profile install nixpkgs#hwloc
  • normalized package name match
  • 匹配方式:Hwloc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/hw/hwloc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

hwloc 2.10.0-1build1

Hierarchical view of the machine - utilities

https://www.open-mpi.org/projects/hwloc/

sudo apt install hwloc
  • Section: universe/admin
  • Architecture: amd64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Hwloc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: hwloc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

hwloc-nox 2.10.0-1build1

Hierarchical view of the machine - non-X version of utilities

https://www.open-mpi.org/projects/hwloc/

sudo apt install hwloc-nox
  • Section: universe/admin
  • Architecture: amd64
  • Source Package: hwloc
  • 3 依赖
  • normalized package name match
  • 匹配方式:Hwloc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: hwloc-nox from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libhwloc-common 2.10.0-1build1

Hierarchical view of the machine - common files

https://www.open-mpi.org/projects/hwloc/

sudo apt install libhwloc-common
  • Section: universe/libs
  • Architecture: all
  • Source Package: hwloc
  • normalized package name match
  • 匹配方式:Hwloc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libhwloc-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libhwloc-dev 2.10.0-1build1

Hierarchical view of the machine - static libs and headers

https://www.open-mpi.org/projects/hwloc/

sudo apt install libhwloc-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: hwloc
  • 3 依赖
  • normalized package name match
  • 匹配方式:Hwloc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libhwloc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libhwloc-doc 2.10.0-1build1

Hierarchical view of the machine - documentation

https://www.open-mpi.org/projects/hwloc/

sudo apt install libhwloc-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: hwloc
  • 1 依赖
  • normalized package name match
  • 匹配方式:Hwloc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libhwloc-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libhwloc-plugins 2.10.0-1build1

Hierarchical view of the machine - plugins

https://www.open-mpi.org/projects/hwloc/

sudo apt install libhwloc-plugins
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: hwloc
  • 8 依赖
  • normalized package name match
  • 匹配方式:Hwloc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libhwloc-plugins from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libhwloc15 2.10.0-1build1

Hierarchical view of the machine - shared libs

https://www.open-mpi.org/projects/hwloc/

sudo apt install libhwloc15
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: hwloc
  • 2 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Hwloc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libhwloc15 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

hwloc 2.12.2-r0

Portable abstraction of hierarchical hardware architectures

https://www.open-mpi.org/

sudo apk add hwloc
  • License: BSD-3-Clause
  • Architecture: x86_64
  • Source Package: hwloc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Hwloc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: hwloc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment