# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, winget 安装 incus

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

## 安装

```sh
sudo av install brew:incus
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install incus
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install incus
```

  证据: MacPorts ports tree: net/incus/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add incus
```

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

- Debian apt (92%):

```sh
sudo apt install incus
```

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

- dnf (92%):

```sh
sudo dnf install incus
```

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

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

- pacman (92%):

```sh
sudo pacman -S incus
```

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

- zypper (92%):

```sh
sudo zypper install incus
```

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

### Windows

- winget (92%):

```sh
winget install --id LinuxContainers.Incus -e
```

  证据: Windows Package Manager source index: LinuxContainers.Incus from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:incus
- **软件包管理器:** Homebrew
- **版本:** 7.3
- **来源摘要:** CLI client for interacting with Incus
- **主页:** <https://linuxcontainers.org/incus>
- **仓库:** <https://github.com/lxc/incus>
- **最后更新:** 2026-07-31T23:18:20Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- incus (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Incus is a system container and virtual machine manager from the Linux Containers community. It packages the LXD-style private-cloud workflow under the incus CLI: images, instances, profiles, storage, networking, clustering, and a REST API for running full Linux systems in containers or virtual machines.

### 项目历史

Incus began in 2023 as a community fork of Canonical LXD after LXD moved away from the Linux Containers community. The Incus README says the project was adopted by Linux Containers, is maintained by the same developer team that first created LXD, and remains Apache-2.0 without a contributor license agreement.

The first Incus release was 0.1 on October 7, 2023. The release announcement described it as close to LXD 5.18 while using the fork point to remove or rename legacy interfaces, drop features tied to Canonical-specific infrastructure, switch the guest API from /dev/lxd to /dev/incus, and introduce cleaner CLI flows such as incus snapshot and incus admin.

Incus also inherited the broader Linux Containers ecosystem: LXC for system containers, image distribution through the Linux Containers infrastructure, clustering concepts from LXD, and Cowsql as the community fork of Dqlite used for replicated state.

### 采用历史

Incus adoption followed a migration path from LXD: users who wanted the Linux Containers governance model could keep a familiar API and CLI shape while moving to the incus command and renamed daemon. The README emphasizes usage from a single host to a full rack-scale cluster, and Homebrew metadata in the input shows packages across Homebrew, Alpine, Fedora, Arch, Nix, MacPorts, openSUSE, Debian/Ubuntu development packages, and Windows winget.

### 使用方式

Users run incus to create and manage instances, images, networks, storage pools, profiles, projects, clusters, snapshots, and remotes. The tool is especially common where operators want VM-like full-system environments with container density, or a local private-cloud control plane for development labs, CI workers, and small infrastructure clusters.

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

Incus matters to package people because it is both a package and an ecosystem boundary marker: the package name, binary name, guest device path, config path, service name, and migration story all reflect the LXD-to-Incus governance split. It is also a good example of why package managers preserve community forks quickly when upstream ownership or distribution assumptions change.

For Homebrew specifically, incus is notable because the formula delivers the client-side tool for a Linux-first infrastructure project to macOS users, where the CLI can still manage remote Incus servers.

### 时间线

- 2023: Incus repository created under the lxc GitHub organization.
- 2023: Incus 0.1 released as a community fork roughly equivalent to LXD 5.18.
- 2024: Incus 6.0 LTS established a long-term-support line.
- 2026: Incus 7.0 LTS and 7.x releases continued the post-fork release train.

### Related projects

- LXD is the direct upstream lineage. LXC remains the low-level container technology in the same Linux Containers family. Cowsql is the community fork of Dqlite used by Incus for clustered database state. Zabbly provides commercial packaging support referenced by the Incus README.

### 来源

- <https://discuss.linuxcontainers.org/t/incus-0-1-has-been-released/18036>
- <https://github.com/lxc/incus>
- <https://github.com/lxc/incus/releases/>
- <https://linuxcontainers.org/incus/docs/main/>


## 安全说明

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

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/incus/config.yml
## 其他软件包管理器记录

- Debian apt - golang-github-lxc-incus-dev - 6.0.4-2+deb13u8: normalized package name match | Debian stable package indexes: golang-github-lxc-incus-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Powerful system container and virtual machine manager - library | https://linuxcontainers.org/incus/
- Debian apt - incus - 6.0.4-2+deb13u8: normalized package name match | Debian stable package indexes: incus from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Powerful system container and virtual machine manager - daemon | https://linuxcontainers.org/incus/
- Debian apt - incus-agent - 6.0.4-2+deb13u8: normalized package name match | Debian stable package indexes: incus-agent from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Incus guest agent | https://linuxcontainers.org/incus/
- Debian apt - incus-base - 6.0.4-2+deb13u8: normalized package name match | Debian stable package indexes: incus-base from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Powerful system container and virtual machine manager - daemon (container-only) | https://linuxcontainers.org/incus/
- Debian apt - incus-client - 6.0.4-2+deb13u8: normalized package name match | Debian stable package indexes: incus-client from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Powerful system container and virtual machine manager - client | https://linuxcontainers.org/incus/
- Debian apt - incus-extra - 6.0.4-2+deb13u8: normalized package name match | Debian stable package indexes: incus-extra from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Powerful system container and virtual machine manager - extra tools | https://linuxcontainers.org/incus/
- Nix - incus: normalized package name match | nixpkgs package indexes: pkgs/by-name/in/incus/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - golang-github-lxc-incus-dev - 6.0.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: golang-github-lxc-incus-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Powerful system container and virtual machine manager - library | https://linuxcontainers.org/incus/
- Ubuntu apt - incus - 6.0.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: incus from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Powerful system container and virtual machine manager - daemon | https://linuxcontainers.org/incus/
- Ubuntu apt - incus-agent - 6.0.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: incus-agent from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Incus guest agent | https://linuxcontainers.org/incus/
- Ubuntu apt - incus-client - 6.0.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: incus-client from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Powerful system container and virtual machine manager - client | https://linuxcontainers.org/incus/
- Ubuntu apt - incus-migrate - 6.0.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: incus-migrate from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Incus physical to instance migration tool | https://linuxcontainers.org/incus/
- Ubuntu apt - incus-tools - 6.0.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: incus-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Powerful system container and virtual machine manager - extra tools | https://linuxcontainers.org/incus/
- apk - incus - 7.0.1-r1: normalized package name match | Alpine Linux edge package indexes: incus from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Powerful system container and virtual machine manager | https://github.com/lxc/incus
- apk - incus-agent - 7.0.1-r1: normalized package name match | Alpine Linux edge package indexes: incus-agent from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Incus agent | https://github.com/lxc/incus
- apk - incus-agent-openrc - 7.0.1-r1: normalized package name match | Alpine Linux edge package indexes: incus-agent-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Incus agent OpenRC scripts | https://github.com/lxc/incus


## Combined YAML source

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


## 来源

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