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

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

## 安装

```sh
sudo av install brew:fzf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fzf
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fzf
```

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

### Linux

- apk (92%):

```sh
sudo apk add fzf
```

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

- Debian apt (92%):

```sh
sudo apt install fzf
```

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

- dnf (92%):

```sh
sudo dnf install fzf
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#fzf
```

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

- pacman (92%):

```sh
sudo pacman -S fzf
```

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

- zypper (92%):

```sh
sudo zypper install fzf
```

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

### Windows

- Chocolatey (92%):

```sh
choco install fzf
```

  证据: Chocolatey community package catalog: fzf from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','fusioninventory-agent'

- Scoop (92%):

```sh
scoop install main/fzf
```

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

- winget (92%):

```sh
winget install --id junegunn.fzf -e
```

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

## 软件包事实

- **软件包键:** brew:fzf
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/fzf>
- **版本:** 0.74.2
- **来源摘要:** Command-line fuzzy finder written in Go
- **主页:** <https://junegunn.github.io/fzf/>
- **仓库:** <https://github.com/junegunn/fzf>
- **上游文档:** <https://junegunn.github.io/fzf/>
- **许可证:** MIT
- **源码归档:** <https://github.com/junegunn/fzf/archive/refs/tags/v0.74.2.tar.gz>
- **最后更新:** 2026-08-01T03:36:13Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- fzf (cli)
- fzf-preview.sh (cli)
- fzf-tmux (cli)
- fzf (别名)
- fzf-preview.sh (别名)
- fzf-tmux (别名)

## 构建依赖

- go

## macOS 提供的库

- ncurses

## 安装行为

- post-install 钩子: 未定义
- 注意事项: To set up shell integration, see: https://github.com/junegunn/fzf#setting-up-shell-integration To use fzf in Vim, add the following line to your .vimrc: set rtp+=$HOMEBREW_PREFIX/opt/fzf
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.74.2
- 管理器更新时间: 2026-08-01
- 本地数据: OK
- 上游仓库: https://github.com/junegunn/fzf
- 检测到的最新版本: v0.74.2 (当前)
## 项目历史与用法

fzf is a general-purpose command-line fuzzy finder and interactive terminal toolkit. Its README describes it as a fast, portable, programmable single-binary tool for selecting files, browsing command history, previewing data, navigating datasets, and building custom terminal menus.

### 项目历史

The GitHub repository was created in October 2013, and the README copyright line spans 2013-2026. Over time the project expanded from a fuzzy selector into a terminal UI toolkit with preview windows, event bindings, reload actions, shell integrations, Vim and Neovim support, and packaged binaries.

Recent changelog entries show active development in the 0.70 series and later, including popup support for tmux and Zellij, reload tracking, performance improvements, Nushell integration, new preview and border behavior, and HTTP/listen-related enhancements.

### 采用历史

fzf is widely packaged by operating-system and language-adjacent package managers. The official README documents Homebrew, MacPorts, Debian/Ubuntu, Fedora, Alpine, Nix, Arch, FreeBSD, NetBSD, OpenBSD, Gentoo, Spack, Void, Chocolatey, Scoop, Winget, MSYS2, git installs, binary releases, and Vim plugin installation.

### 使用方式

The basic model is Unix-pipeline friendly: fzf reads newline-separated candidates from stdin and writes the selected item to stdout. Without stdin, it can traverse the current directory. Shell integration adds key bindings and fuzzy completion for Bash, Zsh, Fish, and Nushell, while the Vim integration exposes functions and the `:FZF` command.

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

fzf is one of the canonical examples of a small CLI package becoming a platform primitive. Package maintainers care about it because it is not just an executable but also shell scripts, editor integration, completions, optional tmux/Zellij behavior, binary releases, and cross-platform package-manager coverage.

### 时间线

- 2013: GitHub repository created.
- 2013: README copyright period begins.
- 2020: GitHub Releases feed includes release 0.24.0.
- 2026: Release v0.73.1 published.

### Related projects

- The README points to fzf.vim as a separate project for richer Vim commands, fzf-lua for Neovim users who prefer Lua plugins, fzf-tmux for tmux-pane use on older setups, and an official wiki page for related projects.

### 来源

- <https://api.github.com/repos/junegunn/fzf>
- <https://github.com/junegunn/fzf>
- <https://github.com/junegunn/fzf/releases>
- <https://raw.githubusercontent.com/junegunn/fzf/master/CHANGELOG.md>
- <https://raw.githubusercontent.com/junegunn/fzf/master/README-VIM.md>
- <https://raw.githubusercontent.com/junegunn/fzf/master/README.md>


