How To Install python-ginga on Ubuntu 18.04
Introduction
In this tutorial we learn how to install python-ginga
on Ubuntu 18.04.
What is python-ginga
python-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 Python 2 version of the package.
There are three methods to install python-ginga
on Ubuntu 18.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python-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 python-ginga
using apt-get
by running the following command:
sudo apt-get -y install python-ginga
Install python-ginga Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-ginga
using apt
by running the following command:
sudo apt -y install python-ginga
Install python-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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python-ginga
using aptitude
by running the following command:
sudo aptitude -y install python-ginga
How To Uninstall python-ginga on Ubuntu 18.04
To uninstall only the python-ginga
package we can use the following command:
sudo apt-get remove python-ginga
Uninstall python-ginga And Its Dependencies
To uninstall python-ginga
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove python-ginga
Remove python-ginga Configurations and Data
To remove python-ginga
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge python-ginga
Remove python-ginga configuration, data, and all of its dependencies
We can use the following command to remove python-ginga
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-ginga
References
Summary
In this tutorial we learn how to install python-ginga
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.