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

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

## 安装

```sh
sudo av install brew:yazi
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install yazi
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install yazi
```

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

### Linux

- apk (92%):

```sh
sudo apk add yazi
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#yazi
```

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

- pacman (92%):

```sh
sudo pacman -S yazi
```

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

- zypper (92%):

```sh
sudo zypper install yazi
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/yazi
```

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

- winget (92%):

```sh
winget install --id sxyazi.yazi -e
```

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

## 软件包事实

- **软件包键:** brew:yazi
- **软件包管理器:** Homebrew
- **版本:** 26.5.6
- **来源摘要:** Blazing fast terminal file manager written in Rust, based on async I/O
- **主页:** <https://yazi-rs.github.io>
- **仓库:** <https://github.com/sxyazi/yazi>
- **最后更新:** 2026-06-15T10:21:24-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ya (别名)
- yazi (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Yazi is a Rust terminal file manager built around non-blocking async I/O. It became notable quickly because it combines the old terminal file-manager niche with newer expectations: image previews, code highlighting, plugin and theme management, cross-platform packaging, and integrations with tools such as ripgrep, fd, fzf, and zoxide.

### 项目历史

The GitHub repository was created in July 2023. The README describes Yazi as a terminal file manager written in Rust, based on non-blocking async I/O, and the official site foregrounds asynchronous I/O, multi-threaded CPU task handling, async task scheduling, multiple image protocols, and pre-cached previewing.

Yazi's architecture grew into a multi-crate Rust workspace with separate crates for the file manager, filesystem, TUI, plugin layer, scheduler, terminal handling, virtual filesystem, and supporting components. The README also documents a concurrent Lua plugin system, a package manager for plugins and themes, and a data-distribution service for cross-instance communication and state persistence.

### 采用历史

Yazi's adoption has been unusually fast for a terminal file manager. The GitHub API showed roughly forty thousand stars by July 2026, and package metadata in the input already shows it present across Homebrew, Alpine, MacPorts, Nix, Arch, Scoop, Winget, and openSUSE-style ecosystems.

Its appeal overlaps with users of ranger, nnn, lf, vifm, and modern terminal workflows: people who want keyboard-first file management but also expect previews, async responsiveness, Lua customization, and clean integration with other fast CLI search/navigation tools.

### 使用方式

Users run yazi for the interactive terminal file manager and ya for helper/package-manager workflows. Common setup involves TOML files for the main config, keymap, and theme plus init.lua for Lua customization.

Practical workflows include browsing large directories without blocking, previewing images or source files in capable terminals, opening files through configured rules, using plugins for custom previews or actions, and integrating with ripgrep, fd, fzf, zoxide, shells, and editors.

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

Yazi is a strong example of a modern CLI package becoming popular because it upgrades an old Unix interaction model without abandoning the terminal. It packages a full interactive app, helper command, config schema, plugin ecosystem, and terminal-media assumptions into a single installable tool.

For package nerds, Yazi is also a useful pressure test for terminal capability packaging: image protocols, optional preview helpers, shell integrations, cross-platform config paths, and plugin distribution all matter more than they would for a simple line-oriented CLI.

### 时间线

- 2023-07-08: The sxyazi/yazi GitHub repository is created.
- 2023-07-19: The first public GitHub release, v0.1.0, is published.
- 2024: Yazi's release stream adds steady feature releases and a nightly build channel.
- 2026-07: The GitHub API shows broad adoption, with about forty thousand stars and active development.

### Related projects

- ranger, lf, nnn, and vifm are neighboring terminal file managers in the same user niche.
- ripgrep, fd, fzf, and zoxide are CLI tools Yazi documents as integrations.
- Chafa and Ueberzug++ are related terminal image-preview tools/protocol helpers mentioned by Yazi documentation.

### 来源

- <https://api.github.com/repos/sxyazi/yazi>
- <https://api.github.com/repos/sxyazi/yazi/releases?per_page=100>
- <https://github.com/sxyazi/yazi>
- <https://yazi-rs.github.io/>
- <https://yazi-rs.github.io/docs/installation>
- <https://yazi-rs.github.io/docs/quick-start>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool 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: ~/.config/yazi/yazi.toml, ~/.config/yazi/keymap.toml, ~/.config/yazi/theme.toml, ~/.config/yazi/init.lua
- Windows: %AppData%\yazi\config\yazi.toml
## 其他软件包管理器记录

- Nix - yazi: normalized package name match | nixpkgs package indexes: pkgs/by-name/ya/yazi/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - yazi - 26.5.6-r0: normalized package name match | Alpine Linux edge package indexes: yazi from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Blazing fast terminal file manager written in Rust, based on async I/O | https://yazi-rs.github.io
- apk - yazi-bash-completion - 26.5.6-r0: normalized package name match | Alpine Linux edge package indexes: yazi-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for yazi | https://yazi-rs.github.io
- apk - yazi-cli - 26.5.6-r0: normalized package name match | Alpine Linux edge package indexes: yazi-cli from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Blazing fast terminal file manager written in Rust, based on async I/O - CLI | https://yazi-rs.github.io
- apk - yazi-doc - 26.5.6-r0: normalized package name match | Alpine Linux edge package indexes: yazi-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Blazing fast terminal file manager written in Rust, based on async I/O (documentation) | https://yazi-rs.github.io
- apk - yazi-fish-completion - 26.5.6-r0: normalized package name match | Alpine Linux edge package indexes: yazi-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for yazi | https://yazi-rs.github.io
- apk - yazi-zsh-completion - 26.5.6-r0: normalized package name match | Alpine Linux edge package indexes: yazi-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for yazi | https://yazi-rs.github.io
- pacman - yazi - 26.5.6-4: normalized package name match | Arch Linux sync databases: yazi from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Blazing fast terminal file manager written in Rust, based on async I/O | https://github.com/sxyazi/yazi
- zypper - yazi - 26.5.6-2.3: normalized package name match | openSUSE Tumbleweed package metadata: yazi from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Blazing fast terminal file manager written in Rust, based on async I/O | https://github.com/sxyazi/yazi
- zypper - yazi-bash-completion - 26.5.6-2.3: normalized package name match | openSUSE Tumbleweed package metadata: yazi-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for yazi | https://github.com/sxyazi/yazi
- zypper - yazi-fish-completion - 26.5.6-2.3: normalized package name match | openSUSE Tumbleweed package metadata: yazi-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for yazi | https://github.com/sxyazi/yazi
- zypper - yazi-zsh-completion - 26.5.6-2.3: normalized package name match | openSUSE Tumbleweed package metadata: yazi-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | ZSH Completion for yazi | https://github.com/sxyazi/yazi
- MacPorts - yazi: normalized package name match | MacPorts ports tree: sysutils/yazi/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/yazi: normalized package name match | Scoop official bucket manifest trees: bucket/yazi.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - sxyazi.yazi: normalized package name match | Windows Package Manager source index: sxyazi.yazi from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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