# 安装 fish

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

## 安装

```sh
sudo av install brew:fish
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fish
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fish
```

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

### Linux

- apk (92%):

```sh
sudo apk add fish
```

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

- Debian apt (92%):

```sh
sudo apt install fish
```

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

- dnf (92%):

```sh
sudo dnf install fish
```

  证据: Fedora Rawhide package metadata: fish from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#fish
```

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

- pacman (92%):

```sh
sudo pacman -S fish
```

  证据: Arch Linux sync databases: fish from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install fish
```

  证据: openSUSE Tumbleweed package metadata: fish from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

## 软件包事实

- **软件包键:** brew:fish
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/fish>
- **版本:** 4.7.1
- **来源摘要:** User-friendly command-line shell for UNIX-like operating systems
- **主页:** <https://fishshell.com>
- **仓库:** <https://github.com/fish-shell/fish-shell>
- **上游文档:** <https://fishshell.com>
- **许可证:** GPL-2.0-only
- **源码归档:** <https://github.com/fish-shell/fish-shell/releases/download/4.7.1/fish-4.7.1.tar.xz>
- **更新:** 2026-05-07T18:27:33Z
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- fish (cli)
- fish_indent (cli)
- fish_key_reader (cli)
- fish (别名)
- fish_indent (别名)
- fish_key_reader (别名)

## 依赖

- pcre2

## 构建依赖

- cmake
- rust
- sphinx-doc

## 安装行为

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

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 4.7.1
- 管理器更新时间: 2026-05-07
- 本地数据: ok
- 上游仓库: https://github.com/fish-shell/fish-shell
- info: No cached GitHub release or tag data was available.

## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / medium
- generalized runtime or code generation signal

## 相关链接

- [pcre2](https://www.automicvault.com/pkg/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [sphinx-doc](https://www.automicvault.com/pkg/brew/sphinx-doc/) - Build dependency declared by Homebrew.
- [fisher](https://www.automicvault.com/pkg/brew/fisher/) - Popular package that depends on this formula.
- [virtualfish](https://www.automicvault.com/pkg/brew/virtualfish/) - Popular package that depends on this formula.
- [chruby-fish](https://www.automicvault.com/pkg/brew/chruby-fish/) - Popular package that depends on this formula.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/)

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
