# 使用 Homebrew, Nix 安装 container2wasm

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

## 安装

```sh
sudo av install brew:container2wasm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install container2wasm
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#container2wasm
```

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

## 软件包事实

- **软件包键:** brew:container2wasm
- **软件包管理器:** Homebrew
- **版本:** 0.8.4
- **来源摘要:** Container to WASM converter
- **主页:** <https://ktock.github.io/container2wasm-demo/>
- **仓库:** <https://github.com/container2wasm/container2wasm>
- **最后更新:** 2026-07-27T22:04:04+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- c2w (别名)
- c2w-net (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

container2wasm is an experimental converter that turns container images into WebAssembly artifacts runnable on WASI runtimes or in browsers. It occupies a niche where container packaging meets WebAssembly portability experiments.

### 项目历史

Official releases began with v0.1.0 in February 2023. The README describes support for emulation through Bochs, TinyEMU, and QEMU, along with WASI runtimes such as wasmtime, wamr, wasmer, wasmedge, and wazero.

### 采用历史

Official sources present demos and examples rather than an adopter list. The project is best understood as experimental tooling for developers exploring how existing container images can be repackaged for WebAssembly and browser-hosted environments.

### 使用方式

The main `c2w` command converts a container image such as `ubuntu:22.04` into an output `.wasm` file. The companion `c2w-net` command supports networking experiments for converted WASM images, including browser and WebSocket delegation modes.

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

The package is interesting because it treats a container image as an input artifact rather than as something only a container runtime can execute. For package-manager users, it exposes a command-line bridge between OCI-style image distribution, WASI runtimes, and browser demos.

### 时间线

- 2023: v0.1.0 release published.
- 2025: v0.8.0 release published.
- 2026: v0.8.4 release published.

### Related projects

- The README names WASI runtimes including wasmtime, wamr, wasmer, wasmedge, and wazero, and describes emulation through Bochs, TinyEMU, and QEMU.

### 来源

- <https://github.com/container2wasm/container2wasm#readme>
- <https://ktock.github.io/container2wasm-demo>
- <https://github.com/container2wasm/container2wasm/releases/tag/v0.1.0>
- <https://github.com/container2wasm/container2wasm/releases/tag/v0.8.4>


## 安全说明

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


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

- Nix - container2wasm: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/container2wasm/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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