How To Install ginga on Debian 11

In this tutorial we learn how to install ginga on Debian 11. ginga is Astronomical image viewer

Introduction

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

What is ginga

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.

This package contains the image viewer based on Python 3.

There are three methods to install 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 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 ginga using apt-get by running the following command:

sudo apt-get -y install ginga

Install ginga Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ginga

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

sudo aptitude -y install ginga

How To Uninstall ginga on Debian 11

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

sudo apt-get remove ginga

Uninstall ginga And Its Dependencies

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

sudo apt-get -y autoremove ginga

Remove ginga Configurations and Data

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

sudo apt-get -y purge ginga

Remove ginga configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ginga

Dependencies

ginga have the following dependencies:

References

Summary

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