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

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

## 安装

```sh
sudo av install brew:yash
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install yash
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install yash
```

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

### Linux

- apk (92%):

```sh
sudo apk add yash
```

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

- dnf (92%):

```sh
sudo dnf install yash
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#yash
```

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

- Ubuntu apt (92%):

```sh
sudo apt install yash
```

  证据: Ubuntu 24.04 LTS package indexes: yash from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

## 软件包事实

- **软件包键:** brew:yash
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/yash>
- **版本:** 2.61
- **来源摘要:** Yet another shell: a POSIX-compliant command-line shell
- **主页:** <https://magicant.github.io/yash/>
- **仓库:** <https://github.com/magicant/yash>
- **上游文档:** <https://magicant.github.io/yash/doc>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://github.com/magicant/yash/releases/download/2.61/yash-2.61.tar.xz>
- **已生成:** 2026-07-26T07:20:29+00:00

## 可执行文件

- yash (cli)
- yash (别名)

## 依赖

- gettext

## macOS 提供的库

- ncurses

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-26
- 管理器版本: 2.61
- 本地数据: OK
- 上游仓库: https://github.com/magicant/yash
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

yash, Yet Another Shell, is Yuki Watanabe's POSIX-focused command-line shell. It aims to be highly POSIX-compliant while still offering interactive conveniences such as completion, prediction, arrays, aliases, extended globbing, and redirection features.

### 项目历史

Upstream NEWS records Yash 2.0 alpha0 as the first 2.x release on 2008-05-26. The project later moved to GitHub; the README says it is maintained on GitHub but was formerly on OSDN, and the GitHub repository was created on 2012-11-24.

A defining thread in Yash history is conformance work. NEWS records POSIX.1-2008 conformance in Yash 2.8 in April 2009, support for the 2013 edition of POSIX.1-2008 in 2.42 in August 2016, and support for POSIX.1-2008 Technical Corrigendum 2 in 2.44 in January 2017. The current README says Yash now fully supports POSIX.1-2024 except for listed limitations.

The project has stayed actively maintained in a conservative shell-tooling style. The README describes stable maintenance releases every three months or so, and GitHub releases show 2.61 published on 2026-03-03.

### 采用历史

Yash's adoption is niche compared with bash, zsh, dash, or fish, but it has a clear role for users who care about POSIX behavior, shell-language edge cases, and an interactive shell that does not primarily chase bash compatibility. Package managers such as Homebrew, MacPorts, Fedora, Nix, and Ubuntu carry it as an alternative shell rather than as a default system shell.

Its maintenance style also attracts shell implementers and portability-minded users: NEWS entries repeatedly track standard changes, built-in behavior, job control, pathname expansion, and line-editing details rather than splashy user-interface pivots.

### 使用方式

Users can run yash as an interactive shell, script interpreter, or login shell. The README documents startup files under `$XDG_CONFIG_HOME/yash/profile` or `~/.yash_profile` for login shells and `$XDG_CONFIG_HOME/yash/rc` or `~/.yashrc` for interactive configuration.

In practice it is useful for POSIX shell testing, portable script development, and users who want a smaller standards-oriented shell with interactive amenities such as command completion, history-based prediction, global aliases, arrays, and extended globbing.

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

yash is package-nerd significant because shells are both applications and compatibility surfaces. Packaging yash gives users a reproducible alternative interpreter for testing scripts against POSIX semantics without replacing the system `/bin/sh`.

It is also a good example of long-haul small-project maintenance: standards tracking, portability fixes, completion updates, and cautious release cadence matter more than branding. That makes it valuable in package collections even when its user base is specialized.

### 时间线

- 2008-05-26: Yash 2.0 alpha0 is recorded as the first 2.x release.
- 2009-04-18: Yash 2.8 NEWS states conformance to POSIX.1-2008.
- 2012-11-24: magicant/yash repository is created on GitHub.
- 2016-08-27: Yash 2.42 adds support for the 2013 edition of POSIX.1-2008.
- 2017-01-17: Yash 2.44 adds support for POSIX.1-2008 Technical Corrigendum 2.
- 2026-03-03: Yash 2.61 is released; the manual version matches 2.61.

### Related projects

- dash and bash are common comparison points for POSIX shell behavior and scripting compatibility.
- zsh and fish occupy the more feature-forward interactive shell space that yash partially overlaps but does not try to clone.
- yash-rs is the upstream author's Rust reimplementation project for a future extended POSIX shell.

