# 使用 Homebrew, apk, MacPorts, Nix, pacman, zypper 安装 xplr

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

## 安装

```sh
sudo av install brew:xplr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install xplr
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install xplr
```

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

### Linux

- apk (92%):

```sh
sudo apk add xplr
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#xplr
```

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

- pacman (92%):

```sh
sudo pacman -S xplr
```

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

- zypper (92%):

```sh
sudo zypper install xplr
```

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

## 软件包事实

- **软件包键:** brew:xplr
- **软件包管理器:** Homebrew
- **版本:** 1.1.0
- **来源摘要:** Hackable, minimal, fast TUI file explorer
- **主页:** <https://xplr.dev>
- **仓库:** <https://github.com/sayanarijit/xplr>
- **最后更新:** 2026-06-22T14:06:42-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- xplr (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

xplr is a Rust terminal file explorer built around hackability rather than replacing the shell. Its own documentation frames it as a keyboard-controlled, real-time interface that orchestrates existing file-system tools.

### 项目历史

The project appeared in the early 2020s as a TUI file explorer in the same cultural space as nnn, fzf, ranger-like panes, and Neovim-style keyboard workflows. Its README says xplr is not meant to replace standard shell commands or GUI file managers, but to integrate them through a scriptable terminal interface.

A key turning point was the v0.10 era in May 2021, when maintainer Sayanarijit announced that xplr had moved away from YAML and embraced embedded LuaJIT, explicitly citing Neovim as an inspiration. The stated reasons were portability, safer customization than shell snippets, richer scriptability, speed, and a plugin community model.

The official upgrade guide marks v1.0.0 as the first stable release and says xplr v1 could be considered feature complete, with no immediate plan for v2. Subsequent development has focused on maintenance, performance, and incremental ergonomic features rather than repeatedly reshaping the tool.

### 采用历史

xplr adoption is strongest among terminal-heavy users who want a visual navigator without leaving shell composition behind. The README points to Homebrew, crates.io, documentation, hacks, plugins, integrations, reviews, and Repology packaging, showing a project whose ecosystem is as much about configuration and plugins as the core binary.

The official docs list many plugins and integrations: dual-pane and tri-pane layouts, fzf integration, clipboard support, terminal integration, tree view, disk-usage tools, drag-and-drop helpers, and a plugin manager. That is the real adoption story: users extend xplr into their terminal workflow rather than treating it as a fixed file manager.

### 使用方式

Users launch xplr inside a directory, navigate with modal key bindings, select paths, and either perform built-in file operations or hand paths to external commands. It can print selected paths or the current directory on quit, which makes it useful inside shell aliases and editor workflows.

Configuration lives in Lua, usually at ~/.config/xplr/init.lua. The documented model exposes modes, messages, key bindings, layouts, hooks, and Lua function calls, so practical use often becomes a small personal TUI environment rather than a stock file browser.

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

xplr is a good example of the post-2010s terminal renaissance: Rust implementation, TUI ergonomics, Lua customization, Neovim influence, fzf-style searching, and package-manager distribution all in one small binary.

For package catalogs, it sits between classic file managers and programmable launchers. Its significance is not mass desktop adoption; it is the way it packages a hackable terminal workflow that expects to collaborate with other command-line tools.

### 时间线

- 2021-04-15: An early public tag, v0.4.4, is visible in repository history.
- 2021-05-23: The maintainer announced the v0.10 move from YAML to embedded LuaJIT.
- 2022-10-28: v0.20.0 entered the long 0.20/0.21 maturation period.
- 2025-03-21: v1.0.0 was published as the first stable, feature-complete v1 release.
- 2025-12-08: v1.1.0 shipped with no breaking changes and performance improvements for large directories.

### Related projects

- nnn and fzf: terminal-navigation influences and related tools mentioned by the xplr community.
- Neovim: the explicit model for embedding Lua to grow a customization and plugin ecosystem.
- ranger-style pane file managers: a neighboring workflow represented by xplr plugins such as tri-pane.xplr.

### 来源

- <https://github.com/sayanarijit/xplr>
- <https://github.com/sayanarijit/xplr/discussions/183>
- <https://github.com/sayanarijit/xplr/releases/tag/v1.0.0>
- <https://github.com/sayanarijit/xplr/releases/tag/v1.1.0>
- <https://xplr.dev/en/awesome-plugins>
- <https://xplr.dev/en/introduction>
- <https://xplr.dev/en/upgrade-guide>


## 安全说明

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/xplr/init.lua, /etc/xplr/init.lua
## 其他软件包管理器记录

- Nix - xplr: normalized package name match | nixpkgs package indexes: pkgs/by-name/xp/xplr/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - xplr - 1.1.0-r0: normalized package name match | Alpine Linux edge package indexes: xplr from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Hackable, minimal, fast TUI file explorer | https://xplr.dev
- apk - xplr-doc - 1.1.0-r0: normalized package name match | Alpine Linux edge package indexes: xplr-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Hackable, minimal, fast TUI file explorer (documentation) | https://xplr.dev
- pacman - xplr - 1.0.1-1: normalized package name match | Arch Linux sync databases: xplr from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A hackable, minimal, fast TUI file explorer | https://github.com/sayanarijit/xplr
- zypper - xplr - 1.0.1-1.5: normalized package name match | openSUSE Tumbleweed package metadata: xplr from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | TUI file explorer | https://github.com/sayanarijit/xplr
- MacPorts - xplr: normalized package name match | MacPorts ports tree: sysutils/xplr/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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