How To Install fbthrift on Fedora 34

fbthrift is Facebook’s branch of Apache Thrift, including a new C++ server Facebook’s branch of Apache Thrift, including a new C++ server

Introduction

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

What is fbthrift

Thrift is a serialization and RPC framework for service communication. Thrift enables these features in all major languages, and there is strong support for C++, Python, Hack, and Java. Most services at Facebook are written using Thrift for RPC, and some storage systems use Thrift for serializing records on disk. Facebook Thrift is not a distribution of Apache Thrift. This is an evolved internal branch of Thrift that Facebook re-released to open source community in February 2014. Facebook Thrift was originally released closely tracking Apache Thrift but is now evolving in new directions. In particular, the compiler was rewritten from scratch and the new implementation features a fully asynchronous Thrift server. fbthrift 2021.04.26.00 1.fc34 x86_64 2.6 M fbthrift-2021.04.26.00-1.fc34.src.rpm updates Facebook’s branch of Apache Thrift, including a new C++ server https ASL 2.0 Thrift is a serialization and RPC framework for service communication. Thrift enables these features in all major languages, and there is strong support for C++, Python, Hack, and Java. Most services at Facebook are written using Thrift for RPC, and some storage systems use Thrift for serializing records on disk. Facebook Thrift is not a distribution of Apache Thrift. This is an evolved internal branch of Thrift that Facebook re-released to open source community in February 2014. Facebook Thrift was originally released closely tracking Apache Thrift but is now evolving in new directions. In particular, the compiler was rewritten from scratch and the new implementation features a fully asynchronous Thrift server.

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

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

sudo dnf -y install fbthrift

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

sudo yum -y install fbthrift

How To Uninstall fbthrift on Fedora 34

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

sudo dnf remove fbthrift

fbthrift Package Contents on Fedora 34

