# 使用 Homebrew, apt 安装 snap

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

## 安装

```sh
sudo av install brew:snap
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install snap
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install snap
```

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

## 软件包事实

- **软件包键:** brew:snap
- **软件包管理器:** Homebrew
- **版本:** 2.76
- **来源摘要:** Tool to work with .snap files
- **主页:** <https://snapcraft.io/>
- **仓库:** <https://github.com/canonical/snapd>
- **最后更新:** 2026-07-28T13:36:18-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- snap (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

snap is the command-line interface provided by snapd for working with .snap packages and the Snap ecosystem.

### 项目历史

The official snapd repository was created in October 2015. Snapcraft documentation describes snaps as self-contained packages across Linux distributions, while snapd handles installation, confinement, and updates.

### 采用历史

Official Ubuntu installation docs say snap is pre-installed and ready to use on Ubuntu 16.04 LTS and later. The supplied metadata shows Homebrew, Debian, and Ubuntu packaging.

### 使用方式

Users run snap list, snap install, snap refresh, snap remove, and snap run to manage installed snaps. Advanced functionality is documented as command-line oriented even when graphical package managers are available.

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

snap is significant because it is both a package format interface and a distribution mechanism: snapd manages confinement, automatic updates, channels, revisions, assertions, and cross-distribution installation semantics.

### 时间线

- 2015: Official snapd GitHub repository created.
- 2016: Ubuntu 16.04 LTS and later include snap support by default according to official docs.
- 2026: Official docs describe snapd as handling installation, confinement, and updates across Linux distributions.

### Related projects

- snapd
- Snapcraft
- Snap Store
- Ubuntu Core

### 来源

- <https://api.github.com/repos/canonical/snapd>
- <https://github.com/canonical/snapd>
- <https://snapcraft.io/docs/>
- <https://snapcraft.io/docs/reference/glossary/>
- <https://snapcraft.io/docs/tutorials/get-started/>
- <https://snapcraft.io/docs/tutorials/install-the-daemon/ubuntu/>
- input source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - snap - 2013-11-29-11: normalized package name match | Debian stable package indexes: snap from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | location of genes from DNA sequence with hidden markov model | https://github.com/KorfLab/SNAP
- Ubuntu apt - snap - 2013-11-29-11: normalized package name match | Ubuntu 24.04 LTS package indexes: snap from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | location of genes from DNA sequence with hidden markov model | https://github.com/KorfLab/SNAP


## Combined YAML source

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