How To Install opentrep on CentOS 7

In this tutorial we learn how to install opentrep on CentOS 7. opentrep is C++ library providing a clean API for parsing travel-focused

Introduction

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

What is opentrep

opentrep aims at providing a clean API, and the corresponding C++ implementation, for parsing travel-focused requests. It powers the https opentrep uses Xapian (https Retrieval part, on freely available travel-related data (e.g., country names and codes, city names and codes, airline names and codes, etc.), mainly to be found in the OpenTravelData project (https https The data files are available from https opentrep exposes a simple, clean and object-oriented, API. For instance, the OPENTREP input, a string containing the travel request, and yields, as output, the list of the recognized terms as well as their corresponding types. As an example, the travel request ‘Washington DC Beijing Monday a/r +AA -UA 1 week 2 adults 1 dog’ would give the following list * Origin airport * Destination airport * Date of travel * Date of return * Preferred airline United Airlines * Number of travelers The output can then be used by other systems, for instance to book the corresponding travel or to visualize it on a map and calendar and to share it with others. opentrep makes an extensive use of existing open-source libraries for increased functionality, speed and accuracy. In particular the Boost (C++ Standard Extensions SOCI (http Note that opentrep currently only recognizes points of reference (POR), as to be found in the following file A good complementary tool is GeoBase (http software able to access to any travel-related data source.

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

Install opentrep on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install opentrep

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

sudo dnf -y install opentrep

How To Uninstall opentrep on CentOS 7

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

sudo dnf remove opentrep

References

Summary

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