How To Install tox on Fedora 34

tox is Virtualenv-based automation of test activities

Introduction

In this tutorial we learn how to install tox on Fedora 34.

What is tox

Tox as is a generic virtualenv management and test command line tool you can use for - checking your package installs correctly with different Python versions and interpreters - running your tests in each of the environments, configuring your test tool of choice - acting as a frontend to Continuous Integration servers, greatly reducing boilerplate and merging CI and shell-based testing.

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

Install tox on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install tox

Install tox on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install tox using yum by running the following command:

sudo yum -y install tox

How To Uninstall tox on Fedora 34

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

sudo dnf remove tox

tox Package Contents on Fedora 34

/usr/bin/tox
/usr/bin/tox-quickstart
/usr/lib/python3.9/site-packages/tox
/usr/lib/python3.9/site-packages/tox-3.23.0.dist-info
/usr/lib/python3.9/site-packages/tox-3.23.0.dist-info/INSTALLER
/usr/lib/python3.9/site-packages/tox-3.23.0.dist-info/LICENSE
/usr/lib/python3.9/site-packages/tox-3.23.0.dist-info/METADATA
/usr/lib/python3.9/site-packages/tox-3.23.0.dist-info/WHEEL
/usr/lib/python3.9/site-packages/tox-3.23.0.dist-info/entry_points.txt
/usr/lib/python3.9/site-packages/tox-3.23.0.dist-info/top_level.txt
/usr/lib/python3.9/site-packages/tox/__init__.py
/usr/lib/python3.9/site-packages/tox/__main__.py
/usr/lib/python3.9/site-packages/tox/__pycache__
/usr/lib/python3.9/site-packages/tox/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/__main__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/__main__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/_pytestplugin.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/_pytestplugin.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/_quickstart.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/_quickstart.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/action.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/action.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/cli.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/cli.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/constants.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/constants.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/exception.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/exception.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/hookspecs.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/hookspecs.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/reporter.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/reporter.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/venv.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/venv.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/version.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/__pycache__/version.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/_pytestplugin.py
/usr/lib/python3.9/site-packages/tox/_quickstart.py
/usr/lib/python3.9/site-packages/tox/action.py
/usr/lib/python3.9/site-packages/tox/cli.py
/usr/lib/python3.9/site-packages/tox/config
/usr/lib/python3.9/site-packages/tox/config/__init__.py
/usr/lib/python3.9/site-packages/tox/config/__pycache__
/usr/lib/python3.9/site-packages/tox/config/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/config/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/config/__pycache__/parallel.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/config/__pycache__/parallel.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/config/__pycache__/reporter.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/config/__pycache__/reporter.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/config/parallel.py
/usr/lib/python3.9/site-packages/tox/config/reporter.py
/usr/lib/python3.9/site-packages/tox/constants.py
/usr/lib/python3.9/site-packages/tox/exception.py
/usr/lib/python3.9/site-packages/tox/helper
/usr/lib/python3.9/site-packages/tox/helper/__init__.py
/usr/lib/python3.9/site-packages/tox/helper/__pycache__
/usr/lib/python3.9/site-packages/tox/helper/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/helper/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/helper/__pycache__/build_isolated.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/helper/__pycache__/build_isolated.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/helper/__pycache__/build_requires.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/helper/__pycache__/build_requires.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/helper/__pycache__/get_site_package_dir.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/helper/__pycache__/get_site_package_dir.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/helper/__pycache__/get_version.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/helper/__pycache__/get_version.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/helper/build_isolated.py
/usr/lib/python3.9/site-packages/tox/helper/build_requires.py
/usr/lib/python3.9/site-packages/tox/helper/get_site_package_dir.py
/usr/lib/python3.9/site-packages/tox/helper/get_version.py
/usr/lib/python3.9/site-packages/tox/hookspecs.py
/usr/lib/python3.9/site-packages/tox/interpreters
/usr/lib/python3.9/site-packages/tox/interpreters/__init__.py
/usr/lib/python3.9/site-packages/tox/interpreters/__pycache__
/usr/lib/python3.9/site-packages/tox/interpreters/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/__pycache__/common.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/__pycache__/common.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/__pycache__/py_spec.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/__pycache__/py_spec.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/__pycache__/unix.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/__pycache__/unix.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/__pycache__/via_path.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/__pycache__/via_path.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/common.py
/usr/lib/python3.9/site-packages/tox/interpreters/py_spec.py
/usr/lib/python3.9/site-packages/tox/interpreters/unix.py
/usr/lib/python3.9/site-packages/tox/interpreters/via_path.py
/usr/lib/python3.9/site-packages/tox/interpreters/windows
/usr/lib/python3.9/site-packages/tox/interpreters/windows/__init__.py
/usr/lib/python3.9/site-packages/tox/interpreters/windows/__pycache__
/usr/lib/python3.9/site-packages/tox/interpreters/windows/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/windows/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/windows/__pycache__/pep514.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/windows/__pycache__/pep514.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/interpreters/windows/pep514.py
/usr/lib/python3.9/site-packages/tox/logs
/usr/lib/python3.9/site-packages/tox/logs/__init__.py
/usr/lib/python3.9/site-packages/tox/logs/__pycache__
/usr/lib/python3.9/site-packages/tox/logs/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/logs/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/logs/__pycache__/command.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/logs/__pycache__/command.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/logs/__pycache__/env.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/logs/__pycache__/env.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/logs/__pycache__/result.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/logs/__pycache__/result.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/logs/command.py
/usr/lib/python3.9/site-packages/tox/logs/env.py
/usr/lib/python3.9/site-packages/tox/logs/result.py
/usr/lib/python3.9/site-packages/tox/package
/usr/lib/python3.9/site-packages/tox/package/__init__.py
/usr/lib/python3.9/site-packages/tox/package/__pycache__
/usr/lib/python3.9/site-packages/tox/package/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/package/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/package/__pycache__/local.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/package/__pycache__/local.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/package/__pycache__/view.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/package/__pycache__/view.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/package/builder
/usr/lib/python3.9/site-packages/tox/package/builder/__init__.py
/usr/lib/python3.9/site-packages/tox/package/builder/__pycache__
/usr/lib/python3.9/site-packages/tox/package/builder/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/package/builder/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/package/builder/__pycache__/isolated.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/package/builder/__pycache__/isolated.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/package/builder/__pycache__/legacy.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/package/builder/__pycache__/legacy.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/package/builder/isolated.py
/usr/lib/python3.9/site-packages/tox/package/builder/legacy.py
/usr/lib/python3.9/site-packages/tox/package/local.py
/usr/lib/python3.9/site-packages/tox/package/view.py
/usr/lib/python3.9/site-packages/tox/reporter.py
/usr/lib/python3.9/site-packages/tox/session
/usr/lib/python3.9/site-packages/tox/session/__init__.py
/usr/lib/python3.9/site-packages/tox/session/__pycache__
/usr/lib/python3.9/site-packages/tox/session/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/session/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/session/commands
/usr/lib/python3.9/site-packages/tox/session/commands/__init__.py
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__/help.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__/help.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__/help_ini.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__/help_ini.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__/provision.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__/provision.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__/show_config.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__/show_config.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__/show_env.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/__pycache__/show_env.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/help.py
/usr/lib/python3.9/site-packages/tox/session/commands/help_ini.py
/usr/lib/python3.9/site-packages/tox/session/commands/provision.py
/usr/lib/python3.9/site-packages/tox/session/commands/run
/usr/lib/python3.9/site-packages/tox/session/commands/run/__init__.py
/usr/lib/python3.9/site-packages/tox/session/commands/run/__pycache__
/usr/lib/python3.9/site-packages/tox/session/commands/run/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/run/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/run/__pycache__/parallel.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/run/__pycache__/parallel.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/run/__pycache__/sequential.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/run/__pycache__/sequential.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/session/commands/run/parallel.py
/usr/lib/python3.9/site-packages/tox/session/commands/run/sequential.py
/usr/lib/python3.9/site-packages/tox/session/commands/show_config.py
/usr/lib/python3.9/site-packages/tox/session/commands/show_env.py
/usr/lib/python3.9/site-packages/tox/util
/usr/lib/python3.9/site-packages/tox/util/__init__.py
/usr/lib/python3.9/site-packages/tox/util/__pycache__
/usr/lib/python3.9/site-packages/tox/util/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/graph.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/graph.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/lock.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/lock.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/main.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/main.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/path.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/path.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/spinner.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/spinner.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/stdlib.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/tox/util/__pycache__/stdlib.cpython-39.pyc
/usr/lib/python3.9/site-packages/tox/util/graph.py
/usr/lib/python3.9/site-packages/tox/util/lock.py
/usr/lib/python3.9/site-packages/tox/util/main.py
/usr/lib/python3.9/site-packages/tox/util/path.py
/usr/lib/python3.9/site-packages/tox/util/spinner.py
/usr/lib/python3.9/site-packages/tox/util/stdlib.py
/usr/lib/python3.9/site-packages/tox/venv.py
/usr/lib/python3.9/site-packages/tox/version.py

References

Summary

In this tutorial we learn how to install tox on Fedora 34 using yum and dnf.