## 安全说明

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: $FZF_DEFAULT_OPTS_FILE, ~/.fzfrc
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fzf
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Debian apt - fzf - 0.60.3-1+b2: normalized package name match | Debian stable package indexes: fzf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | general-purpose command-line fuzzy finder | https://github.com/junegunn/fzf
- Nix - fzf: normalized package name match | nixpkgs package indexes: pkgs/by-name/fz/fzf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fzf - 0.44.1-1: normalized package name match | Ubuntu 24.04 LTS package indexes: fzf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | general-purpose command-line fuzzy finder | https://github.com/junegunn/fzf
- apk - fzf - 0.74.2-r0: normalized package name match | Alpine Linux edge package indexes: fzf from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A command-line fuzzy finder | https://github.com/junegunn/fzf
- apk - fzf-bash-plugin - 0.74.2-r0: normalized package name match | Alpine Linux edge package indexes: fzf-bash-plugin from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash plugin for fzf (completion and key bindings) | https://github.com/junegunn/fzf
- apk - fzf-doc - 0.74.2-r0: normalized package name match | Alpine Linux edge package indexes: fzf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A command-line fuzzy finder (documentation) | https://github.com/junegunn/fzf
- apk - fzf-fish-plugin - 0.74.2-r0: normalized package name match | Alpine Linux edge package indexes: fzf-fish-plugin from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish key bindings for fzf | https://github.com/junegunn/fzf
- apk - fzf-neovim - 0.74.2-r0: normalized package name match | Alpine Linux edge package indexes: fzf-neovim from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | fzf vim plugin for neovim | https://github.com/junegunn/fzf
- apk - fzf-tmux - 0.74.2-r0: normalized package name match | Alpine Linux edge package indexes: fzf-tmux from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Helper script to start fzf in a tmux pane | https://github.com/junegunn/fzf
- apk - fzf-vim - 0.74.2-r0: normalized package name match | Alpine Linux edge package indexes: fzf-vim from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | fzf vim plugin | https://github.com/junegunn/fzf
- apk - fzf-zsh-plugin - 0.74.2-r0: normalized package name match | Alpine Linux edge package indexes: fzf-zsh-plugin from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh plugin for fzf (completion and key bindings) | https://github.com/junegunn/fzf
- dnf - fzf - 0.74.2-1.fc45: normalized package name match | Fedora Rawhide package metadata: fzf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A command-line fuzzy finder written in Go | https://github.com/junegunn/fzf
- pacman - fzf - 0.74.2-1: normalized package name match | Arch Linux sync databases: fzf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Command-line fuzzy finder | https://github.com/junegunn/fzf
- zypper - fzf - 0.74.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: fzf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A command-line fuzzy finder | https://github.com/junegunn/fzf
- zypper - fzf-bash-integration - 0.74.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: fzf-bash-integration from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash completion for fzf | https://github.com/junegunn/fzf
- zypper - fzf-fish-integration - 0.74.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: fzf-fish-integration from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish completion for fzf | https://github.com/junegunn/fzf


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [mycli](https://pkg.so/zh-hans/brew/mycli/) - Popular package that depends on this formula.
- [navi](https://pkg.so/zh-hans/brew/navi/) - Popular package that depends on this formula.
- [forgit](https://pkg.so/zh-hans/brew/forgit/) - Popular package that depends on this formula.
- [git-recent](https://pkg.so/zh-hans/brew/git-recent/) - Popular package that depends on this formula.
- [arttime](https://pkg.so/zh-hans/brew/arttime/) - Popular package that depends on this formula.
- [ugit](https://pkg.so/zh-hans/brew/ugit/) - Popular package that depends on this formula.
- [purr](https://pkg.so/zh-hans/brew/purr/) - Popular package that depends on this formula.
- [television](https://pkg.so/zh-hans/brew/television/) - Shares pkgdb curated category or tags: cli, developer-tools, fuzzy-finder, search, terminal.
- [sk](https://pkg.so/zh-hans/brew/sk/) - Shares pkgdb curated category or tags: cli, developer-tools, fuzzy-finder, search, terminal.
- [micro](https://pkg.so/zh-hans/brew/micro/) - Shares pkgdb curated category or tags: cli, developer-tools, go, terminal.
- [jjui](https://pkg.so/zh-hans/brew/jjui/) - Shares pkgdb curated category or tags: cli, developer-tools, go, terminal.
- [peco](https://pkg.so/zh-hans/brew/peco/) - Shares pkgdb curated category or tags: cli, developer-tools, go, terminal.
- [ddgr](https://pkg.so/zh-hans/brew/ddgr/) - Shares pkgdb curated category or tags: cli, developer-tools, search, terminal.
- [fzy](https://pkg.so/zh-hans/brew/fzy/) - Shares pkgdb curated category or tags: cli, developer-tools, fuzzy-finder, terminal.
- [gat](https://pkg.so/zh-hans/brew/gat/) - Shares pkgdb curated category or tags: cli, developer-tools, go, terminal.
- [fzf-make](https://pkg.so/zh-hans/brew/fzf-make/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, finder, fuzzy.

## Combined YAML source

View the package source record on GitHub. [combined/fzf.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fzf.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
