How To Install mysql++ on Fedora 34

mysql++ is C++ wrapper for the MySQL C API C++ wrapper for the MySQL C API

Introduction

In this tutorial we learn how to install mysql++ on Fedora 34.

What is mysql++

MySQL++ is a C++ wrapper for MySQL’s C API. It is built around STL principles, to make dealing with the database as easy as dealing with an STL container. MySQL++ relieves the programmer of dealing with cumbersome C data structures, generation of repetitive SQL statements, and manual creation of C++ data structures to mirror the database schema. If you are building your own MySQL++-based programs, you also need to install the -devel package. mysql++ 3.2.4 6.fc34 x86_64 159 k mysql++-3.2.4-6.fc34.src.rpm fedora C++ wrapper for the MySQL C API https LGPLv2+ MySQL++ is a C++ wrapper for MySQL’s C API. It is built around STL principles, to make dealing with the database as easy as dealing with an STL container. MySQL++ relieves the programmer of dealing with cumbersome C data structures, generation of repetitive SQL statements, and manual creation of C++ data structures to mirror the database schema. If you are building your own MySQL++-based programs, you also need to install the -devel package.

We can use yum or dnf to install mysql++ on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install mysql++.

Install mysql++ on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install mysql++

Install mysql++ on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install mysql++

How To Uninstall mysql++ on Fedora 34

To uninstall only the mysql++ package we can use the following command:

sudo dnf remove mysql++

mysql++ Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/426b2e42c8ca22d6ec296999576394efad8e99
/usr/lib/libmysqlpp.so.3
/usr/lib/libmysqlpp.so.3.2.4
/usr/share/doc/mysql++
/usr/share/doc/mysql++/CREDITS.txt
/usr/share/doc/mysql++/ChangeLog.md
/usr/share/doc/mysql++/README.txt
/usr/share/licenses/mysql++
/usr/share/licenses/mysql++/COPYING.txt
/usr/share/licenses/mysql++/LICENSE.txt
/usr/lib/.build-id
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/ddaed3e09949e1457b22ff01e3576827bd16a2
/usr/lib64/libmysqlpp.so.3
/usr/lib64/libmysqlpp.so.3.2.4
/usr/share/doc/mysql++
/usr/share/doc/mysql++/CREDITS.txt
/usr/share/doc/mysql++/ChangeLog.md
/usr/share/doc/mysql++/README.txt
/usr/share/licenses/mysql++
/usr/share/licenses/mysql++/COPYING.txt
/usr/share/licenses/mysql++/LICENSE.txt

References

Summary

In this tutorial we learn how to install mysql++ on Fedora 34 using yum and dnf.