How To Install gftl-dev on Ubuntu 22.04

In this tutorial we learn how to install gftl-dev on Ubuntu 22.04. gftl-dev is Containers and iterators for Fortran

Introduction

In this tutorial we learn how to install gftl-dev on Ubuntu 22.04.

What is gftl-dev

gftl-dev is:

gFTL provides a mechanism to easily create robust containers and associated iterators which can be used within Fortran applications. The primary methods are intended to be as close to their C++ STL analogs as possible. These containers are a powerful productivity multiplier for certain types of software development, and hope that others find them to be just as useful.

There are three methods to install gftl-dev on Ubuntu 22.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 gftl-dev Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install gftl-dev

Install gftl-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install gftl-dev

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

sudo aptitude -y install gftl-dev

How To Uninstall gftl-dev on Ubuntu 22.04

To uninstall only the gftl-dev package we can use the following command:

sudo apt-get remove gftl-dev

Uninstall gftl-dev And Its Dependencies

To uninstall gftl-dev and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove gftl-dev

Remove gftl-dev Configurations and Data

To remove gftl-dev configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge gftl-dev

Remove gftl-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge gftl-dev

References

Summary

In this tutorial we learn how to install gftl-dev package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.