How To Install nsxiv on Debian 12

Learn how to install nsxiv on Debian 12 with this tutorial. nsxiv is neo simple X image viewer

Introduction

In this tutorial we learn how to install nsxiv on Debian 12.

What is nsxiv

nsxiv is:

nsxiv (the Neo Simple X Image Viewer) is a fork of the now-unmaintained sxiv project, with the purpose of being a drop-in replacement for sxiv, maintaining its interface, and adding simple, sensible features. nsxiv aims to be easy to modify and customise, and works nicely with tiling window managers.

Features:

  • Basic image operations, e.g. zooming, panning, rotating
  • Customizable key and mouse button mappings
  • Scriptable via configuration files
  • Thumbnail mode: grid of selectable previews of all images
  • Ability to cache thumbnails for fast re-loading
  • Basic support for animated/multi-frame images (GIF/WebP)
  • Display image information in status bar
  • Display image name/path in X title

There are three methods to install nsxiv on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install nsxiv Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install nsxiv using apt-get by running the following command:

sudo apt-get -y install nsxiv

Install nsxiv Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install nsxiv using apt by running the following command:

sudo apt -y install nsxiv

Install nsxiv Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install nsxiv using aptitude by running the following command:

sudo aptitude -y install nsxiv

How To Uninstall nsxiv on Debian 12

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

sudo apt-get remove nsxiv

Uninstall nsxiv And Its Dependencies

To uninstall nsxiv and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove nsxiv

Remove nsxiv Configurations and Data

To remove nsxiv configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge nsxiv

Remove nsxiv configuration, data, and all of its dependencies

We can use the following command to remove nsxiv configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge nsxiv

Dependencies

nsxiv have the following dependencies:

References

Summary

In this tutorial we learn how to install nsxiv package on Debian 12 using different package management tools: apt, apt-get and aptitude.