How To Install sxiv on Fedora 34

sxiv is Simple (or small or suckless) X Image Viewer

Introduction

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

What is sxiv

sxiv is an alternative to feh and qiv. Its only dependency besides xlib is imlib2. The primary goal for writing sxiv is to create an image viewer, which only has the most basic features required for fast image viewing (the ones I want). It works nicely with tiling window managers and its code base should be kept small and clean to make it easy for you to dig into it and customize it for your needs.

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

Install sxiv 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 sxiv using dnf by running the following command:

sudo dnf -y install sxiv

Install sxiv 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 sxiv using yum by running the following command:

sudo yum -y install sxiv

How To Uninstall sxiv on Fedora 34

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

sudo dnf remove sxiv

sxiv Package Contents on Fedora 34

/usr/bin/sxiv
/usr/lib/.build-id
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/e3c341c7b16d90f5e97aea0614d9b8fab45b46
/usr/share/applications/sxiv.desktop
/usr/share/doc/sxiv
/usr/share/doc/sxiv/README.md
/usr/share/icons/hicolor/128x128
/usr/share/icons/hicolor/128x128/apps
/usr/share/icons/hicolor/128x128/apps/sxiv.png
/usr/share/icons/hicolor/16x16
/usr/share/icons/hicolor/16x16/apps
/usr/share/icons/hicolor/16x16/apps/sxiv.png
/usr/share/icons/hicolor/32x32
/usr/share/icons/hicolor/32x32/apps
/usr/share/icons/hicolor/32x32/apps/sxiv.png
/usr/share/icons/hicolor/48x48
/usr/share/icons/hicolor/48x48/apps
/usr/share/icons/hicolor/48x48/apps/sxiv.png
/usr/share/icons/hicolor/64x64
/usr/share/icons/hicolor/64x64/apps
/usr/share/icons/hicolor/64x64/apps/sxiv.png
/usr/share/licenses/sxiv
/usr/share/licenses/sxiv/LICENSE
/usr/share/man/man1/sxiv.1.gz
/usr/share/sxiv
/usr/share/sxiv/exec
/usr/share/sxiv/exec/image-info
/usr/share/sxiv/exec/key-handler

References

Summary

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