How To Install ratfor on Kali Linux

In this tutorial we learn how to install ratfor on Kali Linux. ratfor is Rational Fortran preprocessor for Fortran 77

Introduction

In this tutorial we learn how to install ratfor on Kali Linux.

What is ratfor

ratfor is:

Ratfor77 is a preprocessor that converts the Rational Fortran dialect into ordinary Fortran 77. The output can then be compiled using gfortran or f2c + gcc.

The Ratfor dialect provides C-like control structures and some syntactic sugar that makes Fortran programs easier to read and write.

There are three methods to install ratfor on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ratfor Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install ratfor

Install ratfor Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install ratfor

Install ratfor Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install ratfor

How To Uninstall ratfor on Kali Linux

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

sudo apt-get remove ratfor

Uninstall ratfor And Its Dependencies

To uninstall ratfor and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove ratfor

Remove ratfor Configurations and Data

To remove ratfor configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge ratfor

Remove ratfor configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge ratfor

Dependencies

ratfor have the following dependencies:

References

Summary

In this tutorial we learn how to install ratfor package on Kali Linux using different package management tools: apt, apt-get and aptitude.