How To Install sos-collector on CentOS 8

sos-collector is Capture sosreports from multiple nodes simultaneously

Introduction

In this tutorial we learn how to install sos-collector on CentOS 8.

What is sos-collector

sos-collector is a utility designed to capture sosreports from multiple nodes at once and collect them into a single archive. If the nodes are part of a cluster, profiles can be used to configure how the sosreport command is run on the nodes.

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

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

sudo dnf -y install sos-collector

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

sudo yum -y install sos-collector

How To Uninstall sos-collector on CentOS 8

To uninstall only the sos-collector package we can use the following command:

sudo dnf remove sos-collector

sos-collector Package Contents on CentOS 8

/usr/bin/sos-collector
/usr/lib/python3.6/site-packages/sos_collector-1.8-py3.6.egg-info
/usr/lib/python3.6/site-packages/sos_collector-1.8-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/sos_collector-1.8-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/sos_collector-1.8-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/sos_collector-1.8-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/soscollector
/usr/lib/python3.6/site-packages/soscollector/__init__.py
/usr/lib/python3.6/site-packages/soscollector/__pycache__
/usr/lib/python3.6/site-packages/soscollector/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/__pycache__/configuration.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/__pycache__/configuration.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/__pycache__/exceptions.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/__pycache__/exceptions.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/__pycache__/sos_collector.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/__pycache__/sos_collector.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/__pycache__/sosnode.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/__pycache__/sosnode.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters
/usr/lib/python3.6/site-packages/soscollector/clusters/__init__.py
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__/jbon.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__/jbon.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__/kubernetes.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__/kubernetes.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__/ovirt.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__/ovirt.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__/pacemaker.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__/pacemaker.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__/satellite.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters/__pycache__/satellite.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/clusters/jbon.py
/usr/lib/python3.6/site-packages/soscollector/clusters/kubernetes.py
/usr/lib/python3.6/site-packages/soscollector/clusters/ovirt.py
/usr/lib/python3.6/site-packages/soscollector/clusters/pacemaker.py
/usr/lib/python3.6/site-packages/soscollector/clusters/satellite.py
/usr/lib/python3.6/site-packages/soscollector/configuration.py
/usr/lib/python3.6/site-packages/soscollector/exceptions.py
/usr/lib/python3.6/site-packages/soscollector/hosts
/usr/lib/python3.6/site-packages/soscollector/hosts/__init__.py
/usr/lib/python3.6/site-packages/soscollector/hosts/__pycache__
/usr/lib/python3.6/site-packages/soscollector/hosts/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/hosts/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/hosts/__pycache__/debian.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/hosts/__pycache__/debian.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/hosts/__pycache__/redhat.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/soscollector/hosts/__pycache__/redhat.cpython-36.pyc
/usr/lib/python3.6/site-packages/soscollector/hosts/debian.py
/usr/lib/python3.6/site-packages/soscollector/hosts/redhat.py
/usr/lib/python3.6/site-packages/soscollector/sos_collector.py
/usr/lib/python3.6/site-packages/soscollector/sosnode.py
/usr/share/licenses/sos-collector
/usr/share/licenses/sos-collector/LICENSE
/usr/share/man/man1/sos-collector.1.gz

References

Summary

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