# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 lsd

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

## 安装

```sh
sudo av install brew:lsd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lsd
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lsd
```

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

### Linux

- apk (92%):

```sh
sudo apk add lsd
```

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

- Debian apt (92%):

```sh
sudo apt install lsd
```

  证据: Debian stable package indexes: lsd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install lsd
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#lsd
```

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

- pacman (92%):

```sh
sudo pacman -S lsd
```

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

- zypper (92%):

```sh
sudo zypper install lsd
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/lsd
```

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

- winget (92%):

```sh
winget install --id lsd-rs.lsd -e
```

  证据: Windows Package Manager source index: lsd-rs.lsd from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:lsd
- **软件包管理器:** Homebrew
- **版本:** 1.2.0
- **来源摘要:** Clone of ls with colorful output, file type icons, and more
- **主页:** <https://github.com/lsd-rs/lsd>
- **仓库:** <https://github.com/lsd-rs/lsd>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lsd (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

lsd is a Rust implementation of a modern `ls`-style file-listing command with color, icons, themes, and configuration.

### 项目历史

The official repository describes lsd as 'the next gen ls command'. It was created on GitHub in November 2018 and early releases appeared in December 2018, followed by v1.0.0 in August 2023 and v1.2.0 in October 2025.

The README documents a familiar package-manager installation matrix across Linux distributions, macOS, BSDs, Windows, and source builds. It also credits the colorls project and sharkdp's fd project for inspiration and CI ideas.

### 采用历史

lsd has become one of the best-known modern `ls` replacements in package-manager culture. GitHub metadata showed about 16k stars and over 500 forks by July 2026, and the supplied package-manager facts list Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Scoop, Ubuntu, WinGet, and openSUSE.

Its adoption follows the broader terminal-aesthetics wave around Nerd Fonts, icons, themes, and Rust CLI tools: users often install it alongside shells, prompt themes, and other replacements for classic Unix commands.

### 使用方式

Users run `lsd` directly or alias `ls` to `lsd` in shell startup files. The README documents icon prerequisites, package-manager installation commands, and optional shell configuration.

Customization is via `config.yaml`, `colors.yaml`, and `icons.yaml` under the lsd configuration directory. On Unix-like systems the README says lsd follows XDG and checks `$HOME/.config/lsd` and `$XDG_CONFIG_HOME/lsd`; on Windows it checks `%USERPROFILE%\.config\lsd` and `%APPDATA%\lsd`.

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

lsd is significant because it packages a complete modern terminal visual style into a small command. For package nerds, it is the canonical example of a Rust CLI replacing a core Unix affordance while still fitting naturally into Homebrew, distro repositories, and Windows package managers.

### 时间线

- 2018: GitHub repository created and early 0.x releases published.
- 2023: v1.0.0 released.
- 2025: v1.2.0 released.
- 2026: GitHub metadata shows broad adoption and continued activity.

### Related projects

- lsd is related to GNU/BSD `ls`, colorls, exa/eza, Nerd Fonts, Font Awesome, and the wider Rust CLI ecosystem.

### 来源

- <https://api.github.com/repos/lsd-rs/lsd>
- <https://api.github.com/repos/lsd-rs/lsd/releases?per_page=100>
- <https://github.com/lsd-rs/lsd>
- <https://raw.githubusercontent.com/lsd-rs/lsd/master/README.md>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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/lsd/config.yaml, ~/.config/lsd/colors.yaml, ~/.config/lsd/icons.yaml, $XDG_CONFIG_HOME/lsd/config.yaml, $XDG_CONFIG_HOME/lsd/colors.yaml, $XDG_CONFIG_HOME/lsd/icons.yaml
- Windows: %USERPROFILE%\.config\lsd\config.yaml, %USERPROFILE%\.config\lsd\colors.yaml, %USERPROFILE%\.config\lsd\icons.yaml, %APPDATA%\lsd\config.yaml, %APPDATA%\lsd\colors.yaml, %APPDATA%\lsd\icons.yaml
## 其他软件包管理器记录

- Debian apt - lsd - 1.1.5-5+b1: normalized package name match | Debian stable package indexes: lsd from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | ls command with a lot of pretty colors and some other stuff | https://github.com/lsd-rs/lsd
- Nix - lsd: normalized package name match | nixpkgs package indexes: pkgs/by-name/ls/lsd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - lsd - 1.0.0-2: normalized package name match | Ubuntu 24.04 LTS package indexes: lsd from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | ls command with a lot of pretty colors and some other stuff
- apk - lsd - 1.2.0-r1: normalized package name match | Alpine Linux edge package indexes: lsd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Next-Gen ls command | https://github.com/lsd-rs/lsd
- apk - lsd-bash-completion - 1.2.0-r1: normalized package name match | Alpine Linux edge package indexes: lsd-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for lsd | https://github.com/lsd-rs/lsd
- apk - lsd-fish-completion - 1.2.0-r1: normalized package name match | Alpine Linux edge package indexes: lsd-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for lsd | https://github.com/lsd-rs/lsd
- apk - lsd-zsh-completion - 1.2.0-r1: normalized package name match | Alpine Linux edge package indexes: lsd-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for lsd | https://github.com/lsd-rs/lsd
- dnf - lsd - 1.2.0-7.fc45: normalized package name match | Fedora Rawhide package metadata: lsd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Ls command with a lot of pretty colors and some other stuff | https://crates.io/crates/lsd
- pacman - lsd - 1.2.0-2: normalized package name match | Arch Linux sync databases: lsd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Modern ls with a lot of pretty colors and awesome icons | https://github.com/lsd-rs/lsd
- zypper - lsd - 1.2.0-1.5: normalized package name match | openSUSE Tumbleweed package metadata: lsd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Ls command with a lot of pretty colors and some other stuff | https://crates.io/crates/lsd
- MacPorts - lsd: normalized package name match | MacPorts ports tree: sysutils/lsd/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/lsd: normalized package name match | Scoop official bucket manifest trees: bucket/lsd.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - lsd-rs.lsd: normalized package name match | Windows Package Manager source index: lsd-rs.lsd from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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