How To Install trademgen on CentOS 7

In this tutorial we learn how to install trademgen on CentOS 7. trademgen is C++ Simulated Travel Demand Generation Library

Introduction

In this tutorial we learn how to install trademgen on CentOS 7.

What is trademgen

trademgen aims at providing a clean API, and the corresponding C++ implementation, able to generate demand for travel solutions (e.g., from JFK to PEK on 25-05-2009) according to characteristics (e.g., Willingness-To-Pay, preferred airline, etc). trademgen makes an extensive use of existing open-source libraries for increased functionality, speed and accuracy. In particular the Boost (C++ Standard Extensions used. Install the trademgen package if you need a library of basic C++ objects for travel-related demand generation, mainly for simulation purpose.

We can use yum or dnf to install trademgen on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install trademgen.

Install trademgen on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install trademgen using yum by running the following command:

sudo yum -y install trademgen

Install trademgen on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install trademgen using dnf by running the following command:

sudo dnf -y install trademgen

How To Uninstall trademgen on CentOS 7

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

sudo dnf remove trademgen

References

Summary

In this tutorial we learn how to install trademgen on CentOS 7 using yum and dnf.