# 使用 Homebrew, MacPorts, apk, apt, dnf, Nix, zypper 安装 macpine

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

## 安装

```sh
sudo av install brew:macpine
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install macpine
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install macpine
```

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

### Linux

- apk (92%):

```sh
sudo apk add alpine
```

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

- Debian apt (92%):

```sh
sudo apt install alpine
```

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

- dnf (92%):

```sh
sudo dnf install alpine
```

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

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

- zypper (92%):

```sh
sudo zypper install alpine
```

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

## 软件包事实

- **软件包键:** brew:macpine
- **软件包管理器:** Homebrew
- **版本:** 1.1.5
- **来源摘要:** Lightweight Linux VMs on MacOS
- **主页:** <https://beringresearch.github.io/macpine/>
- **仓库:** <https://github.com/beringresearch/macpine>
- **最后更新:** 2026-07-29T17:04:49+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- alpine (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

macpine is a macOS command-line tool for creating and managing lightweight Alpine Linux virtual machines. Its official documentation presents it as a way for macOS users to run small Linux environments with port forwarding, file sharing, bridged networking, and both aarch64 and x86_64 emulation.

### 项目历史

The project is maintained by Bering Research and published from the official GitHub repository with generated MkDocs documentation. The README and site describe a focused goal: make Alpine Linux VMs easy to spin up on macOS for containerization, architecture testing, and software build workflows.

### 采用历史

macpine is distributed through package managers used by Mac developers, including Homebrew and MacPorts according to its official README and the supplied package facts. GitHub metadata shows a public project with releases, stars, forks, and a Go codebase, which points to a small but visible niche around local Linux-on-Mac workflows.

### 使用方式

The installed command is `alpine`. Common workflows include `alpine launch` to create a VM, architecture and resource flags for customized instances, `alpine ssh` and `alpine exec` to enter or run commands, and `alpine publish` and `alpine import` for instance archive sharing.

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

Package maintainers care about macpine because it packages a repeatable Alpine VM workflow behind a small CLI rather than asking users to wire together QEMU, networking, shared folders, and shell glue themselves. It is especially relevant on Apple Silicon, where architecture emulation and lightweight Linux test environments are common developer needs.

### 时间线

- Public repository: Official GitHub repository tracks the project and its release tags.
- 2025: GitHub repository page lists v1.1.5 as the latest release on Oct 31, 2025.

### Related projects

- macpine is adjacent to QEMU, Alpine Linux, Docker, Incus, and LXD. Its documentation explicitly names containerization technologies as a reason to run tiny Alpine VM environments on macOS.

### 来源

- <https://beringresearch.github.io/macpine/>
- <https://github.com/beringresearch/macpine>
- source_facts.package-manager


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service

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

- MacPorts - macpine: normalized package name match | MacPorts ports tree: sysutils/macpine/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- MacPorts - alpine: installed executable or alias match | MacPorts ports tree: mail/alpine/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - alpine - 2.26+dfsg-3: installed executable or alias match | Debian stable package indexes: alpine from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Text-based email client, friendly for novices but powerful | https://alpineapp.email/
- Debian apt - alpine-doc - 2.26+dfsg-3: installed executable or alias match | Debian stable package indexes: alpine-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Text-based email client's documentation | https://alpineapp.email/
- Debian apt - alpine-pico - 2.26+dfsg-3: installed executable or alias match | Debian stable package indexes: alpine-pico from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Simple text editor from Alpine, a text-based email client | https://alpineapp.email/
- Debian apt - pilot - 2.26+dfsg-3: installed executable or alias match | Debian stable package indexes: pilot from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Simple file browser from Alpine, a text-based email client | https://alpineapp.email/
- Nix - alpine: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/al/alpine/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - alpine - 2.26+dfsg-1build3: installed executable or alias match | Ubuntu 24.04 LTS package indexes: alpine from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Text-based email client, friendly for novices but powerful | http://alpine.x10host.com/alpine/
- Ubuntu apt - alpine-doc - 2.26+dfsg-1build3: installed executable or alias match | Ubuntu 24.04 LTS package indexes: alpine-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Text-based email client's documentation | http://alpine.x10host.com/alpine/
- Ubuntu apt - alpine-pico - 2.26+dfsg-1build3: installed executable or alias match | Ubuntu 24.04 LTS package indexes: alpine-pico from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Simple text editor from Alpine, a text-based email client | http://alpine.x10host.com/alpine/
- Ubuntu apt - pilot - 2.26+dfsg-1build3: installed executable or alias match | Ubuntu 24.04 LTS package indexes: pilot from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Simple file browser from Alpine, a text-based email client | http://alpine.x10host.com/alpine/
- apk - alpine - 2.26-r5: installed executable or alias match | Alpine Linux edge package indexes: alpine from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Text-based email client, friendly for novices but powerful | https://repo.or.cz/alpine.git
- apk - alpine-dbg - 2.26-r5: installed executable or alias match | Alpine Linux edge package indexes: alpine-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Text-based email client, friendly for novices but powerful (debug symbols) | https://repo.or.cz/alpine.git
- apk - alpine-doc - 2.26-r5: installed executable or alias match | Alpine Linux edge package indexes: alpine-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Text-based email client, friendly for novices but powerful (documentation) | https://repo.or.cz/alpine.git
- dnf - alpine - 2.26-24.fc45: installed executable or alias match | Fedora Rawhide package metadata: alpine from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Powerful, easy to use console email client | https://alpineapp.email/
- zypper - alpine - 2.26-31.3: installed executable or alias match | openSUSE Tumbleweed package metadata: alpine from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Mail User Agent | https://alpineapp.email/


## Combined YAML source

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