# 使用 Homebrew, apk, apt, dnf, Nix, pacman, zypper 安装 numactl

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

## 安装

```sh
sudo av install brew:numactl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install numactl
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add numactl
```

  证据: Alpine Linux edge package indexes: numactl from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install numactl
```

  证据: Debian stable package indexes: numactl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install numactl
```

  证据: Fedora Rawhide package metadata: numactl 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#numactl
```

  证据: nixpkgs package indexes: pkgs/by-name/nu/numactl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S numactl
```

  证据: Arch Linux sync databases: numactl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install numactl
```

  证据: openSUSE Tumbleweed package metadata: numactl from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:numactl
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/numactl>
- **版本:** 2.0.19
- **来源摘要:** NUMA support for Linux
- **主页:** <https://github.com/numactl/numactl>
- **仓库:** <https://github.com/numactl/numactl>
- **许可证:** GPL-2.0-only AND LGPL-2.1-only AND LicenseRef-Homebrew-public-domain AND LicenseRef-Homebrew-cannot-represent
- **源码归档:** <https://github.com/numactl/numactl/releases/download/v2.0.19/numactl-2.0.19.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- memhog (cli)
- migratepages (cli)
- migspeed (cli)
- numactl (cli)
- numademo (cli)
- numastat (cli)
- memhog (别名)
- migratepages (别名)
- migspeed (别名)
- numactl (别名)
- numademo (别名)
- numastat (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.0.19
- 本地数据: OK
- 上游仓库: https://github.com/numactl/numactl
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

numactl is the standard Linux user-space tool and companion library package for controlling NUMA scheduling and memory placement policy. It includes the `numactl` command, libnuma, and utilities such as `numastat` and `memhog`.

### 项目历史

numactl grew out of early Linux 2.6 NUMA policy work. LWN published Andi Kleen's January 2004 announcement of a Linux 2.6 NUMA policy API implementation consisting of kernel policy API support, libnuma for applications, the `numactl` user-space policy tool, and test programs.

The current GitHub README keeps the same project definition: simple NUMA policy support, with a `numactl` program to run other programs under a specific NUMA policy and a libnuma shared library for applications. The README also states that the libnuma binary interface is intended to stay binary compatible, with incompatible changes using new symbol versions.

### 采用历史

numactl became part of the normal Linux performance and systems toolbox because multi-socket and large-memory machines make memory locality observable. Linux man-pages document it as the command for running processes with specific NUMA scheduling or memory placement policy, inherited by child processes, and for setting persistent policy on shared memory segments or files.

Distribution adoption is broad. The av.db source record maps numactl/libnuma packages across Alpine, Debian, Fedora, Nix, Arch, Ubuntu, and openSUSE; Homebrew packages it for Linux bottles and showed stable 2.0.19 with 28,653 installs over the visible 365-day analytics window on July 1, 2026.

### 使用方式

Typical practical commands include `numactl --hardware` to inspect NUMA topology, `numactl --cpunodebind` or `--physcpubind` to bind CPU execution, `--membind` or `--preferred` to steer memory allocation, and `--interleave` to distribute pages across nodes. `numastat` is used to inspect allocation behavior after a workload runs.

Package nerds and performance engineers use numactl when benchmarking databases, JVMs, scientific workloads, ML training/inference processes, or any memory-bandwidth-sensitive service where scheduler placement and page locality can change results. The lazy but correct rule is to measure: pinning can help controlled benchmarks and production isolation, but bad bindings can make performance worse.

### 为什么软件包爱好者会关心

numactl is a small package with outsized systems significance. It exposes Linux NUMA policy to shell users and gives C/C++ programs libnuma, making it one of the common bridges between kernel memory policy and practical performance tuning.

### 时间线

- 2004-01: LWN carried Andi Kleen's announcement of libnuma/numactl and the Linux 2.6 NUMA policy API implementation.
- 2003-2005: numactl source headers credit Andi Kleen/SuSE Labs work on command-line NUMA policy control.
- 2026-07-01: Homebrew formula showed stable 2.0.19 and Linux-only bottle support.

### Related projects

- Linux kernel NUMA policy
- libnuma
- numastat
- taskset
- hwloc

### 来源

- <https://formulae.brew.sh/formula/numactl>
- <https://github.com/numactl/numactl>
- <https://github.com/numactl/numactl/blob/master/numactl.c>
- <https://lwn.net/Articles/67005/>
- <https://man7.org/linux/man-pages/man3/numa.3.html>
- <https://man7.org/linux/man-pages/man8/numactl.8.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

## 其他软件包管理器记录

- Debian apt - libnuma-dev - 2.0.19-1: normalized package name match | Debian stable package indexes: libnuma-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development files for libnuma | https://github.com/numactl/numactl
- Debian apt - libnuma1 - 2.0.19-1: normalized package name match | Debian stable package indexes: libnuma1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Libraries for controlling NUMA policy | https://github.com/numactl/numactl
- Debian apt - numactl - 2.0.19-1: normalized package name match | Debian stable package indexes: numactl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | NUMA scheduling and memory placement tool | https://github.com/numactl/numactl
- Nix - numactl: normalized package name match | nixpkgs package indexes: pkgs/by-name/nu/numactl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libnuma-dev - 2.0.18-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libnuma-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Development files for libnuma | https://github.com/numactl/numactl
- Ubuntu apt - libnuma1 - 2.0.18-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libnuma1 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Libraries for controlling NUMA policy | https://github.com/numactl/numactl
- Ubuntu apt - numactl - 2.0.18-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: numactl from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | NUMA scheduling and memory placement tool | https://github.com/numactl/numactl
- apk - numactl - 2.0.19-r0: normalized package name match | Alpine Linux edge package indexes: numactl from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Simple NUMA policy support | https://github.com/numactl/numactl
- apk - numactl-dev - 2.0.19-r0: normalized package name match | Alpine Linux edge package indexes: numactl-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Simple NUMA policy support (development files) | https://github.com/numactl/numactl
- apk - numactl-doc - 2.0.19-r0: normalized package name match | Alpine Linux edge package indexes: numactl-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Simple NUMA policy support (documentation) | https://github.com/numactl/numactl
- apk - numactl-tools - 2.0.19-r0: normalized package name match | Alpine Linux edge package indexes: numactl-tools from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | NUMA policy control tools | https://github.com/numactl/numactl
- dnf - numactl - 2.0.19-5.fc45: normalized package name match | Fedora Rawhide package metadata: numactl from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Library for tuning for Non Uniform Memory Access machines | https://github.com/numactl/numactl
- dnf - numactl-devel - 2.0.19-5.fc45: normalized package name match | Fedora Rawhide package metadata: numactl-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development package for building Applications that use numa | https://github.com/numactl/numactl
- dnf - numactl-libs - 2.0.19-5.fc45: normalized package name match | Fedora Rawhide package metadata: numactl-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | libnuma libraries | https://github.com/numactl/numactl
- pacman - numactl - 2.0.19-1: normalized package name match | Arch Linux sync databases: numactl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Simple NUMA policy support | https://github.com/numactl/numactl
- zypper - libnuma-devel - 2.0.19.27.gc9475de-1.4: normalized package name match | openSUSE Tumbleweed package metadata: libnuma-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | NUMA Policy Control | https://github.com/numactl/numactl/releases


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [lttng-ust](https://pkg.so/zh-hans/brew/lttng-ust/) - Popular package that depends on this formula.
- [atop](https://pkg.so/zh-hans/brew/atop/) - Shares pkgdb curated category or tags: cli, linux, performance, system.
- [keyutils](https://pkg.so/zh-hans/brew/keyutils/) - Shares pkgdb curated category or tags: cli, linux, system.
- [vmtouch](https://pkg.so/zh-hans/brew/vmtouch/) - Shares pkgdb curated category or tags: cli, memory, performance, system.
- [sysstat](https://pkg.so/zh-hans/brew/sysstat/) - Shares pkgdb curated category or tags: cli, linux, performance, system.
- [mbw](https://pkg.so/zh-hans/brew/mbw/) - Shares pkgdb curated category or tags: cli, memory, performance, system.
- [util-linux](https://pkg.so/zh-hans/brew/util-linux/) - Shares pkgdb curated category or tags: cli, linux, system.
- [podman](https://pkg.so/zh-hans/brew/podman/) - Shares pkgdb curated category or tags: cli, linux, system.
- [systemd](https://pkg.so/zh-hans/brew/systemd/) - Shares pkgdb curated category or tags: cli, linux, system.
- [bpftop](https://pkg.so/zh-hans/brew/bpftop/) - Local package facts share a topical domain. Shared terms: cli, linux, system.
- [cpulimit](https://pkg.so/zh-hans/brew/cpulimit/) - Local package facts share a topical domain. Shared terms: cli, linux, system.

## Combined YAML source

View the package source record on GitHub. [combined/numactl.yml](https://github.com/mxcl/pkgdb/blob/main/combined/numactl.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
