How To Install standard-test-roles on CentOS 8

standard-test-roles is Standard Test Interface Ansible roles

Introduction

In this tutorial we learn how to install standard-test-roles on CentOS 8.

What is standard-test-roles

Shared Ansible roles to support the Standard Test Interface as described at https

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

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

sudo dnf -y install standard-test-roles

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

sudo yum -y install standard-test-roles

How To Uninstall standard-test-roles on CentOS 8

To uninstall only the standard-test-roles package we can use the following command:

sudo dnf remove standard-test-roles

standard-test-roles Package Contents on CentOS 8

/usr/bin/merge-standard-inventory
/usr/bin/str-filter-tests
/usr/share/ansible/inventory/standard-inventory-local
/usr/share/ansible/inventory/standard-inventory-rpm
/usr/share/ansible/roles/standard-test-avocado
/usr/share/ansible/roles/standard-test-avocado/README.md
/usr/share/ansible/roles/standard-test-avocado/defaults
/usr/share/ansible/roles/standard-test-avocado/defaults/main.yml
/usr/share/ansible/roles/standard-test-avocado/tasks
/usr/share/ansible/roles/standard-test-avocado/tasks/main.yml
/usr/share/ansible/roles/standard-test-avocado/vars
/usr/share/ansible/roles/standard-test-avocado/vars/main.yml
/usr/share/ansible/roles/standard-test-basic
/usr/share/ansible/roles/standard-test-basic/README.md
/usr/share/ansible/roles/standard-test-basic/files
/usr/share/ansible/roles/standard-test-basic/files/run-basic-test
/usr/share/ansible/roles/standard-test-basic/meta
/usr/share/ansible/roles/standard-test-basic/meta/main.yml
/usr/share/ansible/roles/standard-test-basic/tasks
/usr/share/ansible/roles/standard-test-basic/tasks/main.yml
/usr/share/ansible/roles/standard-test-basic/vars
/usr/share/ansible/roles/standard-test-basic/vars/main.yml
/usr/share/ansible/roles/standard-test-beakerlib
/usr/share/ansible/roles/standard-test-beakerlib/README.md
/usr/share/ansible/roles/standard-test-beakerlib/files
/usr/share/ansible/roles/standard-test-beakerlib/files/rhts-environment.sh
/usr/share/ansible/roles/standard-test-beakerlib/files/rhts-make.include
/usr/share/ansible/roles/standard-test-beakerlib/files/rhts-run-simple-test
/usr/share/ansible/roles/standard-test-beakerlib/files/rpm.py
/usr/share/ansible/roles/standard-test-beakerlib/files/run-beakerlib-test
/usr/share/ansible/roles/standard-test-beakerlib/files/str-beakerlib-submit-log
/usr/share/ansible/roles/standard-test-beakerlib/meta
/usr/share/ansible/roles/standard-test-beakerlib/meta/main.yml
/usr/share/ansible/roles/standard-test-beakerlib/tasks
/usr/share/ansible/roles/standard-test-beakerlib/tasks/main.yml
/usr/share/ansible/roles/standard-test-beakerlib/vars
/usr/share/ansible/roles/standard-test-beakerlib/vars/main.yml
/usr/share/ansible/roles/standard-test-repo
/usr/share/ansible/roles/standard-test-repo/README.md
/usr/share/ansible/roles/standard-test-repo/defaults
/usr/share/ansible/roles/standard-test-repo/defaults/main.yml
/usr/share/ansible/roles/standard-test-repo/tasks
/usr/share/ansible/roles/standard-test-repo/tasks/main.yml
/usr/share/ansible/roles/standard-test-repo/vars
/usr/share/ansible/roles/standard-test-repo/vars/main.yml
/usr/share/ansible/roles/standard-test-rhts
/usr/share/ansible/roles/standard-test-rpm
/usr/share/ansible/roles/standard-test-rpm/README.md
/usr/share/ansible/roles/standard-test-rpm/tasks
/usr/share/ansible/roles/standard-test-rpm/tasks/main.yml
/usr/share/ansible/roles/standard-test-source
/usr/share/ansible/roles/standard-test-source/README.md
/usr/share/ansible/roles/standard-test-source/library
/usr/share/ansible/roles/standard-test-source/library/README.md
/usr/share/ansible/roles/standard-test-source/library/source-lookaside.py
/usr/share/ansible/roles/standard-test-source/tasks
/usr/share/ansible/roles/standard-test-source/tasks/main.yml
/usr/share/ansible/roles/standard-test-source/vars
/usr/share/ansible/roles/standard-test-source/vars/main.yml
/usr/share/ansible/roles/str-common-final
/usr/share/ansible/roles/str-common-final/tasks
/usr/share/ansible/roles/str-common-final/tasks/main.yml
/usr/share/ansible/roles/str-common-init
/usr/share/ansible/roles/str-common-init/defaults
/usr/share/ansible/roles/str-common-init/defaults/main.yml
/usr/share/ansible/roles/str-common-init/tasks
/usr/share/ansible/roles/str-common-init/tasks/inspect.yml
/usr/share/ansible/roles/str-common-init/tasks/main.yml
/usr/share/ansible/roles/str-common-init/tasks/trunner.yml
/usr/share/ansible/roles/str-common-pkgs
/usr/share/ansible/roles/str-common-pkgs/defaults
/usr/share/ansible/roles/str-common-pkgs/defaults/main.yml
/usr/share/ansible/roles/str-common-pkgs/tasks
/usr/share/ansible/roles/str-common-pkgs/tasks/inspect.yml
/usr/share/ansible/roles/str-common-pkgs/tasks/main.yml
/usr/share/ansible/roles/str-common-pkgs/tasks/pkgs-dnf.yml
/usr/share/ansible/roles/str-common-pkgs/tasks/pkgs-rpm-ostree.yml
/usr/share/ansible/roles/str-common-pkgs/tasks/pkgs-yum.yml
/usr/share/doc/standard-test-roles
/usr/share/doc/standard-test-roles/README.md
/usr/share/licenses/standard-test-roles
/usr/share/licenses/standard-test-roles/LICENSE

References

Summary

In this tutorial we learn how to install standard-test-roles on CentOS 8 using yum and dnf.