How To Install beakerlib on CentOS 8

beakerlib is A shell-level integration testing library

Introduction

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

What is beakerlib

The BeakerLib project means to provide a library of various helpers, which could be used when writing operating system level integration tests.

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

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

sudo dnf -y install beakerlib

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

sudo yum -y install beakerlib

How To Uninstall beakerlib on CentOS 8

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

sudo dnf remove beakerlib

beakerlib Package Contents on CentOS 8

/usr/bin/beakerlib-deja-summarize
/usr/bin/beakerlib-journalcmp
/usr/bin/beakerlib-journalling
/usr/bin/beakerlib-lsb_release
/usr/bin/beakerlib-rlMemAvg
/usr/bin/beakerlib-rlMemPeak
/usr/bin/beakerlib-testwatcher
/usr/lib/tmpfiles.d/beakerlib.conf
/usr/share/beakerlib
/usr/share/beakerlib/analyze.sh
/usr/share/beakerlib/beakerlib.sh
/usr/share/beakerlib/dictionary.vim
/usr/share/beakerlib/infrastructure.sh
/usr/share/beakerlib/journal.sh
/usr/share/beakerlib/libraries.sh
/usr/share/beakerlib/logging.sh
/usr/share/beakerlib/performance.sh
/usr/share/beakerlib/profiling.sh
/usr/share/beakerlib/rpms.sh
/usr/share/beakerlib/storage.sh
/usr/share/beakerlib/synchronisation.sh
/usr/share/beakerlib/testing.sh
/usr/share/beakerlib/virtualX.sh
/usr/share/beakerlib/xslt-templates
/usr/share/beakerlib/xslt-templates/xunit.xsl
/usr/share/beakerlib/ya.sh
/usr/share/doc/beakerlib
/usr/share/doc/beakerlib/LICENSE
/usr/share/doc/beakerlib/MAINTENANCE
/usr/share/doc/beakerlib/README
/usr/share/doc/beakerlib/VERSION
/usr/share/doc/beakerlib/examples
/usr/share/doc/beakerlib/examples/apache
/usr/share/doc/beakerlib/examples/apache/PURPOSE
/usr/share/doc/beakerlib/examples/apache/runtest.sh
/usr/share/doc/beakerlib/examples/phases
/usr/share/doc/beakerlib/examples/phases/PURPOSE
/usr/share/doc/beakerlib/examples/phases/runtest.sh
/usr/share/doc/beakerlib/examples/simple
/usr/share/doc/beakerlib/examples/simple/PURPOSE
/usr/share/doc/beakerlib/examples/simple/runtest.sh
/usr/share/doc/beakerlib/testwatcher.txt
/usr/share/man/man1/beakerlib-analyze.1.gz
/usr/share/man/man1/beakerlib-infrastructure.1.gz
/usr/share/man/man1/beakerlib-journal.1.gz
/usr/share/man/man1/beakerlib-libraries.1.gz
/usr/share/man/man1/beakerlib-logging.1.gz
/usr/share/man/man1/beakerlib-performance.1.gz
/usr/share/man/man1/beakerlib-profiling.1.gz
/usr/share/man/man1/beakerlib-rpms.1.gz
/usr/share/man/man1/beakerlib-storage.1.gz
/usr/share/man/man1/beakerlib-synchronisation.1.gz
/usr/share/man/man1/beakerlib-testing.1.gz
/usr/share/man/man1/beakerlib-virtualX.1.gz
/usr/share/man/man1/beakerlib-ya.1.gz
/usr/share/man/man1/beakerlib.1.gz

References

Summary

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