How To Install python3-ginga on Debian 11

In this tutorial we learn how to install python3-ginga on Debian 11. python3-ginga is Astronomical image toolkit for Python

Introduction

In this tutorial we learn how to install python3-ginga on Debian 11.

What is python3-ginga

python3-ginga is:

Ginga is a toolkit designed for building viewers for scientific image data in Python, visualizing 2D pixel data in numpy arrays. It can view astronomical data such as contained in files based on the FITS (Flexible Image Transport System) file format. It is written and is maintained by software engineers at the Subaru Telescope, National Astronomical Observatory of Japan.

The Ginga toolkit centers around an image display object which supports zooming and panning, color and intensity mapping, a choice of several automatic cut levels algorithms and canvases for plotting scalable geometric forms. In addition to this widget, a general purpose “reference” FITS viewer is provided, based on a plugin framework. A fairly complete set of standard plugins are provided for features that is expected from a modern FITS viewer: panning and zooming windows, star catalog access, cuts, star pick/fwhm, thumbnails, etc.

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

Install python3-ginga Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python3-ginga

Install python3-ginga Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3-ginga

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

sudo aptitude -y install python3-ginga

How To Uninstall python3-ginga on Debian 11

To uninstall only the python3-ginga package we can use the following command:

sudo apt-get remove python3-ginga

Uninstall python3-ginga And Its Dependencies

To uninstall python3-ginga and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove python3-ginga

Remove python3-ginga Configurations and Data

To remove python3-ginga configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge python3-ginga

Remove python3-ginga configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python3-ginga

Dependencies

python3-ginga have the following dependencies:

References

Summary

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