# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/container2wasm>
- **版本:** 0.8.4
- **来源摘要:** Container to WASM converter
- **主页:** <https://ktock.github.io/container2wasm-demo/>
- **仓库:** <https://github.com/container2wasm/container2wasm>
- **上游文档:** <https://ktock.github.io/container2wasm-demo/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/container2wasm/container2wasm/archive/refs/tags/v0.8.4.tar.gz>
- **最后更新:** 2026-07-27T22:04:04+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

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

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.8.4
- 管理器更新时间: 2026-07-27
- 本地数据: OK
- 上游仓库: https://github.com/container2wasm/container2wasm
- 检测到的最新版本: v0.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。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

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

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

- 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


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [wasmtime](https://pkg.so/zh-hans/brew/wasmtime/) - Shares pkgdb curated category or tags: cli, developer-tools, wasi, webassembly.
- [wabt](https://pkg.so/zh-hans/brew/wabt/) - Shares pkgdb curated category or tags: cli, developer-tools, wasm, webassembly.
- [wasmer](https://pkg.so/zh-hans/brew/wasmer/) - Shares pkgdb curated category or tags: cli, developer-tools, wasi, webassembly.
- [wasmedge](https://pkg.so/zh-hans/brew/wasmedge/) - Shares pkgdb curated category or tags: cli, developer-tools, wasi, webassembly.
- [cargo-component](https://pkg.so/zh-hans/brew/cargo-component/) - Shares pkgdb curated category or tags: cli, developer-tools, wasm, webassembly.
- [docker](https://pkg.so/zh-hans/brew/docker/) - Shares pkgdb curated category or tags: cli, containers, developer-tools.
- [docker-compose](https://pkg.so/zh-hans/brew/docker-compose/) - Shares pkgdb curated category or tags: cli, containers, developer-tools.
- [docker-buildx](https://pkg.so/zh-hans/brew/docker-buildx/) - Shares pkgdb curated category or tags: cli, containers, developer-tools.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
