How To Install botan2 on CentOS 8

botan2 is Crypto and TLS for C++11

Introduction

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

What is botan2

Botan is a BSD-licensed crypto library written in C++. It provides a wide variety of basic cryptographic algorithms, X.509 certificates and CRLs, PKCS #10 certificate requests, a filter/pipe message processing system, and a wide variety of other features, all written in portable C++. The API reference, tutorial, and examples may help impart the flavor of the library. This is the current stable release branch 2.x of Botan.

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

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

sudo dnf -y install botan2

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

sudo yum -y install botan2

How To Uninstall botan2 on CentOS 8

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

sudo dnf remove botan2

botan2 Package Contents on CentOS 8

/usr/bin/botan
/usr/lib/.build-id
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/458613e2f8700c75ef9bea130aee556133050f
/usr/lib/.build-id/d0
/usr/lib/.build-id/d0/e49619ac463a2b3341a44317b18e2985c892ab
/usr/lib64/libbotan-2.so.12
/usr/lib64/libbotan-2.so.12.12.1
/usr/share/doc/botan2
/usr/share/doc/botan2/authors.txt
/usr/share/doc/botan2/license.txt
/usr/share/doc/botan2/news.txt
/usr/share/doc/botan2/pgpkey.txt
/usr/share/licenses/botan2
/usr/share/licenses/botan2/license.txt
/usr/share/man/man1/botan.1.gz

References

Summary

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