How To Install dlib on Fedora 34

dlib is A modern C++ toolkit containing machine learning algorithms A modern C++ toolkit containing machine learning algorithms

Introduction

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

What is dlib

Dlib is a general purpose cross-platform open source software library written in the C++ programming language. Its design is heavily influenced by ideas from design by contract and component-based software engineering. It contains components for dealing with networking, threads, graphical user interfaces, data structures, linear algebra, machine learning, image processing, data mining, XML and text parsing, numerical optimization, Bayesian networks, and numerous other tasks. dlib 19.22 1.fc34 x86_64 721 k dlib-19.22-1.fc34.src.rpm fedora A modern C++ toolkit containing machine learning algorithms http Boost Dlib is a general purpose cross-platform open source software library written in the C++ programming language. Its design is heavily influenced by ideas from design by contract and component-based software engineering. It contains components for dealing with networking, threads, graphical user interfaces, data structures, linear algebra, machine learning, image processing, data mining, XML and text parsing, numerical optimization, Bayesian networks, and numerous other tasks.

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

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

sudo dnf -y install dlib

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

sudo yum -y install dlib

How To Uninstall dlib on Fedora 34

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

sudo dnf remove dlib

dlib Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/a6a22bcfd4d62647a3f7ee97e15970fe6927e7
/usr/lib/libdlib.so.19.22.0
/usr/share/licenses/dlib
/usr/share/licenses/dlib/LICENSE.txt
/usr/lib/.build-id
/usr/lib/.build-id/9d
/usr/lib/.build-id/9d/e6f6b6b1921241fec022dc47e5b24d70a964e7
/usr/lib64/libdlib.so.19.22.0
/usr/share/licenses/dlib
/usr/share/licenses/dlib/LICENSE.txt

References

Summary

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