How To Install fmt on Fedora 34

fmt is Small, safe and fast formatting library for C++ Small, safe and fast formatting library for C++

Introduction

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

What is fmt

C++ Format is an open-source formatting library for C++. It can be used as a safe alternative to printf or as a fast alternative to IOStreams. fmt 7.1.3 3.fc34 x86_64 116 k fmt-7.1.3-3.fc34.src.rpm updates Small, safe and fast formatting library for C++ https BSD C++ Format is an open-source formatting library for C++. It can be used as a safe alternative to printf or as a fast alternative to IOStreams.

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

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

sudo dnf -y install fmt

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

sudo yum -y install fmt

How To Uninstall fmt on Fedora 34

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

sudo dnf remove fmt

fmt Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/71
/usr/lib/.build-id/71/fda360d7454ba8e7affe9de6ddd3ebd2256c21
/usr/lib64/libfmt.so.7
/usr/lib64/libfmt.so.7.1.3
/usr/share/doc/fmt
/usr/share/doc/fmt/ChangeLog.rst
/usr/share/doc/fmt/README.rst
/usr/share/licenses/fmt
/usr/share/licenses/fmt/LICENSE.rst
/usr/lib/.build-id
/usr/lib/.build-id/78
/usr/lib/.build-id/78/d74d71f4c33ececc242d7a4da6affdc7e6de2a
/usr/lib/libfmt.so.7
/usr/lib/libfmt.so.7.1.3
/usr/share/doc/fmt
/usr/share/doc/fmt/ChangeLog.rst
/usr/share/doc/fmt/README.rst
/usr/share/licenses/fmt
/usr/share/licenses/fmt/LICENSE.rst
/usr/lib/.build-id
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/5db643c89637f60a0d257e843c68cf86f48360
/usr/lib/libfmt.so.7
/usr/lib/libfmt.so.7.1.3
/usr/share/doc/fmt
/usr/share/doc/fmt/ChangeLog.rst
/usr/share/doc/fmt/README.rst
/usr/share/licenses/fmt
/usr/share/licenses/fmt/LICENSE.rst
/usr/lib/.build-id
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/e4efdb0d09a7608804cceac3f7c30100430e85
/usr/lib64/libfmt.so.7
/usr/lib64/libfmt.so.7.1.3
/usr/share/doc/fmt
/usr/share/doc/fmt/ChangeLog.rst
/usr/share/doc/fmt/README.rst
/usr/share/licenses/fmt
/usr/share/licenses/fmt/LICENSE.rst

References

Summary

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