How To Install mpgrafic on Kali Linux
Introduction
In this tutorial we learn how to install mpgrafic
on Kali Linux.
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 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 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 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 mpgrafic
using aptitude
by running the following command:
sudo aptitude -y install mpgrafic
How To Uninstall mpgrafic on Kali Linux
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 Kali Linux, we can use the command below:
sudo apt-get -y autoremove mpgrafic
Remove mpgrafic Configurations and Data
To remove mpgrafic
configuration and data from Kali Linux 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 Kali Linux using different package management tools: apt
, apt-get
and aptitude
.