How To Install mocassin on Debian 9

In this tutorial we learn how to install mocassin on Debian 9. mocassin is MOnte CArlo SimulationS of Ionised Nebulae

Introduction

In this tutorial we learn how to install mocassin on Debian 9.

What is mocassin

mocassin is:

mocassin is a fully 3D or 2D photoionisation and dust radiative transfer code which employs a Monte Carlo approach to the transfer of radiation through media of arbitrary geometry and density distribution. It was originally developed for the modelling of photoionised regions like HII regions and planetary nebulae and has since expanded and been applied to a variety of astrophysical problems, including modelling clumpy dusty supernova envelopes, star forming galaxies, protoplanetary disks and inner shell fluorence emission in the photospheres of stars and disk atmospheres. The code can deal with arbitrary Cartesian grids of variable resolution, it has successfully been used to model complex density fields from SPH calculations and can deal with ionising radiation extending from Lyman edge to the X-ray. The dust and gas microphysics is fully coupled both in the radiation transfer and in the thermal balance.

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

Install mocassin Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mocassin

Install mocassin Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mocassin

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

sudo aptitude -y install mocassin

How To Uninstall mocassin on Debian 9

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

sudo apt-get remove mocassin

Uninstall mocassin And Its Dependencies

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

sudo apt-get -y autoremove mocassin

Remove mocassin Configurations and Data

To remove mocassin configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge mocassin

Remove mocassin configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mocassin

Dependencies

mocassin have the following dependencies:

References

Summary

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