How To Install libscn on Fedora 34

libscn is Library for replacing scanf and std Library for replacing scanf and std

Introduction

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

What is libscn

scnlib is a modern C++ library for replacing scanf and std This library attempts to move us ever so closer to replacing iostreams and C stdio altogether. It’s faster than iostream (see Benchmarks) and type-safe, unlike scanf. Think {fmt} but in the other direction. This library is the reference implementation of the ISO C++ standards proposal P1729 “Text Parsing”. libscn 0.4 1.fc34 x86_64 53 k libscn-0.4-1.fc34.src.rpm fedora Library for replacing scanf and std https ASL 2.0 scnlib is a modern C++ library for replacing scanf and std This library attempts to move us ever so closer to replacing iostreams and C stdio altogether. It’s faster than iostream (see Benchmarks) and type-safe, unlike scanf. Think {fmt} but in the other direction. This library is the reference implementation of the ISO C++ standards proposal P1729 “Text Parsing”.

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

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

sudo dnf -y install libscn

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

sudo yum -y install libscn

How To Uninstall libscn on Fedora 34

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

sudo dnf remove libscn

libscn Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/b6032e8c7dc6e0fc35ca2b605245dce93731e7
/usr/lib/libscn.so.0
/usr/share/doc/libscn
/usr/share/doc/libscn/README.md
/usr/share/licenses/libscn
/usr/share/licenses/libscn/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/ad3a6f931faa5068227789c7bb23a2062b7436
/usr/lib64/libscn.so.0
/usr/share/doc/libscn
/usr/share/doc/libscn/README.md
/usr/share/licenses/libscn
/usr/share/licenses/libscn/LICENSE

References

Summary

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