# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 feh

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

## 安装

```sh
sudo av install brew:feh
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install feh
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install feh
```

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

### Linux

- apk (92%):

```sh
sudo apk add feh
```

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

- Debian apt (92%):

```sh
sudo apt install feh
```

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

- dnf (92%):

```sh
sudo dnf install feh
```

  证据: Fedora Rawhide package metadata: feh 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#feh
```

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

- pacman (92%):

```sh
sudo pacman -S feh
```

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

- zypper (92%):

```sh
sudo zypper install feh
```

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

## 软件包事实

- **软件包键:** brew:feh
- **软件包管理器:** Homebrew
- **版本:** 3.12.2
- **来源摘要:** X11 image viewer
- **主页:** <https://feh.finalrewind.org/>
- **最后更新:** 2026-05-07T21:04:39Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- feh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

feh is a lightweight X11 image viewer and cataloguer aimed at command-line users. Its official manual and homepage emphasize a Unix-style workflow: run it from a shell, feed it files, directories, URLs, or filelists, and control it through options, key bindings, mouse bindings, stdin, and signals.

### 项目历史

The project has been maintained for many years as a small, focused image viewer built around imlib2 and X11 rather than a desktop photo-management stack. The public release archive documents continuous 1.x, 2.x, and 3.x releases from at least 2010 through 2026, with release notes focused on practical viewer behavior, build portability, security hardening, and window-manager edge cases.

feh 2.0 was released in 2011 according to the project changelog, and the 3.x line is still active: the official archive lists feh 3.12.2 on 2026-05-07. Recent releases continue the same pattern, including fixes for Xwayland focus behavior, reproducible manual builds, filelist parsing, rendering bugs, and safer shell format specifiers for actions and info commands.

### 采用历史

The official homepage notes packaging across multiple Unix and Unix-like systems, including Arch Linux, Debian, FreeBSD, OpenBSD, and Ubuntu. Homebrew, MacPorts, Nix, Fedora, openSUSE, Alpine, and other package collections also carry it in the supplied package-manager metadata, which matches feh's long role as a standard small image viewer for lightweight X11 environments.

### 使用方式

Common usage centers on fast image viewing from the shell, slideshows over directories, thumbnail and index generation, listing image metadata, opening URLs when libcurl support is enabled, and setting X11 backgrounds. The manual also documents custom shell actions, filelists, captions, EXIF display, configurable keys/buttons, and cache behavior.

Its wallpaper-setting mode is one reason package users keep it installed even when they use another image viewer interactively: window-manager and dotfile setups can call feh from startup scripts to set backgrounds without pulling in a desktop environment.

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

feh matters to package-manager culture because it is the classic small-tool answer to image viewing on X11: scriptable, dependency-light, easy to build, and comfortable in shell pipelines and window-manager configs.

It also illustrates a maintenance style package maintainers like: conservative release notes, clear compile-time feature flags, signed tarballs, a man page, and a project homepage that documents downstream packaging without turning the tool into a platform.

### 时间线

- 2010: Official archive shows active 1.x releases, including feh 1.3.5 and later 1.x versions.
- 2011: feh 2.0 released.
- 2019: feh 3.0 released.
- 2026: feh 3.12.2 released on 2026-05-07.

### Related projects

- imlib2 is the image-loading/rendering library underlying feh's supported image formats.
- ImageMagick can be used by feh for optional conversion of otherwise unsupported file types.
- xwallpaper, hsetroot, and display from ImageMagick occupy adjacent shell-driven image and wallpaper workflows, but feh remains popular because it combines viewing, listing, slideshow, and wallpaper duties.

### 来源

- <https://feh.finalrewind.org/>
- <https://man.finalrewind.org/1/feh>
- <https://feh.finalrewind.org/archive/>
- <https://raw.githubusercontent.com/derf/feh/master/ChangeLog>


## 安全说明

没有找到 feh 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## 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: $XDG_CONFIG_HOME/feh/themes, $XDG_CONFIG_HOME/feh/keys, $XDG_CONFIG_HOME/feh/buttons, ~/.config/feh/themes, ~/.config/feh/keys, ~/.config/feh/buttons, /etc/feh/themes, /etc/feh/keys, /etc/feh/buttons
## 其他软件包管理器记录

- Debian apt - feh - 3.10.3-1: normalized package name match | Debian stable package indexes: feh from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | imlib2 based image viewer | https://feh.finalrewind.org/
- Nix - feh: normalized package name match | nixpkgs package indexes: pkgs/by-name/fe/feh/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - feh - 3.10.1-1build3: normalized package name match | Ubuntu 24.04 LTS package indexes: feh from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | imlib2 based image viewer | https://feh.finalrewind.org/
- apk - feh - 3.12.2-r0: normalized package name match | Alpine Linux edge package indexes: feh from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast, lightweight image viewer which uses imlib2 | https://feh.finalrewind.org
- apk - feh-doc - 3.12.2-r0: normalized package name match | Alpine Linux edge package indexes: feh-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fast, lightweight image viewer which uses imlib2 (documentation) | https://feh.finalrewind.org
- dnf - feh - 3.12.2-3.fc45: normalized package name match | Fedora Rawhide package metadata: feh from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Fast command line image viewer using Imlib2 | https://feh.finalrewind.org
- pacman - feh - 3.12.2-1: normalized package name match | Arch Linux sync databases: feh from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Fast and light imlib2-based image viewer | https://feh.finalrewind.org/
- zypper - feh - 3.11.1-1.6: normalized package name match | openSUSE Tumbleweed package metadata: feh from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | X11 image viewer | https://feh.finalrewind.org/
- zypper - feh-zsh-completion - 3.11.1-1.6: normalized package name match | openSUSE Tumbleweed package metadata: feh-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | ZSH Completion for feh | https://feh.finalrewind.org/
- MacPorts - feh: normalized package name match | MacPorts ports tree: graphics/feh/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/feh.yml](https://github.com/mxcl/pkgdb/blob/main/combined/feh.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
