How To Install timg on Debian 12
Introduction
In this tutorial we learn how to install timg
on Debian 12.
What is timg
timg is:
A user-friendly viewer that uses 24-Bit color capabilities and unicode character blocks to display images, animations and videos in the terminal.
On terminals that implement the Kitty Graphics Protocol or the iTerm2 Graphics Protocol this displays images in full resolution.
Useful if you want to have a quick visual check without leaving the comfort of your shell and having to start a bulky image viewer. Sometimes this is the only way if your terminal is connected remotely via ssh. And of course if you don’t need the resolution. While icons typically fit pixel-perfect, larger images are scaled down to match the resolution.
The command line accepts any number of image/video filenames that it shows in sequence one per page or in a grid in multiple columns, depending on your choice of –grid. The output is emitted in-line with minimally messing with your terminal, so you can simply go back in history using your terminals' scroll-bar (Or redirecting the output to a file allows you to later simply cat that file to your terminal. Even less -R seems to be happy with it).
There are three methods to install timg
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 timg Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install timg
using apt-get
by running the following command:
sudo apt-get -y install timg
Install timg Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install timg
using apt
by running the following command:
sudo apt -y install timg
Install timg 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 timg
using aptitude
by running the following command:
sudo aptitude -y install timg
How To Uninstall timg on Debian 12
To uninstall only the timg
package we can use the following command:
sudo apt-get remove timg
Uninstall timg And Its Dependencies
To uninstall timg
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove timg
Remove timg Configurations and Data
To remove timg
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge timg
Remove timg configuration, data, and all of its dependencies
We can use the following command to remove timg
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge timg
Dependencies
timg have the following dependencies:
References
Summary
In this tutorial we learn how to install timg
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.