### 来源

- <https://api.github.com/repos/magicant/yash>
- <https://api.github.com/repos/magicant/yash/releases?per_page=100>
- <https://github.com/magicant/yash>
- <https://github.com/magicant/yash-rs>
- <https://magicant.github.io/yash/>
- <https://magicant.github.io/yash/doc/>
- <https://raw.githubusercontent.com/magicant/yash/master/NEWS>
- <https://raw.githubusercontent.com/magicant/yash/master/README.md>


## 安全说明

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/yash/profile, ~/.yash_profile, $XDG_CONFIG_HOME/yash/rc, ~/.yashrc
## 源数据库详情

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

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

- Nix - yash: normalized package name match | nixpkgs package indexes: pkgs/by-name/ya/yash/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - yash - 2.55-2: normalized package name match | Ubuntu 24.04 LTS package indexes: yash from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | yet another shell | https://yash.osdn.jp/
- apk - git-yash-completion - 2.60-r0: normalized package name match | Alpine Linux edge package indexes: git-yash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Yash completions for git | https://magicant.github.io/yash/
- apk - openssh-client-yash-completion - 2.60-r0: normalized package name match | Alpine Linux edge package indexes: openssh-client-yash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Yash completions for openssh-client | https://magicant.github.io/yash/
- apk - subversion-yash-completion - 2.60-r0: normalized package name match | Alpine Linux edge package indexes: subversion-yash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Yash completions for subversion | https://magicant.github.io/yash/
- apk - valgrind-yash-completion - 2.60-r0: normalized package name match | Alpine Linux edge package indexes: valgrind-yash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Yash completions for valgrind | https://magicant.github.io/yash/
- apk - yash - 2.60-r0: normalized package name match | Alpine Linux edge package indexes: yash from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Yet another shell | https://magicant.github.io/yash/
- apk - yash-binsh - 2.60-r0: normalized package name match | Alpine Linux edge package indexes: yash-binsh from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | yash as /bin/sh | https://magicant.github.io/yash/
- apk - yash-completion - 2.60-r0: normalized package name match | Alpine Linux edge package indexes: yash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Yet another shell (command-line completion) | https://magicant.github.io/yash/
- apk - yash-doc - 2.60-r0: normalized package name match | Alpine Linux edge package indexes: yash-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Yet another shell (documentation) | https://magicant.github.io/yash/
- dnf - yash - 2.61-1.fc45: normalized package name match | Fedora Rawhide package metadata: yash from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Yet Another SHell | https://github.com/magicant/yash/
- dnf - yash-doc - 2.61-1.fc45: normalized package name match | Fedora Rawhide package metadata: yash-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation for yash | https://github.com/magicant/yash/
- MacPorts - yash: normalized package name match | MacPorts ports tree: shells/yash/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [gettext](https://www.automicvault.com/zh-hans/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [dash-shell](https://www.automicvault.com/zh-hans/pkg/brew/dash-shell/) - Shares av.db curated category or tags: cli, posix, shell, system, unix.
- [etsh](https://www.automicvault.com/zh-hans/pkg/brew/etsh/) - Shares av.db curated category or tags: cli, posix, shell, system, unix.
- [bash](https://www.automicvault.com/zh-hans/pkg/brew/bash/) - Shares av.db curated category or tags: cli, shell, system, unix.
- [execline](https://www.automicvault.com/zh-hans/pkg/brew/execline/) - Shares av.db curated category or tags: cli, posix, shell, system.
- [nq](https://www.automicvault.com/zh-hans/pkg/brew/nq/) - Shares av.db curated category or tags: cli, shell, system, unix.
- [nsh](https://www.automicvault.com/zh-hans/pkg/brew/nsh/) - Shares av.db curated category or tags: cli, posix, shell, system.
- [posh](https://www.automicvault.com/zh-hans/pkg/brew/posh/) - Shares av.db curated category or tags: cli, posix, shell, system.
- [tcsh](https://www.automicvault.com/zh-hans/pkg/brew/tcsh/) - Shares av.db curated category or tags: cli, shell, system, unix.
- [clifm](https://www.automicvault.com/zh-hans/pkg/brew/clifm/) - Local package facts share a topical domain. Shared terms: cli, command-line, gettext, line, shell.

## Combined YAML source

View the package source record on GitHub. [combined/yash.yml](https://github.com/automic-vault/db/blob/main/combined/yash.yml)


## 来源

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