How To Install libthepeg-dev on Ubuntu 18.04

In this tutorial we learn how to install libthepeg-dev on Ubuntu 18.04. libthepeg-dev is Development library of ThePEG

Introduction

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

What is libthepeg-dev

libthepeg-dev is:

ThePEG is a general toolkit for implementing physics models of event generation in high energy particle collisions. It defines a general structure of event generation in terms of abstract base classes for e.g. hard partonic matrix elements, parton showers and the decay of unstable particles. Different models are then implemented by creating classes which inherits from these base classes and implements sets of pre-defined virtual functions.

This package provides development library of ThePEG.

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

sudo apt-get -y install libthepeg-dev

Install libthepeg-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libthepeg-dev

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

sudo aptitude -y install libthepeg-dev

How To Uninstall libthepeg-dev on Ubuntu 18.04

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

sudo apt-get remove libthepeg-dev

Uninstall libthepeg-dev And Its Dependencies

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

sudo apt-get -y autoremove libthepeg-dev

Remove libthepeg-dev Configurations and Data

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

sudo apt-get -y purge libthepeg-dev

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

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

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

References

Summary

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