# fish を Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper でインストール

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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## パッケージ情報

- **パッケージキー:** brew:fish
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/fish>
- **バージョン:** 4.8.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.8.1/fish-4.8.1.tar.xz>
- **最終更新:** 2026-07-14T03:39:06Z
- **生成日時:** 2026-08-04T22:13:35+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-08-04
- マネージャ版: 4.8.1
- マネージャ更新日: 2026-07-14
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/fish-shell/fish-shell
- 情報: No cached GitHub release or tag data was available.
## プロジェクトの歴史と使われ方

fish, the friendly interactive shell, is a Unix command-line shell focused on interactive ergonomics: syntax highlighting, autosuggestions, rich completions, a clean scripting language, and useful defaults without extensive configuration.

### プロジェクトの歴史

fish grew as an alternative to traditional POSIX-family interactive shells by choosing user experience over strict POSIX compatibility. Official documentation still calls out that fish is not the default shell and that some behavior differs from bash-like shells, which is central to its identity.

The current upstream repository was created on GitHub in 2012, while the release notes preserve a longer line of 2.x, 3.x, and 4.x releases. Version 3.0.0 arrived in December 2018, 3.7.0 in January 2024, and 4.0.0 in February 2025, after a beta in December 2024.

### 採用の歴史

fish is widely packaged across Unix-like systems. The upstream README documents Homebrew, MacPorts, official installers, Linux packages through openSUSE Build Service and Ubuntu PPAs, WSL, Cygwin, and MSYS2; the Homebrew input also records packages for apk, Debian, Fedora, Nix, pacman, Ubuntu, and zypper.

### 使われ方

Users commonly install fish alongside their system shell, run `fish` from an existing shell to try it, then make it their login shell if the syntax and interactive model fit. Configuration centers on `config.fish`, functions, completions, universal variables, and prompt/theme customization.

### パッケージ好きにとっての重要性

fish matters in package-manager culture because it is both an application and a shell integration target. Packages often ship fish completions, prompts and plugin managers target its function/completion layout, and distributors track changes such as fish 4.x moving more implementation and packaging work into Rust/Cargo-era build requirements.

### タイムライン

- 2012: Current GitHub repository created.
- 2018: fish 3.0.0 released.
- 2024: fish 3.7.0 released.
- 2025: fish 4.0.0 released.
- 2026: fish 4.8.0 released.

### Related projects

- Related projects include bash, zsh, POSIX sh, shell completion packages, prompt frameworks, fish-lsp, and editor integrations for fish scripts.

### ソース

- <https://fishshell.com/>
- <https://fishshell.com/docs/current/>
- <https://fishshell.com/docs/current/relnotes.html>
- <https://github.com/fish-shell/fish-shell>
- <https://github.com/fish-shell/fish-shell/releases>


## セキュリティノート

generalized runtime or code generation signal.

- **Geiger リスク:** yellow / 中
- generalized runtime or code generation signal


## 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: $XDG_CONFIG_HOME/fish/config.fish, ~/.config/fish/config.fish
## ソースデータベース詳細

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

## 他のパッケージマネージャ記録

- Debian apt - fish - 4.0.2-1: normalized package name match | Debian stable package indexes: fish from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | friendly interactive shell | http://fishshell.com/
- Debian apt - fish-common - 4.0.2-1: normalized package name match | Debian stable package indexes: fish-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | friendly interactive shell (architecture-independent files) | http://fishshell.com/
- Nix - fish: normalized package name match | nixpkgs package indexes: pkgs/by-name/fi/fish/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fish - 3.7.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: fish from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | friendly interactive shell | http://fishshell.com/
- Ubuntu apt - fish-common - 3.7.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: fish-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | friendly interactive shell (architecture-independent files) | http://fishshell.com/
- apk - fish - 4.8.1-r0: normalized package name match | Alpine Linux edge package indexes: fish from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Modern interactive commandline shell | https://fishshell.com/
- apk - fish-dev - 4.8.1-r0: normalized package name match | Alpine Linux edge package indexes: fish-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Modern interactive commandline shell (development files) | https://fishshell.com/
- apk - fish-doc - 4.8.1-r0: normalized package name match | Alpine Linux edge package indexes: fish-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Modern interactive commandline shell (documentation) | https://fishshell.com/
- dnf - fish - 4.6.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: fish from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Friendly interactive shell | https://fishshell.com
- pacman - fish - 4.8.1-1: normalized package name match | Arch Linux sync databases: fish from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Smart and user friendly shell intended mostly for interactive use | https://fishshell.com/
- zypper - fish - 4.8.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: fish from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The "friendly interactive shell" | https://fishshell.com/
- zypper - fish-devel - 4.8.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: fish-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Devel files for the fish shell | https://fishshell.com/
- MacPorts - fish: normalized package name match | MacPorts ports tree: shells/fish/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 関連リンク

- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [pcre2](https://pkg.so/ja/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [cmake](https://pkg.so/ja/brew/cmake/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/ja/brew/rust/) - Build dependency declared by Homebrew.
- [sphinx-doc](https://pkg.so/ja/brew/sphinx-doc/) - Build dependency declared by Homebrew.
- [virtualfish](https://pkg.so/ja/brew/virtualfish/) - Popular package that depends on this formula.
- [shc](https://pkg.so/ja/brew/shc/) - Shares pkgdb curated category or tags: cli, developer-tools, shell, unix.
- [bar](https://pkg.so/ja/brew/bar/) - Shares pkgdb curated category or tags: cli, developer-tools, scripting, shell, unix.
- [shellcheck](https://pkg.so/ja/brew/shellcheck/) - Shares pkgdb curated category or tags: cli, developer-tools, shell.
- [zsh](https://pkg.so/ja/brew/zsh/) - Shares pkgdb curated category or tags: cli, developer-tools, scripting, shell, unix.
- [powershell](https://pkg.so/ja/brew/powershell/) - Shares pkgdb curated category or tags: cli, developer-tools, shell.
- [parallel](https://pkg.so/ja/brew/parallel/) - Shares pkgdb curated category or tags: cli, developer-tools, shell.
- [shfmt](https://pkg.so/ja/brew/shfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, shell.
- [sheldon](https://pkg.so/ja/brew/sheldon/) - Shares pkgdb curated category or tags: cli, developer-tools, shell.
- [fizsh](https://pkg.so/ja/brew/fizsh/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, fish, like.

## Combined YAML source

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


## ソース

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