How To Install fypp on Debian 12

Learn how to install fypp on Debian 12 with this tutorial. fypp is Python powered Fortran preprocessor

Introduction

In this tutorial we learn how to install fypp on Debian 12.

What is fypp

fypp is:

Fypp is a Python powered preprocessor. It can be used for any programming languages but its primary aim is to offer a Fortran preprocessor, which helps to extend Fortran with condititional compiling and template metaprogramming capabilities. Instead of introducing its own expression syntax, it uses Python expressions in its preprocessor directives, offering the consistency and versatility of Python when formulating metaprogramming tasks. It puts strong emphasis on robustness and on neat integration into developing toolchains.

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

Install fypp Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install fypp

Install fypp Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install fypp

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

sudo aptitude -y install fypp

How To Uninstall fypp on Debian 12

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

sudo apt-get remove fypp

Uninstall fypp And Its Dependencies

To uninstall fypp and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove fypp

Remove fypp Configurations and Data

To remove fypp configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge fypp

Remove fypp configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge fypp

Dependencies

fypp have the following dependencies:

References

Summary

In this tutorial we learn how to install fypp package on Debian 12 using different package management tools: apt, apt-get and aptitude.