How To Install folly on Fedora 34

folly is An open-source C++ library developed and used at Facebook An open-source C++ library developed and used at Facebook

Introduction

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

What is folly

Folly (acronymed loosely after Facebook Open Source Library) is a library of C++14 components designed with practicality and efficiency in mind. Folly contains a variety of core library components used extensively at Facebook. In particular, it’s often a dependency of Facebook’s other open source C++ efforts and place where those projects can share code. It complements (as opposed to competing against) offerings such as Boost and of course std. In fact, we embark on defining our own component only when something we need is either not available, or does not meet the needed performance profile. We endeavor to remove things from folly if or when std or Boost obsoletes them. Performance concerns permeate much of Folly, sometimes leading to designs that are more idiosyncratic than they would otherwise be (see e.g. PackedSyncPtr.h, SmallLocks.h). Good performance at large scale is a unifying theme in all of Folly. folly 2021.04.26.00 1.fc34 x86_64 1.4 M folly-2021.04.26.00-1.fc34.src.rpm updates An open-source C++ library developed and used at Facebook https ASL 2.0 Folly (acronymed loosely after Facebook Open Source Library) is a library of C++14 components designed with practicality and efficiency in mind. Folly contains a variety of core library components used extensively at Facebook. In particular, it’s often a dependency of Facebook’s other open source C++ efforts and place where those projects can share code. It complements (as opposed to competing against) offerings such as Boost and of course std. In fact, we embark on defining our own component only when something we need is either not available, or does not meet the needed performance profile. We endeavor to remove things from folly if or when std or Boost obsoletes them. Performance concerns permeate much of Folly, sometimes leading to designs that are more idiosyncratic than they would otherwise be (see e.g. PackedSyncPtr.h, SmallLocks.h). Good performance at large scale is a unifying theme in all of Folly.

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

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

sudo dnf -y install folly

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

sudo yum -y install folly

How To Uninstall folly on Fedora 34

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

sudo dnf remove folly

folly Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/13
/usr/lib/.build-id/13/2c1ed7b8875dbf90176fc951dcafcddf41b3df
/usr/lib/.build-id/23
/usr/lib/.build-id/23/3c649ec47f4aa90cb63f1cc97b273d23eed0c9
/usr/lib/.build-id/49
/usr/lib/.build-id/49/eaa5ae2390c8ea1c9b25736295749219a983b0
/usr/lib/.build-id/73
/usr/lib/.build-id/73/08763c707de68b9f48e1c5535958874c55ad7a
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/55bcd823ea47dc66817ff6a8dda42d8623f1fc
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/d779e3a1cf9ca10eb51a46d4dbbda948cd3136
/usr/lib/libfolly.so.2021.04.26.00
/usr/lib/libfolly_exception_counter.so.2021.04.26.00
/usr/lib/libfolly_exception_tracer.so.2021.04.26.00
/usr/lib/libfolly_exception_tracer_base.so.2021.04.26.00
/usr/lib/libfolly_test_util.so.2021.04.26.00
/usr/lib/libfollybenchmark.so.2021.04.26.00
/usr/share/licenses/folly
/usr/share/licenses/folly/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/e3030c2435d85020c2489d856c8ee92576e873
/usr/lib/.build-id/24
/usr/lib/.build-id/24/b551b5a4826e81bca2f1582a05f082b09c300e
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/a4308c5ca5b61ae2d6eb64f20b0253a8ff98b2
/usr/lib/.build-id/64
/usr/lib/.build-id/64/5119e9551fb0d14d0985b1f77d420eda8274cb
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/4b92394804a1115e867003c4e269878fd2ce6f
/usr/lib/.build-id/ff
/usr/lib/.build-id/ff/86e01c33b4d80b8e84b9608bfdc60e8b4026ca
/usr/lib/libfolly.so.2021.03.29.00
/usr/lib/libfolly_exception_counter.so.2021.03.29.00
/usr/lib/libfolly_exception_tracer.so.2021.03.29.00
/usr/lib/libfolly_exception_tracer_base.so.2021.03.29.00
/usr/lib/libfolly_test_util.so.2021.03.29.00
/usr/lib/libfollybenchmark.so.2021.03.29.00
/usr/share/licenses/folly
/usr/share/licenses/folly/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/23
/usr/lib/.build-id/23/de830cd34c2e54f5567de2a3c7a146b600eeb7
/usr/lib/.build-id/34
/usr/lib/.build-id/34/ad4b7fdc5795c7c2321622df56cbd7e344fc8e
/usr/lib/.build-id/55
/usr/lib/.build-id/55/0bee0ed7634f1e9e84ad85e27ffbf3e2f91560
/usr/lib/.build-id/a1
/usr/lib/.build-id/a1/a2e6ea48dc054db03681073eb41609a74d38e4
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/ca9ce1fb2dff7c0b4a23d22932d25a1820e301
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/c9154bdb30952e5fc923b17fd6cf79ebc4a9c5
/usr/lib64/libfolly.so.2021.04.26.00
/usr/lib64/libfolly_exception_counter.so.2021.04.26.00
/usr/lib64/libfolly_exception_tracer.so.2021.04.26.00
/usr/lib64/libfolly_exception_tracer_base.so.2021.04.26.00
/usr/lib64/libfolly_test_util.so.2021.04.26.00
/usr/lib64/libfollybenchmark.so.2021.04.26.00
/usr/share/licenses/folly
/usr/share/licenses/folly/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/c958c2fa822acfa14e7e4a1cb6db0b1d9819dd
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/8fe643af56dfe6e7b3d2d0755f55128771330d
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/6849c21930c417df1560ff604296238147a077
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/ea70a4afd5dd093304bd31132106b0f63c5490
/usr/lib/.build-id/be
/usr/lib/.build-id/be/14ad4fe78cd07cd9090aa92ff09e23ebc9df8c
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/a0a3ccc79047a3e093c37fe8e18760de8a4d15
/usr/lib64/libfolly.so.2021.03.29.00
/usr/lib64/libfolly_exception_counter.so.2021.03.29.00
/usr/lib64/libfolly_exception_tracer.so.2021.03.29.00
/usr/lib64/libfolly_exception_tracer_base.so.2021.03.29.00
/usr/lib64/libfolly_test_util.so.2021.03.29.00
/usr/lib64/libfollybenchmark.so.2021.03.29.00
/usr/share/licenses/folly
/usr/share/licenses/folly/LICENSE

References

Summary

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