How To Install fenics on Debian 9

In this tutorial we learn how to install fenics on Debian 9. fenics is Automated Solution of Differential Equations

Introduction

In this tutorial we learn how to install fenics on Debian 9.

What is fenics

fenics is:

FEniCS is a collection of free software for automated, efficient solution of differential equations.

FEniCS has an extensive list of features, including automated solution of variational problems, automated error control and adaptivity, a comprehensive library of finite elements, high performance linear algebra and many more.

FEniCS is organized as a collection of interoperable components, including the problem-solving environment DOLFIN, the form compiler FFC, the finite element tabulator FIAT, the just-in-time compiler Instant, the code generation interface UFC, the form language UFL and a range of additional components.

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

Install fenics Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install fenics

Install fenics Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install fenics

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

sudo aptitude -y install fenics

How To Uninstall fenics on Debian 9

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

sudo apt-get remove fenics

Uninstall fenics And Its Dependencies

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

sudo apt-get -y autoremove fenics

Remove fenics Configurations and Data

To remove fenics configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge fenics

Remove fenics configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge fenics

Dependencies

fenics have the following dependencies:

References

Summary

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