How To Install ueberzug on Debian 12

Learn how to install ueberzug on Debian 12 with this tutorial. ueberzug is command line utility which draws images on terminals

Introduction

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

What is ueberzug

ueberzug is:

Ueberzug is a command line utility which draws images on terminals using child windows.

It has several advantages over w3mimgdisplay:

  • no race conditions, as a new window is created to display images
  • expose events will be processed, so images will be redrawn on switched workspaces
  • tmux support (excluding multi pane windows)
  • terminals without the WINDOWID environment variable are supported
  • chars are used as both the position and size unit
  • no memory leak (and unlimited cache)

There are three methods to install ueberzug 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 ueberzug Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install ueberzug

Install ueberzug Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ueberzug

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

sudo aptitude -y install ueberzug

How To Uninstall ueberzug on Debian 12

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

sudo apt-get remove ueberzug

Uninstall ueberzug And Its Dependencies

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

sudo apt-get -y autoremove ueberzug

Remove ueberzug Configurations and Data

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

sudo apt-get -y purge ueberzug

Remove ueberzug configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ueberzug

Dependencies

ueberzug have the following dependencies:

References

Summary

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