How To Install iraf-wcstools on Ubuntu 18.04

In this tutorial we learn how to install iraf-wcstools on Ubuntu 18.04. iraf-wcstools is Handle the WCS of a FITS image (IRAF package)

Introduction

In this tutorial we learn how to install iraf-wcstools on Ubuntu 18.04.

What is iraf-wcstools

iraf-wcstools is:

WCSTools is a set of software utilities, written in C, which create, display and manipulate the world coordinate system of a FITS or IRAF image, using specific keywords in the image header which relate pixel position within the image to position on the sky. Auxiliary programs search star catalogs and manipulate images.

This package contains the IRAF package.

There are three methods to install iraf-wcstools 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 iraf-wcstools Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install iraf-wcstools

Install iraf-wcstools Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install iraf-wcstools

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

sudo aptitude -y install iraf-wcstools

How To Uninstall iraf-wcstools on Ubuntu 18.04

To uninstall only the iraf-wcstools package we can use the following command:

sudo apt-get remove iraf-wcstools

Uninstall iraf-wcstools And Its Dependencies

To uninstall iraf-wcstools and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove iraf-wcstools

Remove iraf-wcstools Configurations and Data

To remove iraf-wcstools configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge iraf-wcstools

Remove iraf-wcstools configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge iraf-wcstools

References

Summary

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