How To Install opentrep on AlmaLinux 8

In this tutorial we learn how to install opentrep in AlmaLinux 8. opentrep is C++ library providing a clean API for parsing travel-focused requests

Introduction

In this tutorial we learn how to install opentrep on AlmaLinux 8.

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 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 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 * 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 a Python-based software able to access to any travel-related data source.

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

Install opentrep on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install opentrep

Install opentrep on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install opentrep

How To Uninstall opentrep on AlmaLinux 8

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 AlmaLinux 8 using yum and dnf.