How To Install pipx on Fedora 34

pipx is Install and run Python applications in isolated environments

Introduction

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

What is pipx

pipx is a tool to help you install and run end-user applications written in Python. It’s roughly similar to macOS’s brew, JavaScript’s npx, and Linux’s apt. It’s closely related to pip. In fact, it uses pip, but is focused on installing and managing Python packages that can be run from the command line directly as applications.

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

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

sudo dnf -y install pipx

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

sudo yum -y install pipx

How To Uninstall pipx on Fedora 34

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

sudo dnf remove pipx

pipx Package Contents on Fedora 34

/usr/bin/pipx
/usr/lib/python3.9/site-packages/pipx
/usr/lib/python3.9/site-packages/pipx-0.16.1.0.dist-info
/usr/lib/python3.9/site-packages/pipx-0.16.1.0.dist-info/INSTALLER
/usr/lib/python3.9/site-packages/pipx-0.16.1.0.dist-info/LICENSE
/usr/lib/python3.9/site-packages/pipx-0.16.1.0.dist-info/METADATA
/usr/lib/python3.9/site-packages/pipx-0.16.1.0.dist-info/WHEEL
/usr/lib/python3.9/site-packages/pipx-0.16.1.0.dist-info/entry_points.txt
/usr/lib/python3.9/site-packages/pipx-0.16.1.0.dist-info/top_level.txt
/usr/lib/python3.9/site-packages/pipx-0.16.1.0.dist-info/zip-safe
/usr/lib/python3.9/site-packages/pipx/__init__.py
/usr/lib/python3.9/site-packages/pipx/__main__.py
/usr/lib/python3.9/site-packages/pipx/__pycache__
/usr/lib/python3.9/site-packages/pipx/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/__main__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/__main__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/animate.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/animate.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/colors.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/colors.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/constants.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/constants.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/emojis.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/emojis.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/interpreter.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/interpreter.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/main.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/main.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/package_specifier.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/package_specifier.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/pipx_metadata_file.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/pipx_metadata_file.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/shared_libs.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/shared_libs.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/util.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/util.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/venv.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/venv.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/venv_inspect.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/venv_inspect.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/version.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/version.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/animate.py
/usr/lib/python3.9/site-packages/pipx/colors.py
/usr/lib/python3.9/site-packages/pipx/commands
/usr/lib/python3.9/site-packages/pipx/commands/__init__.py
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/common.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/common.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/ensure_path.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/ensure_path.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/inject.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/inject.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/install.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/install.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/list_packages.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/list_packages.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/reinstall.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/reinstall.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/run.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/run.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/run_pip.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/run_pip.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/uninstall.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/uninstall.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/upgrade.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/upgrade.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/common.py
/usr/lib/python3.9/site-packages/pipx/commands/ensure_path.py
/usr/lib/python3.9/site-packages/pipx/commands/inject.py
/usr/lib/python3.9/site-packages/pipx/commands/install.py
/usr/lib/python3.9/site-packages/pipx/commands/list_packages.py
/usr/lib/python3.9/site-packages/pipx/commands/reinstall.py
/usr/lib/python3.9/site-packages/pipx/commands/run.py
/usr/lib/python3.9/site-packages/pipx/commands/run_pip.py
/usr/lib/python3.9/site-packages/pipx/commands/uninstall.py
/usr/lib/python3.9/site-packages/pipx/commands/upgrade.py
/usr/lib/python3.9/site-packages/pipx/constants.py
/usr/lib/python3.9/site-packages/pipx/emojis.py
/usr/lib/python3.9/site-packages/pipx/interpreter.py
/usr/lib/python3.9/site-packages/pipx/main.py
/usr/lib/python3.9/site-packages/pipx/package_specifier.py
/usr/lib/python3.9/site-packages/pipx/pipx_metadata_file.py
/usr/lib/python3.9/site-packages/pipx/shared_libs.py
/usr/lib/python3.9/site-packages/pipx/util.py
/usr/lib/python3.9/site-packages/pipx/venv.py
/usr/lib/python3.9/site-packages/pipx/venv_inspect.py
/usr/lib/python3.9/site-packages/pipx/version.py
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/pipx.bash
/usr/share/fish
/usr/share/fish/vendor_completions.d
/usr/share/fish/vendor_completions.d/pipx.fish
/usr/share/licenses/pipx
/usr/share/licenses/pipx/LICENSE
/usr/share/pipx
/usr/share/pipx/pipx-completion.tcsh
/usr/bin/pipx
/usr/lib/python3.9/site-packages/pipx
/usr/lib/python3.9/site-packages/pipx-0.16.2.1.dist-info
/usr/lib/python3.9/site-packages/pipx-0.16.2.1.dist-info/INSTALLER
/usr/lib/python3.9/site-packages/pipx-0.16.2.1.dist-info/LICENSE
/usr/lib/python3.9/site-packages/pipx-0.16.2.1.dist-info/METADATA
/usr/lib/python3.9/site-packages/pipx-0.16.2.1.dist-info/WHEEL
/usr/lib/python3.9/site-packages/pipx-0.16.2.1.dist-info/entry_points.txt
/usr/lib/python3.9/site-packages/pipx-0.16.2.1.dist-info/top_level.txt
/usr/lib/python3.9/site-packages/pipx-0.16.2.1.dist-info/zip-safe
/usr/lib/python3.9/site-packages/pipx/__init__.py
/usr/lib/python3.9/site-packages/pipx/__main__.py
/usr/lib/python3.9/site-packages/pipx/__pycache__
/usr/lib/python3.9/site-packages/pipx/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/__main__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/__main__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/animate.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/animate.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/colors.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/colors.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/constants.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/constants.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/emojis.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/emojis.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/interpreter.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/interpreter.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/main.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/main.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/package_specifier.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/package_specifier.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/pipx_metadata_file.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/pipx_metadata_file.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/shared_libs.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/shared_libs.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/util.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/util.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/venv.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/venv.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/venv_inspect.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/venv_inspect.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/version.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/__pycache__/version.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/animate.py
/usr/lib/python3.9/site-packages/pipx/colors.py
/usr/lib/python3.9/site-packages/pipx/commands
/usr/lib/python3.9/site-packages/pipx/commands/__init__.py
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/common.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/common.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/ensure_path.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/ensure_path.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/inject.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/inject.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/install.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/install.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/list_packages.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/list_packages.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/reinstall.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/reinstall.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/run.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/run.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/run_pip.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/run_pip.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/uninstall.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/uninstall.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/upgrade.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/pipx/commands/__pycache__/upgrade.cpython-39.pyc
/usr/lib/python3.9/site-packages/pipx/commands/common.py
/usr/lib/python3.9/site-packages/pipx/commands/ensure_path.py
/usr/lib/python3.9/site-packages/pipx/commands/inject.py
/usr/lib/python3.9/site-packages/pipx/commands/install.py
/usr/lib/python3.9/site-packages/pipx/commands/list_packages.py
/usr/lib/python3.9/site-packages/pipx/commands/reinstall.py
/usr/lib/python3.9/site-packages/pipx/commands/run.py
/usr/lib/python3.9/site-packages/pipx/commands/run_pip.py
/usr/lib/python3.9/site-packages/pipx/commands/uninstall.py
/usr/lib/python3.9/site-packages/pipx/commands/upgrade.py
/usr/lib/python3.9/site-packages/pipx/constants.py
/usr/lib/python3.9/site-packages/pipx/emojis.py
/usr/lib/python3.9/site-packages/pipx/interpreter.py
/usr/lib/python3.9/site-packages/pipx/main.py
/usr/lib/python3.9/site-packages/pipx/package_specifier.py
/usr/lib/python3.9/site-packages/pipx/pipx_metadata_file.py
/usr/lib/python3.9/site-packages/pipx/shared_libs.py
/usr/lib/python3.9/site-packages/pipx/util.py
/usr/lib/python3.9/site-packages/pipx/venv.py
/usr/lib/python3.9/site-packages/pipx/venv_inspect.py
/usr/lib/python3.9/site-packages/pipx/version.py
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/pipx.bash
/usr/share/fish
/usr/share/fish/vendor_completions.d
/usr/share/fish/vendor_completions.d/pipx.fish
/usr/share/licenses/pipx
/usr/share/licenses/pipx/LICENSE
/usr/share/man/man1/pipx-completions.1.gz
/usr/share/man/man1/pipx-ensurepath.1.gz
/usr/share/man/man1/pipx-inject.1.gz
/usr/share/man/man1/pipx-install.1.gz
/usr/share/man/man1/pipx-list.1.gz
/usr/share/man/man1/pipx-reinstall-all.1.gz
/usr/share/man/man1/pipx-reinstall.1.gz
/usr/share/man/man1/pipx-run.1.gz
/usr/share/man/man1/pipx-runpip.1.gz
/usr/share/man/man1/pipx-uninstall-all.1.gz
/usr/share/man/man1/pipx-uninstall.1.gz
/usr/share/man/man1/pipx-upgrade-all.1.gz
/usr/share/man/man1/pipx-upgrade.1.gz
/usr/share/man/man1/pipx.1.gz
/usr/share/pipx
/usr/share/pipx/pipx-completion.tcsh

References

Summary

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