How To Install ginga on Fedora 34

ginga is Image Viewer and Toolkit

Introduction

In this tutorial we learn how to install ginga on Fedora 34.

What is ginga

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 class 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 we expect from a modern FITS viewer panning and zooming windows, star catalog access, cuts, star pick/fwhm, thumbnails, etc.

We can use yum or dnf to install ginga on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install ginga.

Install ginga on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install ginga

Install ginga on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install ginga

How To Uninstall ginga on Fedora 34

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

sudo dnf remove ginga

ginga Package Contents on Fedora 34

/usr/bin/ggrc
/usr/bin/ginga
/usr/share/applications/ginga.desktop
/usr/share/doc/ginga
/usr/share/doc/ginga/README.txt
/usr/share/licenses/ginga
/usr/share/licenses/ginga/LICENSE.txt

References

Summary

In this tutorial we learn how to install ginga on Fedora 34 using yum and dnf.