How To Install python3-stem on Rocky Linux 8

In this tutorial we learn how to install python3-stem on Rocky Linux 8. python3-stem is Python controller library for Tor

Introduction

In this tutorial we learn how to install python3-stem on Rocky Linux 8.

What is python3-stem

Stem is a Python controller library that you can use to interact with Tor. With it you can write scripts and applications with capabilities similar to nyx. From a technical standpoint, Stem is a Python implementation of Tor’s directory and control specifications.

We can use yum or dnf to install python3-stem on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-stem.

Install python3-stem on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-stem using dnf by running the following command:

sudo dnf -y install python3-stem

Install python3-stem on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-stem using yum by running the following command:

sudo yum -y install python3-stem

How To Uninstall python3-stem on Rocky Linux 8

To uninstall only the python3-stem package we can use the following command:

sudo dnf remove python3-stem

python3-stem Package Contents on Rocky Linux 8

/usr/bin/tor-prompt
/usr/lib/python3.6/site-packages/stem
/usr/lib/python3.6/site-packages/stem-1.8.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/stem/__init__.py
/usr/lib/python3.6/site-packages/stem/__pycache__
/usr/lib/python3.6/site-packages/stem/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/connection.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/connection.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/control.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/control.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/directory.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/directory.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/exit_policy.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/exit_policy.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/manual.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/manual.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/prereq.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/prereq.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/process.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/process.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/socket.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/socket.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/version.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/__pycache__/version.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/cached_fallbacks.cfg
/usr/lib/python3.6/site-packages/stem/cached_manual.sqlite
/usr/lib/python3.6/site-packages/stem/client
/usr/lib/python3.6/site-packages/stem/client/__init__.py
/usr/lib/python3.6/site-packages/stem/client/__pycache__
/usr/lib/python3.6/site-packages/stem/client/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/client/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/client/__pycache__/cell.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/client/__pycache__/cell.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/client/__pycache__/datatype.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/client/__pycache__/datatype.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/client/cell.py
/usr/lib/python3.6/site-packages/stem/client/datatype.py
/usr/lib/python3.6/site-packages/stem/connection.py
/usr/lib/python3.6/site-packages/stem/control.py
/usr/lib/python3.6/site-packages/stem/descriptor
/usr/lib/python3.6/site-packages/stem/descriptor/__init__.py
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/bandwidth_file.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/bandwidth_file.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/certificate.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/certificate.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/collector.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/collector.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/export.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/export.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/extrainfo_descriptor.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/extrainfo_descriptor.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/hidden_service.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/hidden_service.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/hidden_service_descriptor.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/hidden_service_descriptor.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/microdescriptor.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/microdescriptor.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/networkstatus.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/networkstatus.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/reader.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/reader.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/remote.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/remote.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/router_status_entry.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/router_status_entry.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/server_descriptor.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/server_descriptor.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/tordnsel.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/__pycache__/tordnsel.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/descriptor/bandwidth_file.py
/usr/lib/python3.6/site-packages/stem/descriptor/certificate.py
/usr/lib/python3.6/site-packages/stem/descriptor/collector.py
/usr/lib/python3.6/site-packages/stem/descriptor/export.py
/usr/lib/python3.6/site-packages/stem/descriptor/extrainfo_descriptor.py
/usr/lib/python3.6/site-packages/stem/descriptor/hidden_service.py
/usr/lib/python3.6/site-packages/stem/descriptor/hidden_service_descriptor.py
/usr/lib/python3.6/site-packages/stem/descriptor/microdescriptor.py
/usr/lib/python3.6/site-packages/stem/descriptor/networkstatus.py
/usr/lib/python3.6/site-packages/stem/descriptor/reader.py
/usr/lib/python3.6/site-packages/stem/descriptor/remote.py
/usr/lib/python3.6/site-packages/stem/descriptor/router_status_entry.py
/usr/lib/python3.6/site-packages/stem/descriptor/server_descriptor.py
/usr/lib/python3.6/site-packages/stem/descriptor/tordnsel.py
/usr/lib/python3.6/site-packages/stem/directory.py
/usr/lib/python3.6/site-packages/stem/exit_policy.py
/usr/lib/python3.6/site-packages/stem/interpreter
/usr/lib/python3.6/site-packages/stem/interpreter/__init__.py
/usr/lib/python3.6/site-packages/stem/interpreter/__pycache__
/usr/lib/python3.6/site-packages/stem/interpreter/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/interpreter/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/interpreter/__pycache__/arguments.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/interpreter/__pycache__/arguments.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/interpreter/__pycache__/autocomplete.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/interpreter/__pycache__/autocomplete.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/interpreter/__pycache__/commands.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/interpreter/__pycache__/commands.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/interpreter/__pycache__/help.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/interpreter/__pycache__/help.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/interpreter/arguments.py
/usr/lib/python3.6/site-packages/stem/interpreter/autocomplete.py
/usr/lib/python3.6/site-packages/stem/interpreter/commands.py
/usr/lib/python3.6/site-packages/stem/interpreter/help.py
/usr/lib/python3.6/site-packages/stem/interpreter/settings.cfg
/usr/lib/python3.6/site-packages/stem/manual.py
/usr/lib/python3.6/site-packages/stem/prereq.py
/usr/lib/python3.6/site-packages/stem/process.py
/usr/lib/python3.6/site-packages/stem/response
/usr/lib/python3.6/site-packages/stem/response/__init__.py
/usr/lib/python3.6/site-packages/stem/response/__pycache__
/usr/lib/python3.6/site-packages/stem/response/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/add_onion.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/add_onion.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/authchallenge.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/authchallenge.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/events.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/events.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/getconf.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/getconf.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/getinfo.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/getinfo.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/mapaddress.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/mapaddress.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/protocolinfo.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/response/__pycache__/protocolinfo.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/response/add_onion.py
/usr/lib/python3.6/site-packages/stem/response/authchallenge.py
/usr/lib/python3.6/site-packages/stem/response/events.py
/usr/lib/python3.6/site-packages/stem/response/getconf.py
/usr/lib/python3.6/site-packages/stem/response/getinfo.py
/usr/lib/python3.6/site-packages/stem/response/mapaddress.py
/usr/lib/python3.6/site-packages/stem/response/protocolinfo.py
/usr/lib/python3.6/site-packages/stem/settings.cfg
/usr/lib/python3.6/site-packages/stem/socket.py
/usr/lib/python3.6/site-packages/stem/util
/usr/lib/python3.6/site-packages/stem/util/__init__.py
/usr/lib/python3.6/site-packages/stem/util/__pycache__
/usr/lib/python3.6/site-packages/stem/util/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/conf.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/conf.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/connection.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/connection.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/ed25519.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/ed25519.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/enum.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/enum.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/log.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/log.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/lru_cache.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/lru_cache.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/ordereddict.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/ordereddict.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/proc.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/proc.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/str_tools.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/str_tools.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/system.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/system.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/term.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/term.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/test_tools.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/test_tools.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/tor_tools.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/stem/util/__pycache__/tor_tools.cpython-36.pyc
/usr/lib/python3.6/site-packages/stem/util/conf.py
/usr/lib/python3.6/site-packages/stem/util/connection.py
/usr/lib/python3.6/site-packages/stem/util/ed25519.py
/usr/lib/python3.6/site-packages/stem/util/enum.py
/usr/lib/python3.6/site-packages/stem/util/log.py
/usr/lib/python3.6/site-packages/stem/util/lru_cache.py
/usr/lib/python3.6/site-packages/stem/util/ordereddict.py
/usr/lib/python3.6/site-packages/stem/util/ports.cfg
/usr/lib/python3.6/site-packages/stem/util/proc.py
/usr/lib/python3.6/site-packages/stem/util/str_tools.py
/usr/lib/python3.6/site-packages/stem/util/system.py
/usr/lib/python3.6/site-packages/stem/util/term.py
/usr/lib/python3.6/site-packages/stem/util/test_tools.py
/usr/lib/python3.6/site-packages/stem/util/tor_tools.py
/usr/lib/python3.6/site-packages/stem/version.py
/usr/share/licenses/python3-stem
/usr/share/licenses/python3-stem/LICENSE

References

Summary

In this tutorial we learn how to install python3-stem on Rocky Linux 8 using yum and dnf.