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

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

## 安装

```sh
sudo av install brew:crun
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install crun
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add crun
```

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

- Debian apt (92%):

```sh
sudo apt install crun
```

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

- dnf (92%):

```sh
sudo dnf install crun
```

  证据: Fedora Rawhide package metadata: crun from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#crun
```

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

- pacman (92%):

```sh
sudo pacman -S crun
```

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

- zypper (92%):

```sh
sudo zypper install crun
```

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

## 软件包事实

- **软件包键:** brew:crun
- **软件包管理器:** Homebrew
- **版本:** 1.28
- **来源摘要:** Fast and lightweight fully featured OCI runtime and C library
- **主页:** <https://github.com/containers/crun>
- **仓库:** <https://github.com/containers/crun>
- **最后更新:** 2026-07-04T23:18:55-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- crun (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.28
## 项目历史与用法

crun is a fast, low-memory OCI container runtime written in C. It is a system package rather than an application framework: users and higher-level tools call it to create and manage containers from OCI runtime bundles.

### 项目历史

The official README frames crun as an alternative implementation of the OCI runtime specification. Its rationale is that a low-level container runtime benefits from being written in C, and that crun can also be used as a library instead of only as an external process.

The public tag history begins with 0.4 in 2019, reaches 1.0 in 2021, and continues through frequent 1.x releases. Recent release notes show steady work on security hardening, cgroups, mount handling, CRIU integration, krun integration, idmapped mounts, and runtime compatibility.

### 采用历史

crun is distributed broadly through Linux and source package ecosystems, including Alpine, Debian, Fedora/DNF, Nix, pacman, Ubuntu, zypper, and Homebrew. Its broad packaging footprint reflects its role as a drop-in OCI runtime option for systems using container engines such as Podman.

### 使用方式

crun is used where OCI runtime compatibility, startup latency, small memory footprint, and C library integration matter. The README compares it with runc, highlights faster startup and lower memory usage, and documents build dependencies across Fedora, RHEL, Ubuntu, Alpine, and openSUSE Tumbleweed.

Package users generally do not invoke crun for application logic; they install it so container engines and scripts can select it as the OCI runtime. Build-time options such as shared libraries and static Nix builds matter for distribution maintainers.

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

crun is important to package history because it made the OCI runtime layer more diverse than the Go-based runc default. Its C implementation, library mode, reproducible static build path through Nix, and heavy distro packaging make it a low-level dependency that package maintainers care about for performance, hardening, and container stack composition.

### 时间线

- 2019: 0.4 public tag
- 2021: 1.0 release
- 2025: 1.25 and 1.26 releases add hardening and CRIU-related changes
- 2026: 1.28 release

### Related projects

- crun implements the Open Containers Initiative runtime specification and is commonly discussed alongside runc, Podman, CRIU, libkrun/krun, Nix, and Linux cgroup/systemd integration.

### 来源

- <https://github.com/containers/crun#readme>
- <https://github.com/containers/crun/blob/main/NEWS>
- <https://github.com/containers/crun/releases>
- <https://github.com/opencontainers/runtime-spec>
- <https://formulae.brew.sh/formula/crun>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

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

- Debian apt - crun - 1.21-1: normalized package name match | Debian stable package indexes: crun from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | lightweight OCI runtime for running containers | https://github.com/containers/crun
- Nix - crun: normalized package name match | nixpkgs package indexes: pkgs/by-name/cr/crun/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - crun - 1.14.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: crun from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | lightweight OCI runtime for running containers | https://github.com/containers/crun
- apk - crun - 1.28-r0: normalized package name match | Alpine Linux edge package indexes: crun from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast and lightweight fully featured OCI runtime and C library for running containers | https://github.com/containers/crun
- apk - crun-doc - 1.28-r0: normalized package name match | Alpine Linux edge package indexes: crun-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast and lightweight fully featured OCI runtime and C library for running containers (documentation) | https://github.com/containers/crun
- apk - crun-static - 1.28-r0: normalized package name match | Alpine Linux edge package indexes: crun-static from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast and lightweight fully featured OCI runtime and C library for running containers (static library) | https://github.com/containers/crun
- dnf - crun - 1.28-2.fc45: normalized package name match | Fedora Rawhide package metadata: crun from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | OCI runtime written in C | https://github.com/containers/crun
- dnf - crun-krun - 1.28-2.fc45: normalized package name match | Fedora Rawhide package metadata: crun-krun from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | crun with libkrun support | https://github.com/containers/crun
- dnf - crun-wasm - 1.28-2.fc45: normalized package name match | Fedora Rawhide package metadata: crun-wasm from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | crun with wasm support | https://github.com/containers/crun
- pacman - crun - 1.28-1: normalized package name match | Arch Linux sync databases: crun from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A fast and lightweight fully featured OCI runtime and C library for running containers | https://github.com/containers/crun
- zypper - crun - 1.28-2.2: normalized package name match | openSUSE Tumbleweed package metadata: crun from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | OCI runtime written in C | https://github.com/containers/crun
- zypper - crun-krun - 1.28-2.2: normalized package name match | openSUSE Tumbleweed package metadata: crun-krun from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | crun with libkrun support | https://github.com/containers/crun


## Combined YAML source

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


## 来源

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