How To Install opentrep on CentOS 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 CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install opentrep.

Install opentrep on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install opentrep

Install opentrep on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

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

sudo dnf remove opentrep

opentrep Package Contents on CentOS 8

/usr/bin/opentrep-dbmgr
/usr/bin/opentrep-indexer
/usr/bin/opentrep-searcher
/usr/lib/.build-id
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/a03517b56184aee10856f201c27ffc62a5a5a0
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/4e2c5e05868791c2b39fe615fa936346e8ed9c
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/73fd2e6c2fbbd78289378a86017a6891747d9e
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/4dd6a0e1f37641d383cd4b20eeb589758c0b24
/usr/lib64/libopentrep.so.0.07
/usr/lib64/libopentrep.so.0.07.4
/usr/share/doc/opentrep
/usr/share/doc/opentrep/AUTHORS
/usr/share/doc/opentrep/ChangeLog
/usr/share/doc/opentrep/NEWS
/usr/share/doc/opentrep/README.md
/usr/share/licenses/opentrep
/usr/share/licenses/opentrep/COPYING
/usr/share/man/man1/opentrep-dbmgr.1.gz
/usr/share/man/man1/opentrep-indexer.1.gz
/usr/share/man/man1/opentrep-searcher.1.gz
/usr/share/opentrep
/usr/share/opentrep/data
/usr/share/opentrep/data/por
/usr/share/opentrep/data/por/README.md
/usr/share/opentrep/data/por/create_trep_tables_mysql.sql
/usr/share/opentrep/data/por/create_trep_tables_sqlite3.sql
/usr/share/opentrep/data/por/create_trep_user_and_db.sql
/usr/share/opentrep/data/por/test_optd_por_public.csv
/usr/share/opentrep/data/por/test_optd_por_public_schema.sql
/usr/share/opentrep/data/por/test_world_schedule.csv

References

Summary

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