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

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

## 安装

```sh
sudo av install brew:cpulimit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cpulimit
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add cpulimit
```

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

- Debian apt (92%):

```sh
sudo apt install cpulimit
```

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

- dnf (92%):

```sh
sudo dnf install cpulimit
```

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

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

- zypper (92%):

```sh
sudo zypper install cpulimit
```

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

## 软件包事实

- **软件包键:** brew:cpulimit
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cpulimit>
- **版本:** 0.2
- **来源摘要:** CPU usage limiter
- **主页:** <https://github.com/opsengine/cpulimit>
- **仓库:** <https://github.com/opsengine/cpulimit>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://github.com/opsengine/cpulimit/archive/refs/tags/v0.2.tar.gz>
- **最后更新:** 2026-08-02T01:55:35+09:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- cpulimit (cli)
- cpulimit (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.2
- 管理器更新时间: 2026-08-02
- 本地数据: OK
- 上游仓库: https://github.com/opsengine/cpulimit
- 检测到的最新版本: v0.2 (当前)
## 项目历史与用法

cpulimit is a small process-control utility that limits a process's observed CPU usage percentage without changing its nice value or scheduler priority.

### 项目历史

The README credits Angelo Marletta as the developer and describes the tool's goal: prevent a process from running for more than a specified CPU time ratio. The official GitHub repository was created in 2012.

### 采用历史

cpulimit has remained packaged as a straightforward Unix-style utility for administrators and users who need to tame batch jobs. The input package metadata shows distribution through Homebrew and several Linux package managers.

### 使用方式

cpulimit controls CPU consumption by sending SIGSTOP and SIGCONT POSIX signals. The README notes that child processes and threads of the selected process share the configured CPU percentage, and documents simple make-based builds for Linux, OS X, and FreeBSD.

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

The package is significant because it solves a familiar operational problem with a tiny C tool and no service manager dependency: package it once, expose a single executable, and users can apply soft CPU throttling to existing processes.

### 时间线

- 2012: The opsengine/cpulimit repository was created.
- Repository era: v0.1 and v0.2 tags exist in the official GitHub repository.
- 2024: The official repository was still receiving updates.

### Related projects

- cpulimit is related by purpose to Unix process-management tools such as nice and schedulers, but the README distinguishes it by controlling real CPU usage through stop/continue signals rather than priority.

### 来源

- <https://github.com/opsengine/cpulimit>
- <https://raw.githubusercontent.com/opsengine/cpulimit/master/README.md>
- <https://api.github.com/repos/opsengine/cpulimit>
- <https://api.github.com/repos/opsengine/cpulimit/tags>


## 安全说明

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:** cpulimit
- **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 - cpulimit - 3.1-1: normalized package name match | Debian stable package indexes: cpulimit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool for limiting the CPU usage of a process | https://limitcpu.sourceforge.net/
- Nix - cpulimit: normalized package name match | nixpkgs package indexes: pkgs/by-name/cp/cpulimit/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - cpulimit - 3.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: cpulimit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tool for limiting the CPU usage of a process | https://limitcpu.sourceforge.net/
- apk - cpulimit - 0.2-r4: normalized package name match | Alpine Linux edge package indexes: cpulimit from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | CPU usage limiter for Linux | https://github.com/opsengine/cpulimit
- dnf - cpulimit - 0.2^20151118gitf4d2682-5.fc45: normalized package name match | Fedora Rawhide package metadata: cpulimit from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | CPU Usage Limiter for Linux | https://github.com/opsengine/cpulimit
- zypper - cpulimit - 3.2-1.5: normalized package name match | openSUSE Tumbleweed package metadata: cpulimit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Limit the CPU Usage of a Process | https://limitcpu.sourceforge.net


## 相关链接

- [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.
- [daemon](https://pkg.so/zh-hans/brew/daemon/) - Shares pkgdb curated category or tags: cli, process-management, system.
- [killport](https://pkg.so/zh-hans/brew/killport/) - Shares pkgdb curated category or tags: cli, process-management, system.
- [lockrun](https://pkg.so/zh-hans/brew/lockrun/) - Shares pkgdb curated category or tags: cli, process-management, system.
- [procps](https://pkg.so/zh-hans/brew/procps/) - Shares pkgdb curated category or tags: cli, linux, process-management, system.
- [daemonize](https://pkg.so/zh-hans/brew/daemonize/) - Shares pkgdb curated category or tags: cli, process-management, system.
- [procs](https://pkg.so/zh-hans/brew/procs/) - Shares pkgdb curated category or tags: cli, process-management, system.
- [reattach-to-user-namespace](https://pkg.so/zh-hans/brew/reattach-to-user-namespace/) - Shares pkgdb curated category or tags: cli, process-management, system.
- [psgrep](https://pkg.so/zh-hans/brew/psgrep/) - Shares pkgdb curated category or tags: cli, process-management, system.
- [supervisor](https://pkg.so/zh-hans/npm/supervisor/) - Local package facts share a topical domain. Shared terms: cli, management, process, process-management, system.
- [tree-kill](https://pkg.so/zh-hans/npm/tree-kill/) - Local package facts share a topical domain. Shared terms: cli, management, process, process-management, system.

## Combined YAML source

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