How To Install libpsurface-dev on Kali Linux
Introduction
In this tutorial we learn how to install libpsurface-dev on Kali Linux.
What is libpsurface-dev
libpsurface-dev is:
Psurface is a C++ library that handles piecewise linear bijections between triangulated surfaces. These surfaces can be of arbitrary shape and need not even be manifolds.
There are two main uses for psurface. When doing adaptive finite element simulations on grids with parametrized boundaries, psurface can store the parametrization. Boundary parametrizations are practically mappings from the coarse grid boundary to the actual boundary, and if that actual boundary is a triangulated surface then psurface can handle it. This is implemented, for example, in the dune-grid module of Dune.
Secondly, when doing domain decomposition methods with nonconforming interfaces, you need to relate the two interface grids to each other. Psurface can do this for you, even if your interfaces do not match geometrically. Such is the case, e.g., in contact problems. This second functionality is also available for 1d surfaces in 2d space.
The easiest way to use psurface for domain decomposition is to get the dune-grid-glue module and use it to drive psurface.
This package contains the development files.
There are three methods to install libpsurface-dev 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 libpsurface-dev Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libpsurface-dev using apt-get by running the following command:
sudo apt-get -y install libpsurface-devInstall libpsurface-dev Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libpsurface-dev using apt by running the following command:
sudo apt -y install libpsurface-devInstall libpsurface-dev 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 updateAfter updating apt database, We can install libpsurface-dev using aptitude by running the following command:
sudo aptitude -y install libpsurface-devHow To Uninstall libpsurface-dev on Kali Linux
To uninstall only the libpsurface-dev package we can use the following command:
sudo apt-get remove libpsurface-devUninstall libpsurface-dev And Its Dependencies
To uninstall libpsurface-dev and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libpsurface-devRemove libpsurface-dev Configurations and Data
To remove libpsurface-dev configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libpsurface-devRemove libpsurface-dev configuration, data, and all of its dependencies
We can use the following command to remove libpsurface-dev configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libpsurface-devDependencies
libpsurface-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install libpsurface-dev package on Kali Linux using different package management tools: apt, apt-get and aptitude.