Cài Yazi trên Debian 12 (Bookworm) bằng musl binary dựng sẵn
Cài Yazi trên Debian 12 (Bookworm) bằng musl binary dựng sẵn
Debian 12 đi kèm GLIBC 2.36, vì vậy bạn phải dùng bản build musl (liên kết tĩnh, không phụ thuộc glibc).
# 1. Tải binary musl dựng sẵn
curl -Lo yazi.zip https://github.com/sxyazi/yazi/releases/latest/download/yazi-x86_64-unknown-linux-musl.zip
# 2. Giải nén bằng busybox (không cần unzip)
busybox unzip yazi.zip
# 3. Cài binary
mv yazi-x86_64-unknown-linux-musl/yazi /usr/local/bin/
mv yazi-x86_64-unknown-linux-musl/ya /usr/local/bin/
# 4. Kiểm tra
yazi --version
Điểm quan trọng:
- Dùng yazi-x86_64-unknown-linux-musl.zip, KHÔNG dùng bản linux-gnu — bản đó yêu cầu GLIBC 2.39 và sẽ lỗi trên Debian 12.
- Nếu trước đó bạn đã cài yazi qua cargo install, hãy xóa trước: rm ~/.cargo/bin/yazi.
- Cần chạy hash -r để xóa cache đường dẫn binary của bash sau khi thay binary cũ.
Dependency tùy chọn (khuyến nghị)
Cài thêm các gói này để dùng đầy đủ tính năng như preview và tìm kiếm:
sudo apt install ffmpeg jq poppler-utils fd-find ripgrep fzf zoxide file
Lưu ý: trên Debian,
fdcó tên làfdfind— tạo symlink bằngln -s $(which fdfind) ~/.local/bin/fd.