How To Install libcojets2-gfortran on Ubuntu 18.04

In this tutorial we learn how to install libcojets2-gfortran on Ubuntu 18.04. libcojets2-gfortran is [Physics] COJETS p-p and pbar-p interaction Monte Carlo library

Introduction

In this tutorial we learn how to install libcojets2-gfortran on Ubuntu 18.04.

What is libcojets2-gfortran

libcojets2-gfortran is:

COJETS is a Monte Carlo library which simulates pbar-p and p-p interactions at high energy. The interaction process is first calculated at the parton level by means of perturbative QCD and the Weinberg-Salam model for electroweak interactions. Partons are then independently fragmented into jets of hadrons, according to the Field-Feynman model, and the beam jets contribution is added, according to a longitudinal phase-space model. Multiple QCD radiation of initial and final partons is included.

Note that in order to compile and link programs against this library, you must also install the libcojets2-dev package.

There are three methods to install libcojets2-gfortran 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 libcojets2-gfortran Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install libcojets2-gfortran

Install libcojets2-gfortran Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcojets2-gfortran

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

sudo aptitude -y install libcojets2-gfortran

How To Uninstall libcojets2-gfortran on Ubuntu 18.04

To uninstall only the libcojets2-gfortran package we can use the following command:

sudo apt-get remove libcojets2-gfortran

Uninstall libcojets2-gfortran And Its Dependencies

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

sudo apt-get -y autoremove libcojets2-gfortran

Remove libcojets2-gfortran Configurations and Data

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

sudo apt-get -y purge libcojets2-gfortran

Remove libcojets2-gfortran configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcojets2-gfortran

References

Summary

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