How To Install thrift on CentOS 8

thrift is Software framework for cross-language services development

Introduction

In this tutorial we learn how to install thrift on CentOS 8.

What is thrift

The Apache Thrift software framework for cross-language services development combines a software stack with a code generation engine to build services that work efficiently and seamlessly between C++, Java, Python, and other languages.

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

Install thrift on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install thrift using dnf by running the following command:

sudo dnf -y install thrift

Install thrift on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install thrift using yum by running the following command:

sudo yum -y install thrift

How To Uninstall thrift on CentOS 8

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

sudo dnf remove thrift

thrift Package Contents on CentOS 8

/usr/bin/thrift
/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/5caa4d4b5850c2b3ce735055e33949040f7e30
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/1e788da92a07d01dbd7f7ae209d2dfc46e9420
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/1b5e26efed08d3eb4c82560785e0e0e8247840
/usr/lib/.build-id/de
/usr/lib/.build-id/de/adccba26486932284e6160dd0acbbcbcacce6d
/usr/lib64/libthrift-0.13.0.so
/usr/lib64/libthriftnb-0.13.0.so
/usr/lib64/libthriftz-0.13.0.so
/usr/share/doc/thrift
/usr/share/doc/thrift/LICENSE
/usr/share/doc/thrift/NOTICE

References

Summary

In this tutorial we learn how to install thrift on CentOS 8 using yum and dnf.