How To Install pl-odbc on Fedora 36

In this tutorial we learn how to install pl-odbc in Fedora 36. pl-odbc is SWI-Prolog ODBC interface

Introduction

In this tutorial we learn how to install pl-odbc on Fedora 36.

What is pl-odbc

The value of RDMS for Prolog is often over-estimated, as Prolog itself can manage substantial amounts of data. Nevertheless a Prolog/RDMS interface provides advantages if data is already provided in an RDMS, data must be shared with other applications, there are strong persistency requirements or there is too much data to fit in memory. The popularity of ODBC makes it possible to design a single foreign-language module that provides RDMS access for a wide variety of databases on a wide variety of platforms. The SWI-Prolog RDMS interface is closely modeled after the ODBC API. This API is rather low-level, but defaults and dynamic typing provided by Prolog give the user quite simple access to RDMS, while the interface provides the best possible performance given the RDMS independency constraint.

We can use yum or dnf to install pl-odbc on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install pl-odbc.

Install pl-odbc on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install pl-odbc

Install pl-odbc on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install pl-odbc using yum by running the following command:

sudo yum -y install pl-odbc

How To Uninstall pl-odbc on Fedora 36

To uninstall only the pl-odbc package we can use the following command:

sudo dnf remove pl-odbc

pl-odbc Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/1eb9acd6bc5d3b090ba98564d3a6aead85c23b
/usr/lib64/swipl-8.4.2/lib/x86_64-linux/odbc4pl.so
/usr/lib64/swipl-8.4.2/library/odbc.pl
/usr/share/doc/pl-odbc
/usr/share/doc/pl-odbc/ChangeLog
/usr/share/doc/pl-odbc/README
/usr/share/doc/pl-odbc/demo
/usr/share/doc/pl-odbc/demo/wordnet.pl

References

Summary

In this tutorial we learn how to install pl-odbc on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).