How To Install stratis-cli on CentOS 8

stratis-cli is Command-line tool for interacting with the Stratis daemon

Introduction

In this tutorial we learn how to install stratis-cli on CentOS 8.

What is stratis-cli

stratis provides a command-line interface (CLI) for interacting with the Stratis daemon, stratisd. stratis interacts with stratisd via D-Bus.

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

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

sudo dnf -y install stratis-cli

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

sudo yum -y install stratis-cli

How To Uninstall stratis-cli on CentOS 8

To uninstall only the stratis-cli package we can use the following command:

sudo dnf remove stratis-cli

stratis-cli Package Contents on CentOS 8

/usr/bin/stratis
/usr/lib/python3.6/site-packages/stratis_cli
/usr/lib/python3.6/site-packages/stratis_cli-2.3.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/stratis_cli-2.3.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/stratis_cli-2.3.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/stratis_cli-2.3.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/stratis_cli-2.3.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/stratis_cli-2.3.0-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/stratis_cli/__init__.py
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/_error_reporting.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/_error_reporting.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/_errors.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/_errors.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/_exit.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/_exit.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/_main.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/_main.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/_stratisd_constants.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/_stratisd_constants.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/_version.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/__pycache__/_version.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__init__.py
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_connection.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_connection.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_constants.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_constants.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_data.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_data.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_formatting.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_formatting.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_introspect.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_introspect.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_logical.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_logical.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_physical.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_physical.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_stratis.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_stratis.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_stratisd_version.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_stratisd_version.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_top.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_top.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_utils.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/__pycache__/_utils.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_actions/_connection.py
/usr/lib/python3.6/site-packages/stratis_cli/_actions/_constants.py
/usr/lib/python3.6/site-packages/stratis_cli/_actions/_data.py
/usr/lib/python3.6/site-packages/stratis_cli/_actions/_formatting.py
/usr/lib/python3.6/site-packages/stratis_cli/_actions/_introspect.py
/usr/lib/python3.6/site-packages/stratis_cli/_actions/_logical.py
/usr/lib/python3.6/site-packages/stratis_cli/_actions/_physical.py
/usr/lib/python3.6/site-packages/stratis_cli/_actions/_stratis.py
/usr/lib/python3.6/site-packages/stratis_cli/_actions/_stratisd_version.py
/usr/lib/python3.6/site-packages/stratis_cli/_actions/_top.py
/usr/lib/python3.6/site-packages/stratis_cli/_actions/_utils.py
/usr/lib/python3.6/site-packages/stratis_cli/_error_reporting.py
/usr/lib/python3.6/site-packages/stratis_cli/_errors.py
/usr/lib/python3.6/site-packages/stratis_cli/_exit.py
/usr/lib/python3.6/site-packages/stratis_cli/_main.py
/usr/lib/python3.6/site-packages/stratis_cli/_parser
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__init__.py
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/_bind.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/_bind.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/_key.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/_key.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/_logical.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/_logical.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/_parser.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/_parser.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/_physical.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/_physical.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/_pool.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/__pycache__/_pool.cpython-36.pyc
/usr/lib/python3.6/site-packages/stratis_cli/_parser/_bind.py
/usr/lib/python3.6/site-packages/stratis_cli/_parser/_key.py
/usr/lib/python3.6/site-packages/stratis_cli/_parser/_logical.py
/usr/lib/python3.6/site-packages/stratis_cli/_parser/_parser.py
/usr/lib/python3.6/site-packages/stratis_cli/_parser/_physical.py
/usr/lib/python3.6/site-packages/stratis_cli/_parser/_pool.py
/usr/lib/python3.6/site-packages/stratis_cli/_stratisd_constants.py
/usr/lib/python3.6/site-packages/stratis_cli/_version.py
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/stratis
/usr/share/doc/stratis-cli
/usr/share/doc/stratis-cli/README.rst
/usr/share/licenses/stratis-cli
/usr/share/licenses/stratis-cli/LICENSE
/usr/share/man/man8/stratis.8.gz
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_stratis

References

Summary

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