# 使用 Homebrew, winget, chocolatey, apt, dnf 安装 zero-install

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

## 安装

```sh
sudo av install brew:zero-install
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zero-install
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install 0install
```

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

- dnf (92%):

```sh
sudo dnf install ocaml-0install-solver
```

  证据: Fedora Rawhide package metadata: ocaml-0install-solver from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id ZeroInstall.ZeroInstall -e
```

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

- Chocolatey (92%):

```sh
choco install 0install
```

  证据: Chocolatey community package catalog: 0install from https://community.chocolatey.org/api/v2/Packages()?$filter=IsLatestVersion&$select=Id&$top=1000

## 软件包事实

- **软件包键:** brew:zero-install
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/zero-install>
- **版本:** 2.18
- **来源摘要:** Decentralised cross-platform software installation system
- **主页:** <https://0install.net/>
- **仓库:** <https://github.com/0install/0install>
- **上游文档:** <https://docs.0install.net/>
- **许可证:** LGPL-2.1-or-later
- **源码归档:** <https://github.com/0install/0install/releases/download/v2.18/0install-2.18.tbz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- 0alias (cli)
- 0desktop (cli)
- 0install (cli)
- 0launch (cli)
- 0store (cli)
- 0store-secure-add (cli)
- 0alias (别名)
- 0desktop (别名)
- 0install (别名)
- 0launch (别名)
- 0store (别名)
- 0store-secure-add (别名)

## 依赖

- gnupg

## 构建依赖

- ocaml
- opam
- pkgconf

## macOS 提供的库

- curl

## 安装行为

- 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-07-08
- 管理器版本: 2.18
- 本地数据: OK
- 上游仓库: https://github.com/0install/0install
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Zero Install is a decentralized, cross-platform software installation system that lets upstream developers publish programs from their own websites while users keep dependency solving, updates, signatures, rollbacks, and native package-manager integration.

### 项目历史

Thomas Leonard traces Zero Install's goal back to 2003: secure, cross-platform, decentralized software installation. The earliest implementation was written in C as a Linux kernel module plus user-space helper, but that made Zero Install itself hard to distribute. In 2005 it was redesigned and reimplemented in Python to make bootstrapping easier.

The system's model deliberately complements rather than replaces the operating system package manager. The official docs say 0install packages do not interfere with distribution packages, and that developers publish XML metadata pointing at ordinary tarballs or zip files rather than inventing a new archive format.

The 1.0 release was made on May 23, 2011, and the 2.0 release followed on March 5, 2013. The 2.0 announcement emphasized backwards compatibility with 1.0 feeds while adding more expressive dependencies, native package integration for systems including Arch, Cygwin, Darwin, Fink, and MacPorts, an apps system for rollback, better diagnostics, shell completion, and improved headless support.

In 2013 Leonard migrated the core from Python to OCaml, finishing a 29,215-line port intended to preserve behavior while gaining static typing and faster startup. His 2014 retrospective reports similar code size, around 10x faster operations in simple benchmarks, and improved type-checking reliability.

### 采用历史

Zero Install has always been adoption-challenged in the interesting way decentralized package systems are: it reduces the need for central distro blessing, but depends on upstreams publishing feeds and users trusting the model. Its docs explicitly describe the chicken-and-egg problem where distributions may not package software until popular, while software cannot become popular until it is easy to install.

The supplied package data shows Zero Install available from Homebrew, Chocolatey, Debian, Ubuntu, Fedora-related OCaml packaging, and winget. That breadth reflects a mature cross-platform tool, even if it never displaced mainstream OS package managers.

The project also spread into related implementations and tools, including Zero Install for Windows, .NET components, feed/publishing utilities, and docs for integrating with native distribution package managers.

### 使用方式

Users typically invoke the `0install` family of commands to select and run applications from feed files, create aliases, manage cached implementations, or integrate desktop/menu entries. The model caches each version of a package separately rather than unpacking into system directories.

For developers, the work is feed publication: write XML metadata describing available implementations, dependencies, signatures, and platform constraints, then host it next to upstream software. 0install can use source or binary archives and can satisfy some dependencies from native package managers when appropriate.

Its practical appeal is strongest for cross-platform tools, research software, and upstream-controlled distribution where the author wants updates and dependency metadata without waiting for every distro repository.

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

Zero Install is historically important because it explored a serious alternative to both central distro repositories and ad hoc upstream installers. It tried to preserve package-manager virtues such as dependency solving, shared libraries, signatures, updates, and rollbacks while decentralizing publication.

For package nerds, it is also a case study in bootstrapping and trust. The C kernel-helper origin, Python redesign, OCaml rewrite, XML feed model, digest-based caches, and native package-manager integration all show the tradeoffs of building a package ecosystem that spans distributions without owning them.

Even where Zero Install did not become the default installation path, many of its concerns are now familiar: per-user installs without root, content-addressed caches, reproducible metadata, side-by-side versions, and upstream-controlled distribution.

### 时间线

- 2003: Zero Install's goal of secure, cross-platform, decentralized software installation begins.
- 2005: Project is redesigned and reimplemented in Python to simplify distribution.
- 2011-05-23: Zero Install 1.0 is released.
- 2013-03-05: Zero Install 2.0 is released with backwards-compatible feeds, richer dependency metadata, native package integration, apps/rollback, diagnostics, completion, and headless improvements.
- 2013: Core implementation is migrated from Python toward OCaml.
- 2014-06-06: Thomas Leonard publishes a retrospective on the Python-to-OCaml migration.

### Related projects

- ROX Desktop is historically associated with Zero Install as a desktop environment that used decentralized application installation.
- 0install-win and 0install-dotnet provide Windows/.NET-side Zero Install functionality.
- 0release, 0repo, 0publish, and 0compile are related tools in the Zero Install packaging and release workflow.

### 来源

- <https://0install.net/>
- <https://docs.0install.net/>
- <https://docs.0install.net/about/features/>
- <https://github.com/0install/0install#readme>
- <https://lwn.net/Articles/541676/>
- <https://roscidus.com/blog/blog/2014/06/06/python-to-ocaml-retrospective/>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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


## 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

- Linux: ~/.config/0install.net/injector, /etc/xdg/0install.net/injector
- Windows: %APPDATA%\0install.net\injector, %PROGRAMDATA%\0install.net\injector
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** zero-install
- **Aliases:** 0install
- **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

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

- winget - ZeroInstall.ZeroInstall: normalized package name match | Windows Package Manager source index: ZeroInstall.ZeroInstall from https://cdn.winget.microsoft.com/cache/source.msix
- Debian apt - 0install - 2.18-2.1: installed executable or alias match | Debian stable package indexes: 0install from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | cross-distribution packaging system | http://0install.net/
- Ubuntu apt - 0install - 2.18-2ubuntu2: installed executable or alias match | Ubuntu 24.04 LTS package indexes: 0install from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | cross-distribution packaging system | http://0install.net/
- dnf - ocaml-0install-solver - 2.18-12.fc45: installed executable or alias match | Fedora Rawhide package metadata: ocaml-0install-solver from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Package dependency solver | https://0install.net/
- dnf - ocaml-0install-solver-devel - 2.18-12.fc45: installed executable or alias match | Fedora Rawhide package metadata: ocaml-0install-solver-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for 0install-solver | https://0install.net/
- Chocolatey - 0install: installed executable or alias match | Chocolatey community package catalog: 0install from https://community.chocolatey.org/api/v2/Packages()?$filter=IsLatestVersion&$select=Id&$top=1000


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Package ecosystem packages](https://www.automicvault.com/zh-hans/pkg/package-ecosystem-tools/) - Matched package manager, installer, dependency, registry, or publishing metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [gnupg](https://www.automicvault.com/zh-hans/pkg/brew/gnupg/) - Runtime dependency declared by Homebrew.
- [ocaml](https://www.automicvault.com/zh-hans/pkg/brew/ocaml/) - Build dependency declared by Homebrew.
- [opam](https://www.automicvault.com/zh-hans/pkg/brew/opam/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [meta-package-manager](https://www.automicvault.com/zh-hans/pkg/brew/meta-package-manager/) - Shares av.db curated category or tags: cli, cross-platform, package-management, system.
- [pacapt](https://www.automicvault.com/zh-hans/pkg/brew/pacapt/) - Shares av.db curated category or tags: cli, cross-platform, package-management, system.
- [snap](https://www.automicvault.com/zh-hans/pkg/brew/snap/) - Shares av.db curated category or tags: cli, package-management, system.
- [dpkg](https://www.automicvault.com/zh-hans/pkg/brew/dpkg/) - Shares av.db curated category or tags: cli, package-management, system.
- [fnt](https://www.automicvault.com/zh-hans/pkg/brew/fnt/) - Shares av.db curated category or tags: cli, package-management, system.
- [aspcud](https://www.automicvault.com/zh-hans/pkg/brew/aspcud/) - Shares av.db curated category or tags: cli, package-management, system.
- [cpufetch](https://www.automicvault.com/zh-hans/pkg/brew/cpufetch/) - Shares av.db curated category or tags: cli, cross-platform, system.
- [erdtree](https://www.automicvault.com/zh-hans/pkg/brew/erdtree/) - Shares av.db curated category or tags: cli, cross-platform, system.
- [g-ls](https://www.automicvault.com/zh-hans/pkg/brew/g-ls/) - Local package facts share a topical domain. Shared terms: cli, cross, cross-platform, management, platform.

## Combined YAML source

View the package source record on GitHub. [combined/zero-install.yml](https://github.com/automic-vault/db/blob/main/combined/zero-install.yml)


## 来源

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