How To Install opendbx on CentOS 8

opendbx is Lightweight but extensible database access library written in C

Introduction

In this tutorial we learn how to install opendbx on CentOS 8.

What is opendbx

Provides an abstraction layer to all supported databases with a single, clean and simple interface that leads to an elegant code design automatically. If you want your application to support different databases with little effort, this is definitively the right thing for you!

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

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

sudo dnf -y install opendbx

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

sudo yum -y install opendbx

How To Uninstall opendbx on CentOS 8

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

sudo dnf remove opendbx

opendbx Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/92d160310a17a565bd47cb4729146018654989
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/137d1d07dc25f9ab211b05ed5194a6bb54704a
/usr/lib64/libopendbx.so.1
/usr/lib64/libopendbx.so.1.2.0
/usr/lib64/libopendbxplus.so.1
/usr/lib64/libopendbxplus.so.1.0.0
/usr/lib64/opendbx
/usr/share/doc/opendbx
/usr/share/doc/opendbx/AUTHORS
/usr/share/doc/opendbx/COPYING
/usr/share/doc/opendbx/ChangeLog
/usr/share/doc/opendbx/NEWS
/usr/share/doc/opendbx/README
/usr/share/locale/de/LC_MESSAGES/opendbx.mo
/usr/share/locale/en@quot/LC_MESSAGES/opendbx.mo
/usr/share/opendbx/keywords

References

Summary

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