How To Install liblorene-dev on Ubuntu 18.04

In this tutorial we learn how to install liblorene-dev on Ubuntu 18.04. liblorene-dev is development files for the LORENE framework for numerical relativity

Introduction

In this tutorial we learn how to install liblorene-dev on Ubuntu 18.04.

What is liblorene-dev

liblorene-dev is:

LORENE is a set of C++ classes to solve various problems arising in numerical relativity, and more generally in computational astrophysics. It provides tools to solve partial differential equations by means of multi-domain spectral methods.

This package contains the static libraries and include files necessary to build LORENE codes or applications using LORENE.

Compiling LORENE codes (including some that are shipped in the lorene-codes-src package) often requires a Fortran compiler. LORENE is configured to use gfortran.

There are three methods to install liblorene-dev on Ubuntu 18.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 liblorene-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 liblorene-dev using apt-get by running the following command:

sudo apt-get -y install liblorene-dev

Install liblorene-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install liblorene-dev

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

sudo aptitude -y install liblorene-dev

How To Uninstall liblorene-dev on Ubuntu 18.04

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

sudo apt-get remove liblorene-dev

Uninstall liblorene-dev And Its Dependencies

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

sudo apt-get -y autoremove liblorene-dev

Remove liblorene-dev Configurations and Data

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

sudo apt-get -y purge liblorene-dev

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

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

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

References

Summary

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