How To Install sxiv on Fedora 36

In this tutorial we learn how to install sxiv in Fedora 36. sxiv is Simple (or small or suckless) X Image Viewer

Introduction

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

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 36. In this tutorial we discuss both methods but you only need to choose one of method to install sxiv.

Install sxiv on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install sxiv

Install sxiv on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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 36

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

sudo dnf remove sxiv

sxiv Package Contents on Fedora 36

/usr/bin/sxiv
/usr/lib/.build-id
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/6d3b44af952c21e29d686a8d8ac791c9219977
/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 36 using yum and [dnf]((/fedora/36/dnf/).