How To Install fenics on Kali Linux
Introduction
In this tutorial we learn how to install fenics
on Kali Linux.
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.
This is a metapackage which depends on all FEniCS components.
This is the legacy version of FEniCS. You may want to consider installing the next-generation FEniCS-X (fenicx package).
There are three methods to install fenics
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 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 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 fenics
using aptitude
by running the following command:
sudo aptitude -y install fenics
How To Uninstall fenics on Kali Linux
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 Kali Linux, we can use the command below:
sudo apt-get -y autoremove fenics
Remove fenics Configurations and Data
To remove fenics
configuration and data from Kali Linux 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:
- libdolfin-dev
- python3-dolfin
- dolfin-doc
- dolfin-bin
- python3-ffc
- python3-fiat
- python3-ufl
- python-ufl-doc
- python3-dijitso
- python3-mshr
References
Summary
In this tutorial we learn how to install fenics
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.