How To Install mpgrafic on Debian 10

Learn how to install mpgrafic on Debian 10 with this tutorial. mpgrafic is MPI version of N-body initial conditions grafic package

Introduction

In this tutorial we learn how to install mpgrafic on Debian 10.

What is mpgrafic

mpgrafic is:

mpgrafic produces initial conditions files for N-body simulations of cosmological large-scale structure formation. It is a free-licensed, MPI-parallelised, rewritten version of Ed Bertschinger’s grafic-1 program, producing output files in the grafic format. It includes options for an Eisenstein and Hu baryonic wiggles power spectrum, for using a low-resolution map for large-scale modes in the spirit of grafic-2, and together with constrfield, can be used for generating constrained initial conditions. Details are given in Prunet et al (2008) http://cdsads.u-strasbg.fr/abs/2008ApJS..178..179P.

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

Install mpgrafic Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mpgrafic

Install mpgrafic Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mpgrafic

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

sudo aptitude -y install mpgrafic

How To Uninstall mpgrafic on Debian 10

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

sudo apt-get remove mpgrafic

Uninstall mpgrafic And Its Dependencies

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

sudo apt-get -y autoremove mpgrafic

Remove mpgrafic Configurations and Data

To remove mpgrafic configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge mpgrafic

Remove mpgrafic configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mpgrafic

Dependencies

mpgrafic have the following dependencies:

References

Summary

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