# 使用 Homebrew, apk, MacPorts, Nix, zypper, scoop, winget 安装 lima

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

## 安装

```sh
sudo av install brew:lima
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lima
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lima
```

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

### Linux

- apk (92%):

```sh
sudo apk add lima
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#lima
```

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

- zypper (92%):

```sh
sudo zypper install lima
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/lima
```

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

- winget (92%):

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

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

## 软件包事实

- **软件包键:** brew:lima
- **软件包管理器:** Homebrew
- **版本:** 2.2.0
- **来源摘要:** Linux virtual machines
- **主页:** <https://lima-vm.io/>
- **仓库:** <https://github.com/lima-vm/lima>
- **最后更新:** 2026-07-21T16:32:32Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- apptainer.lima (别名)
- docker.lima (别名)
- kubectl.lima (别名)
- lima (别名)
- limactl (别名)
- nerdctl.lima (别名)
- podman.lima (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Lima, short for Linux Machines, is a command-line tool for running Linux virtual machines with automatic file sharing and port forwarding. It is best known in the macOS developer ecosystem as the low-level VM layer behind container workflows that need a real Linux guest.

### 项目历史

The Lima documentation says the project began in May 2021 to promote containerd and nerdctl to Mac users. Its first GitHub release, v0.1.0, was published in May 2021 and demonstrated a minimal workflow of starting a VM with limactl and running Linux commands through lima.

The project quickly broadened beyond its original containerd focus. Its README describes support for other container engines such as Docker, Podman, and Kubernetes, non-container workloads, and hosts beyond macOS including Linux and NetBSD.

### 采用历史

Lima gained adoption as developers looked for open, scriptable alternatives to heavier desktop container products on macOS, especially after Apple Silicon made VM architecture and filesystem integration more visible in local development. Projects such as Colima and Rancher Desktop used Lima as a building block for friendlier container and Kubernetes experiences.

Lima joined the Cloud Native Computing Foundation as a Sandbox project in September 2022 and was promoted to Incubating in October 2025, reflecting its role as shared infrastructure for cloud-native local development.

### 使用方式

Users create or start named instances with limactl, then run commands inside the guest via the lima wrapper or connect container tools to sockets exposed by the VM. Templates cover common setups such as containerd, Docker, Podman, Kubernetes, and Apptainer.

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

Lima is package-nerd significant because it turns a pile of VM details into a package-manager-friendly CLI. Its Homebrew formula gives macOS users a reproducible way to get Linux containers, port forwarding, file sharing, QEMU or native virtualization choices, and YAML-controlled instances without installing a full GUI product.

### 时间线

- 2021-05: Lima began with the goal of promoting containerd and nerdctl to Mac users.
- 2021-05-14: The v0.1.0 release was published as the first public release.
- 2022-09: Lima joined CNCF as a Sandbox project.
- 2025-10: Lima was promoted to CNCF Incubating.

### Related projects

- Lima is related to containerd, nerdctl, QEMU, Apple's virtualization stack, Docker, Podman, Kubernetes, Colima, and Rancher Desktop. Its positioning is often compared to WSL2 because both provide Linux environments with host integration.

### 来源

- <https://github.com/lima-vm/lima>
- <https://github.com/lima-vm/lima/issues/119>
- <https://github.com/lima-vm/lima/releases/tag/v0.1.0>
- <https://lima-vm.io/docs/>
- <https://lima-vm.io/docs/talks/>


## 安全说明

virtual machine infrastructure.

- **Geiger 风险:** orange / 高
- virtual machine infrastructure


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

- Unix: ${LIMA_HOME:-$HOME/.lima}/<instance>/lima.yaml, ${LIMA_HOME:-$HOME/.lima}/_config/networks.yaml
## 其他软件包管理器记录

- Nix - lima: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/lima/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - lima - 1.2.1-r7: normalized package name match | Alpine Linux edge package indexes: lima from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Linux virtual machine launcher focusing on running containers | https://lima-vm.io/
- apk - lima-bash-completion - 1.2.1-r7: normalized package name match | Alpine Linux edge package indexes: lima-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for lima | https://lima-vm.io/
- apk - lima-doc - 1.2.1-r7: normalized package name match | Alpine Linux edge package indexes: lima-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Linux virtual machine launcher focusing on running containers (documentation) | https://lima-vm.io/
- apk - lima-fish-completion - 1.2.1-r7: normalized package name match | Alpine Linux edge package indexes: lima-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for lima | https://lima-vm.io/
- apk - lima-guestagent - 1.2.1-r7: normalized package name match | Alpine Linux edge package indexes: lima-guestagent from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Lima guest agent | https://lima-vm.io/
- apk - lima-zsh-completion - 1.2.1-r7: normalized package name match | Alpine Linux edge package indexes: lima-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for lima | https://lima-vm.io/
- zypper - lima - 2.2.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: lima from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Linux virtual machines, with a focus on running containers | https://github.com/lima-vm/lima
- MacPorts - lima: normalized package name match | MacPorts ports tree: sysutils/lima/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/lima: normalized package name match | Scoop official bucket manifest trees: bucket/lima.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Lima.Lima: normalized package name match | Windows Package Manager source index: Lima.Lima from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
