How To Install libastro-fits-cfitsio-perl on Ubuntu 18.04

In this tutorial we learn how to install libastro-fits-cfitsio-perl on Ubuntu 18.04. libastro-fits-cfitsio-perl is Perl extension for using the cfitsio library

Introduction

In this tutorial we learn how to install libastro-fits-cfitsio-perl on Ubuntu 18.04.

What is libastro-fits-cfitsio-perl

libastro-fits-cfitsio-perl is:

Astro::Fits::Cfitsio is a Perl interface to William Pence’s cfitsio subroutine library. For more information on cfitsio, see http://heasarc.gsfc.nasa.gov/fitsio.

This module attempts to provide a wrapper for nearly every cfitsio routine, while retaining as much cfitsio behavior as possible. As such, one should be aware that it is still somewhat low-level, in the sense that handing an array which is not the correct size to a routine like fits_write_img() may cause SIGSEGVs.

The goal is to eventually use these routines to build a more Perl-like interface to many common tasks such as reading and writing of images and ASCII and binary tables.

There are three methods to install libastro-fits-cfitsio-perl 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 libastro-fits-cfitsio-perl Using apt-get

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

sudo apt-get update

After updating apt database, We can install libastro-fits-cfitsio-perl using apt-get by running the following command:

sudo apt-get -y install libastro-fits-cfitsio-perl

Install libastro-fits-cfitsio-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libastro-fits-cfitsio-perl using apt by running the following command:

sudo apt -y install libastro-fits-cfitsio-perl

Install libastro-fits-cfitsio-perl 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 libastro-fits-cfitsio-perl using aptitude by running the following command:

sudo aptitude -y install libastro-fits-cfitsio-perl

How To Uninstall libastro-fits-cfitsio-perl on Ubuntu 18.04

To uninstall only the libastro-fits-cfitsio-perl package we can use the following command:

sudo apt-get remove libastro-fits-cfitsio-perl

Uninstall libastro-fits-cfitsio-perl And Its Dependencies

To uninstall libastro-fits-cfitsio-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libastro-fits-cfitsio-perl

Remove libastro-fits-cfitsio-perl Configurations and Data

To remove libastro-fits-cfitsio-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libastro-fits-cfitsio-perl

Remove libastro-fits-cfitsio-perl configuration, data, and all of its dependencies

We can use the following command to remove libastro-fits-cfitsio-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libastro-fits-cfitsio-perl

References

Summary

In this tutorial we learn how to install libastro-fits-cfitsio-perl package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.