Installation Overview
Yazi can be installed through many package managers across all major platforms. Optional dependencies like ffmpeg, 7zip, poppler, fd, ripgrep, fzf, and zoxide unlock additional features but are not required to run Yazi.
If you're on a modern Linux distribution or macOS, Homebrew and the Arch Linux package are the most up-to-date. For the latest features, use cargo install or build from source.
Arch Linux
sudo pacman -S yazi ffmpeg 7zip jq poppler fd ripgrep fzf zoxide resvg imagemagick
Debian / Ubuntu
Yazi provides an official apt repository. Add it and install:
curl -sSL https://deb.griffo.io/install | sh
sudo apt install yazi
Optional dependencies can be installed separately with apt:
sudo apt install ffmpeg 7zip jq poppler-utils fd-find ripgrep fzf zoxide
Fedora / RHEL
sudo dnf copr enable lihaohong/yazi
sudo dnf install yazi
Optional dependencies:
sudo dnf install ffmpeg p7zip jq poppler fd-find ripgrep fzf zoxide resvg ImageMagick
macOS (Homebrew)
brew install yazi ffmpeg-full sevenzip jq poppler fd ripgrep fzf zoxide resvg imagemagick-full
ffmpeg-full and imagemagick-full provide the broadest format support. If you don't need video thumbnails, ffmpeg (lighter) suffices.
Windows
Scoop:
scoop install yazi
Optional dependencies:
scoop install ffmpeg 7zip jq poppler fd ripgrep fzf zoxide
WinGet:
winget install sxyazi.yazi
Nix / NixOS
nix-env -iA nixos.yazi
Or via home-manager:
programs.yazi = {
enable = true;
};
Snap
sudo snap install yazi --classic
Snap packages are confined — some features (like image preview) may be limited.
Flatpak
flatpak run io.github.sxyazi.yazi
Cargo (crates.io)
cargo install --force yazi-build
The --force flag ensures you get the latest version. Requires the Rust toolchain.
Build from Source
git clone https://github.com/sxyazi/yazi.git
cd yazi
cargo build --release --locked
sudo cp target/release/yazi target/release/ya /usr/local/bin/
See the Build from Source guide for detailed instructions including debug builds.
Official Binaries
Pre-compiled binaries for Linux, macOS, and Windows are available on the GitHub Releases page. Download and place them in your PATH.