How To Install ratfor on Debian 10

Learn how to install ratfor on Debian 10 with this tutorial. ratfor is Rational Fortran preprocessor for Fortran 77

Introduction

In this tutorial we learn how to install ratfor on Debian 10.

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 g77 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 Debian 10. 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 first since aptitude is usually not installed by default on Debian. 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 Debian 10

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 Debian 10, we can use the command below:

sudo apt-get -y autoremove ratfor

Remove ratfor Configurations and Data

To remove ratfor configuration and data from Debian 10 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 Debian 10 using different package management tools: apt, apt-get and aptitude.