# 使用 Homebrew, chocolatey, apt, MacPorts, Nix, pacman, scoop, winget 安装 magic-wormhole

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

## 安装

```sh
sudo av install brew:magic-wormhole
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install magic-wormhole
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install magic-wormhole
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install magic-wormhole
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#magic-wormhole
```

  证据: nixpkgs package indexes: magic-wormhole from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S magic-wormhole
```

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

### Windows

- Chocolatey (92%):

```sh
choco install magic-wormhole
```

  证据: Chocolatey community package catalog: magic-wormhole from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','logexpert'

- Scoop (92%):

```sh
scoop install main/magic-wormhole
```

  证据: Scoop official bucket manifest trees: bucket/magic-wormhole.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id magic-wormhole.magic-wormhole -e
```

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

## 软件包事实

- **软件包键:** brew:magic-wormhole
- **软件包管理器:** Homebrew
- **版本:** 0.24.0
- **来源摘要:** Securely transfers data between computers
- **主页:** <https://magic-wormhole.readthedocs.io/en/latest/>
- **仓库:** <https://github.com/magic-wormhole/magic-wormhole>
- **最后更新:** 2026-06-20T10:48:59Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- magic-wormhole (别名)
- wormhole (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Magic Wormhole is a command-line tool and Python library for moving files, directories, text, and streams from one computer to another using short one-time codes. Its cultural niche is secure ad hoc transfer: the thing you reach for when the two humans can talk but the two computers have no prearranged account, URL, or SSH path.

### 项目历史

Brian Warner's Magic Wormhole repository was created in February 2015. The official documentation presents the project as both a `wormhole` CLI and a Python library, with a protocol built around a mailbox server, optional transit relay, and a PAKE exchange that turns a human-sized code into end-to-end encryption keys.

The project became well known after its PyCon 2016 presentation and early documentation emphasized a memorable UX: one side runs `wormhole send`, the other runs `wormhole receive`, and both type or paste the same short code. Over time the documentation expanded into protocol references for the mailbox server, client-to-client protocol, file-transfer protocol, Tor support, journaled mode, and dilation.

### 采用历史

Magic Wormhole moved from Python package to operating-system package quickly enough that the official installation docs recommend packaged versions first. They document Homebrew on macOS, Debian and Ubuntu packages, openSUSE packages, Chocolatey on Windows, and source installs through `pip`.

The project has broad package-manager presence in the supplied Homebrew input, including Homebrew, Chocolatey, Debian, MacPorts, Nix, pacman, Scoop, Ubuntu, and winget. Its GitHub repository also shows more than twenty thousand stars and hundreds of forks, a strong adoption signal for a small security-oriented CLI.

### 使用方式

The standard file-transfer workflow is `wormhole send FILENAME` on one machine and `wormhole receive` on the other. The sender displays a short code, the receiver enters it, and the clients negotiate a direct or relayed encrypted transfer.

The library is used by other applications that need code-authenticated channels. Official docs point to protocol APIs and related applications, and the ecosystem page lists multiple implementations and clients.

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

Magic Wormhole matters to package people because it is a tiny CLI with a big trust and bootstrap story. It avoids accounts, shared storage, long URLs, SSH setup, and manual key exchange, so it often appears in package collections as the pragmatic secure-transfer utility alongside rsync, scp, croc, and age-like tools.

It is also a protocol family, not just a Python command. The existence of Rust, GUI, mobile, relay, and mailbox-server packages gives package managers a small ecosystem to represent, which is why the original package remains the canonical anchor.

### 时间线

- 2015: Public GitHub repository created.
- 2016: PyCon presentation referenced by official docs.
- 2017: Official docs describe availability in Debian 9 and Ubuntu 17.04 or later.
- 2023: Official docs note several client implementations of the protocol.
- 2026: Repository remains active with many tags and current Python compatibility documentation.

### Related projects

- magic-wormhole.rs is the Rust implementation and CLI variant.
- magic-wormhole-mailbox-server and magic-wormhole-transit-relay provide the relay-side infrastructure.
- Fowl, Warp, Android Wormhole clients, and other ecosystem tools build on the protocol or interoperate with it.

### 来源

- <https://github.com/magic-wormhole/magic-wormhole>
- <https://github.com/magic-wormhole/magic-wormhole/tags>
- <https://magic-wormhole.readthedocs.io/en/latest/>
- <https://magic-wormhole.readthedocs.io/en/latest/welcome.html>
- source_facts.package-manager


## 安全说明

没有找到 magic-wormhole 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


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

- Debian apt - magic-wormhole - 0.18.0-1: normalized package name match | Debian stable package indexes: magic-wormhole from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Securely and simply transfer data between computers | https://github.com/warner/magic-wormhole
- Nix - magic-wormhole: normalized package name match | nixpkgs package indexes: magic-wormhole from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - magic-wormhole - 0.12.0-1.1: normalized package name match | Ubuntu 24.04 LTS package indexes: magic-wormhole from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Securely and simply transfer data between computers | https://github.com/warner/magic-wormhole
- pacman - magic-wormhole - 0.24.0-1: normalized package name match | Arch Linux sync databases: magic-wormhole from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Securely transfer data between computers | https://github.com/magic-wormhole/magic-wormhole
- MacPorts - magic-wormhole: normalized package name match | MacPorts ports tree: net/magic-wormhole/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - magic-wormhole: normalized package name match | Chocolatey community package catalog: magic-wormhole from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','logexpert'
- Scoop - main/magic-wormhole: normalized package name match | Scoop official bucket manifest trees: bucket/magic-wormhole.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - magic-wormhole.magic-wormhole: normalized package name match | Windows Package Manager source index: magic-wormhole.magic-wormhole from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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