How To Install feh on Fedora 34

feh is Fast command line image viewer using Imlib2

Introduction

In this tutorial we learn how to install feh on Fedora 34.

What is feh

feh is a versatile and fast image viewer using imlib2, the premier image file handling library. feh has many features, from simple single file viewing, to multiple file modes using a slide-show or multiple windows. feh supports the creation of montages as index prints with many user-configurable options.

We can use yum or dnf to install feh on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install feh.

Install feh on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install feh using dnf by running the following command:

sudo dnf -y install feh

Install feh on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install feh using yum by running the following command:

sudo yum -y install feh

How To Uninstall feh on Fedora 34

To uninstall only the feh package we can use the following command:

sudo dnf remove feh

feh Package Contents on Fedora 34

/usr/bin/feh
/usr/lib/.build-id
/usr/lib/.build-id/49
/usr/lib/.build-id/49/f141aabf36cffb709659161f432c06e75b8a2e
/usr/share/applications/feh.desktop
/usr/share/doc/feh
/usr/share/doc/feh/AUTHORS
/usr/share/doc/feh/ChangeLog
/usr/share/doc/feh/README.md
/usr/share/doc/feh/TODO
/usr/share/doc/feh/examples
/usr/share/doc/feh/examples/buttons
/usr/share/doc/feh/examples/keys
/usr/share/doc/feh/examples/themes
/usr/share/feh
/usr/share/feh/fonts
/usr/share/feh/fonts/black.style
/usr/share/feh/fonts/menu.style
/usr/share/feh/images
/usr/share/feh/images/feh.png
/usr/share/feh/images/feh.svg
/usr/share/feh/images/menubg_default.png
/usr/share/icons/hicolor/48x48/apps/feh.png
/usr/share/icons/hicolor/scalable/apps/feh.svg
/usr/share/licenses/feh
/usr/share/licenses/feh/COPYING
/usr/share/man/man1/feh.1.gz

References

Summary

In this tutorial we learn how to install feh on Fedora 34 using yum and dnf.