Introduction to feh

feh is a fast, lightweight image viewer which uses Imlib2. It is commandline-driven and supports multiple images through slideshows, thumbnail browsing or multiple windows, and montages or index prints (using TrueType fonts to display file info). Advanced features include fast dynamic zooming, progressive loading, loading via HTTP (with reload support for watching webcams), recursive file opening (slideshow of a directory hierarchy), and mouse wheel/keyboard control.

This package is known to build and work properly using an LFS-7.9 platform.

Package Information



For some reason, using a browser, the link will not download the package as a tarball, but instead, as a page. Therefore, you will need to use “Save link as” or the wget or another similar command, in the command line.

  • Download (HTTP): http://feh.finalrewind.org/feh-2.14.1.tar.bz2

  • Download MD5 sum: ce8509d7f5c8cfcd4afad056ded5e4d7

  • Download size: 2.1 MB

  • Estimated disk space required: 6.9 MB (with tests)

  • Estimated build time: less than 0.1 SBU (with tests)

Additional Downloads

feh Dependencies


libpng-1.6.21 and Imlib2-1.4.7 (built with giflib-5.1.2 support, for the tests)




Optional (runtime)

libjpeg-turbo-1.4.2 (for lossless image rotation), and ImageMagick-6.9.3-5 (to load unsupported formats)

Optional (test suite)

Test::Command-0.11 (required)

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/feh

Installation of feh

Due to well-known problems when feh try to load gif images (sometimes imlib2 being blamed for that), some tests fail. To avoid that, apply the following patch, if you intend to run the test suite:

patch -Np1 -i ../feh-2.14.1-disable_some_tests-1.patch

Install feh by running the following commands:

sed -i "s:doc/feh:&-2.14.1:" config.mk &&
make PREFIX=/usr

To test the results, issue: make test.

Now, as the root user:

make PREFIX=/usr install

Command Explanations

sed -i "s:doc/feh:&-2.14.1:" config.mk: This sed fixes the doc directory to a versioned one, as used in BLFS.

curl=0: Use this make flag if you don't have cURL package installed.

exif=1: This make flag enables builtin Exif tag display support.


Installed Program: feh
Installed Libraries: None
Installed Directories: /usr/share/doc/feh-2.14.1 and /usr/share/feh

Short Descriptions


is an image viewer and cataloguer.

Last updated on 2016-03-04 22:15:24 -0800