/usr/bin/thrift1
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/40602f3780d4a1664fd1af0f2223d92e195c16
/usr/lib/.build-id/03
/usr/lib/.build-id/03/03d7562df18c3421aa7332ab488db475e7d226
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/bc1bcf63141e49101e19abde43df8bdfdbc2ef
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/d2e55aff5faa619517b21019385dbaa6c7ea55
/usr/lib/.build-id/12
/usr/lib/.build-id/12/746ccafe7c557100ec70bbfd1563ac8dcabbd0
/usr/lib/.build-id/15
/usr/lib/.build-id/15/0198f79ba3e76f8dd803d7a5d2c36f8a170d48
/usr/lib/.build-id/47
/usr/lib/.build-id/47/9d2c454519a168d5dea4ac379046a7e4dd11cf
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/345a39cfc2957314cb3129c2734439dfe674cd
/usr/lib/.build-id/60
/usr/lib/.build-id/60/8ad14ca78dfa07a61c916b391939fd3ff24f23
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/86227f0491c79163d7b83d33811fc6ca51ab82
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/79f0fb015c36c0600004802749926d2fc18c0b
/usr/lib/.build-id/a6
/usr/lib/.build-id/a6/7b50982c09f53d2293c7c1c2728b053d805830
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/7b5241c3df04aa0dd930e56e4a43c548daea49
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/771afddeb6de38762ec03f82e583ed12ead950
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/3ca2a92bfa774a4124927b22ab95beac8e89cd
/usr/lib64/libasync.so.2021.3.29.0
/usr/lib64/libcompiler_ast.so.2021.3.29.0
/usr/lib64/libcompiler_base.so.2021.3.29.0
/usr/lib64/libcompiler_generators.so.2021.3.29.0
/usr/lib64/libcompiler_lib.so.2021.3.29.0
/usr/lib64/libconcurrency.so.2021.3.29.0
/usr/lib64/libmustache_lib.so.2021.3.29.0
/usr/lib64/librpcmetadata.so.2021.3.29.0
/usr/lib64/libthrift-core.so.2021.3.29.0
/usr/lib64/libthriftcpp2.so.2021.3.29.0
/usr/lib64/libthriftfrozen2.so.2021.3.29.0
/usr/lib64/libthriftmetadata.so.2021.3.29.0
/usr/lib64/libthriftprotocol.so.2021.3.29.0
/usr/lib64/libtransport.so.2021.3.29.0
/usr/share/licenses/fbthrift
/usr/share/licenses/fbthrift/LICENSE
/usr/bin/thrift1
/usr/lib/.build-id
/usr/lib/.build-id/0b
/usr/lib/.build-id/0b/43e395891106360bb7ffc05360d61a4dad1ba6
/usr/lib/.build-id/1b
/usr/lib/.build-id/1b/267f50c3a44042e7c70a39569a148a24ddd4a7
/usr/lib/.build-id/25
/usr/lib/.build-id/25/fe9c5651c12344d600ad32f6bdebd16b690c8c
/usr/lib/.build-id/2b
/usr/lib/.build-id/2b/6e134b042aeae3ebdf2d7182140add82b68359
/usr/lib/.build-id/2d
/usr/lib/.build-id/2d/e8f649d2e01a92cca18f8e11454fbd90dd8563
/usr/lib/.build-id/30
/usr/lib/.build-id/30/9b4f8a491985901a8e23a9947acb8d08f02184
/usr/lib/.build-id/52
/usr/lib/.build-id/52/cb4a0b86c9ae80cea20b39ea930a9a12392ea4
/usr/lib/.build-id/68
/usr/lib/.build-id/68/f5df2e57734c9f531f8c85e38786e1013844a7
/usr/lib/.build-id/71
/usr/lib/.build-id/71/67bdff954a4e95dad16c8a72d2a04d8752e8c8
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/651394518ef9322f5ded8c452393626ff9f8cd
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/3cb77763cd84454ba0de453a40c752c676c7a4
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/751a3cdeecbe79b23baaaaaaf6ac880c436011
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/7ea92866eaef42f424ad36a76479b40db718aa
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/29244e0ae51f332750c3c945cd2384ae33a475
/usr/lib64/libasync.so.2021.4.26.0
/usr/lib64/libcompiler_ast.so.2021.4.26.0
/usr/lib64/libcompiler_base.so.2021.4.26.0
/usr/lib64/libcompiler_lib.so.2021.4.26.0
/usr/lib64/libconcurrency.so.2021.4.26.0
/usr/lib64/libmustache_lib.so.2021.4.26.0
/usr/lib64/librpcmetadata.so.2021.4.26.0
/usr/lib64/libthrift-core.so.2021.4.26.0
/usr/lib64/libthriftcpp2.so.2021.4.26.0
/usr/lib64/libthriftfrozen2.so.2021.4.26.0
/usr/lib64/libthriftmetadata.so.2021.4.26.0
/usr/lib64/libthriftprotocol.so.2021.4.26.0
/usr/lib64/libtransport.so.2021.4.26.0
/usr/share/licenses/fbthrift
/usr/share/licenses/fbthrift/LICENSE
/usr/bin/thrift1
/usr/lib/.build-id
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/67375c1b2232c68b1874149d86506f5f499e85
/usr/lib/.build-id/0e/78d19617a0e45f3aa78792bbedb6f5be0af435
/usr/lib/.build-id/13
/usr/lib/.build-id/13/878b879412e746618b2f3298a017e1431ad6b5
/usr/lib/.build-id/16
/usr/lib/.build-id/16/ef28ef2f1c625d84c12e9f7bd00322739e3904
/usr/lib/.build-id/48
/usr/lib/.build-id/48/7942584ce19dff530bf5c132706ab6193b1db2
/usr/lib/.build-id/66
/usr/lib/.build-id/66/50e9b3c3226c35d98300709c9b4a6bae374934
/usr/lib/.build-id/79
/usr/lib/.build-id/79/b48a09f4f7b844c0327209eee722f579fac7dc
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/fb25a9873390541e96290a913f228c3db9b67b
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/ff674482ae0a02f4f048ad3d731455b02c5bd6
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/33b366eb51c0736dfedf1d35723ed3b3b80a8a
/usr/lib/.build-id/df
/usr/lib/.build-id/df/dfd54bb22246bc88c77f56fea5337311b93feb
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/c972df1289e8a42e29e7edff726890194ccaff
/usr/lib/.build-id/e2
/usr/lib/.build-id/e2/9c891607574e57245d558b70f15dcda9f4f0e5
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/08127227985b697a87ea24fb7495295dedd9d7
/usr/lib/libasync.so.2021.4.26.0
/usr/lib/libcompiler_ast.so.2021.4.26.0
/usr/lib/libcompiler_base.so.2021.4.26.0
/usr/lib/libcompiler_lib.so.2021.4.26.0
/usr/lib/libconcurrency.so.2021.4.26.0
/usr/lib/libmustache_lib.so.2021.4.26.0
/usr/lib/librpcmetadata.so.2021.4.26.0
/usr/lib/libthrift-core.so.2021.4.26.0
/usr/lib/libthriftcpp2.so.2021.4.26.0
/usr/lib/libthriftfrozen2.so.2021.4.26.0
/usr/lib/libthriftmetadata.so.2021.4.26.0
/usr/lib/libthriftprotocol.so.2021.4.26.0
/usr/lib/libtransport.so.2021.4.26.0
/usr/share/licenses/fbthrift
/usr/share/licenses/fbthrift/LICENSE
/usr/bin/thrift1
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/d7c2cea5611b8dbed553633a7a4448321b8e84
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/15908030362c62fdf7a8349224bade13744018
/usr/lib/.build-id/57
/usr/lib/.build-id/57/9c57093190a990d07ec52b02ba2f6e9815ca09
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/5d21c702382ba55a1b8942b13be64acef0361b
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/780c28d56231e8384111fc8751d10556e0e1c8
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/2e3087c1eb04b83ce8bc5b793d0acb66967ec4
/usr/lib/.build-id/8d
/usr/lib/.build-id/8d/185b212b1ebd1e0e0f71d955cfb75f3acdf33d
/usr/lib/.build-id/a9
/usr/lib/.build-id/a9/355172614be00f05abaa4a567383131ea9cb65
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/911194438ae14661ab8c9a89595b5d96f03bfd
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/11ba578f411081f020d17627b47af9cd6f19b8
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/ad53450dd73cc5a9a9a7925e4df64127fe149f
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/61af29f64d6de7a45f60d1d6927a8420d103ed
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/0ed85b4210a01a3272572893c9b365e53e49d2
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/1b6692af4cf348fef9c9a0e3fa57233c286416
/usr/lib/.build-id/f8
/usr/lib/.build-id/f8/efb2682ac376b2efd69acd0051730c57f5161e
/usr/lib/libasync.so.2021.3.29.0
/usr/lib/libcompiler_ast.so.2021.3.29.0
/usr/lib/libcompiler_base.so.2021.3.29.0
/usr/lib/libcompiler_generators.so.2021.3.29.0
/usr/lib/libcompiler_lib.so.2021.3.29.0
/usr/lib/libconcurrency.so.2021.3.29.0
/usr/lib/libmustache_lib.so.2021.3.29.0
/usr/lib/librpcmetadata.so.2021.3.29.0
/usr/lib/libthrift-core.so.2021.3.29.0
/usr/lib/libthriftcpp2.so.2021.3.29.0
/usr/lib/libthriftfrozen2.so.2021.3.29.0
/usr/lib/libthriftmetadata.so.2021.3.29.0
/usr/lib/libthriftprotocol.so.2021.3.29.0
/usr/lib/libtransport.so.2021.3.29.0
/usr/share/licenses/fbthrift
/usr/share/licenses/fbthrift/LICENSE

References

Summary

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