How To Install soci on Fedora 34

soci is The database access library for C++ programmers The database access library for C++ programmers

Introduction

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

What is soci

soci is a C++ database access library that provides the illusion of embedding SQL in regular C++ code, staying entirely within the C++ standard. soci 4.0.1.alpha2 8.fc34 x86_64 121 k soci-4.0.1.alpha2-8.fc34.src.rpm fedora The database access library for C++ programmers https Boost soci is a C++ database access library that provides the illusion of embedding SQL in regular C++ code, staying entirely within the C++ standard.

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

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

sudo dnf -y install soci

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

sudo yum -y install soci

How To Uninstall soci on Fedora 34

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

sudo dnf remove soci

soci Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/05
/usr/lib/.build-id/05/0a3a7a7f5792d94c4fd45270ad6c37aaff0030
/usr/lib/.build-id/54
/usr/lib/.build-id/54/240dc5c7cd7cb40a7a827ffa277307a5c63977
/usr/lib/libsoci_core.so.4.0
/usr/lib/libsoci_core.so.4.0.0
/usr/lib/libsoci_empty.so.4.0
/usr/lib/libsoci_empty.so.4.0.0
/usr/share/doc/soci
/usr/share/doc/soci/AUTHORS
/usr/share/doc/soci/COPYING
/usr/share/doc/soci/ChangeLog
/usr/share/doc/soci/NEWS
/usr/share/doc/soci/README
/usr/lib/.build-id
/usr/lib/.build-id/af
/usr/lib/.build-id/af/577e38b154cb3e4355ec096d85b2a004de380c
/usr/lib/.build-id/df
/usr/lib/.build-id/df/b57d1d6e3c029d3cf9d656c65e27658a191167
/usr/lib64/libsoci_core.so.4.0
/usr/lib64/libsoci_core.so.4.0.0
/usr/lib64/libsoci_empty.so.4.0
/usr/lib64/libsoci_empty.so.4.0.0
/usr/share/doc/soci
/usr/share/doc/soci/AUTHORS
/usr/share/doc/soci/COPYING
/usr/share/doc/soci/ChangeLog
/usr/share/doc/soci/NEWS
/usr/share/doc/soci/README

References

Summary

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