How To Install ptpython3 on Fedora 36

In this tutorial we learn how to install ptpython3 in Fedora 36. ptpython3 is Python REPL build on top of prompt_toolkit

Introduction

In this tutorial we learn how to install ptpython3 on Fedora 36.

What is ptpython3

Ptpython is an advanced Python REPL built on top of the prompt_toolkit library. It features syntax highlighting, multiline editing (the up arrow works), autocompletion, mouse support, support for color schemes, support for bracketed paste, both Vi and Emacs key bindings, support for double width (Chinese) characters, and many other things.

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

Install ptpython3 on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install ptpython3

Install ptpython3 on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install ptpython3

How To Uninstall ptpython3 on Fedora 36

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

sudo dnf remove ptpython3

ptpython3 Package Contents on Fedora 36

/usr/bin/ptipython
/usr/bin/ptipython3
/usr/bin/ptipython3.10
/usr/bin/ptpython
/usr/bin/ptpython3
/usr/bin/ptpython3.10
/usr/lib/python3.10/site-packages/ptpython
/usr/lib/python3.10/site-packages/ptpython-3.0.2-py3.10.egg-info
/usr/lib/python3.10/site-packages/ptpython-3.0.2-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/ptpython-3.0.2-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/ptpython-3.0.2-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/ptpython-3.0.2-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/ptpython-3.0.2-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/ptpython-3.0.2-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/ptpython/__init__.py
/usr/lib/python3.10/site-packages/ptpython/__main__.py
/usr/lib/python3.10/site-packages/ptpython/__pycache__
/usr/lib/python3.10/site-packages/ptpython/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/completer.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/completer.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/eventloop.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/eventloop.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/filters.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/filters.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/history_browser.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/history_browser.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/ipython.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/ipython.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/key_bindings.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/key_bindings.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/layout.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/layout.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/prompt_style.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/prompt_style.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/python_input.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/python_input.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/repl.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/repl.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/style.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/style.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/validator.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/__pycache__/validator.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/completer.py
/usr/lib/python3.10/site-packages/ptpython/contrib
/usr/lib/python3.10/site-packages/ptpython/contrib/__init__.py
/usr/lib/python3.10/site-packages/ptpython/contrib/__pycache__
/usr/lib/python3.10/site-packages/ptpython/contrib/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/contrib/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/contrib/__pycache__/asyncssh_repl.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/contrib/__pycache__/asyncssh_repl.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/contrib/asyncssh_repl.py
/usr/lib/python3.10/site-packages/ptpython/entry_points
/usr/lib/python3.10/site-packages/ptpython/entry_points/__init__.py
/usr/lib/python3.10/site-packages/ptpython/entry_points/__pycache__
/usr/lib/python3.10/site-packages/ptpython/entry_points/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/entry_points/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/entry_points/__pycache__/run_ptipython.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/entry_points/__pycache__/run_ptipython.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/entry_points/__pycache__/run_ptpython.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/ptpython/entry_points/__pycache__/run_ptpython.cpython-310.pyc
/usr/lib/python3.10/site-packages/ptpython/entry_points/run_ptipython.py
/usr/lib/python3.10/site-packages/ptpython/entry_points/run_ptpython.py
/usr/lib/python3.10/site-packages/ptpython/eventloop.py
/usr/lib/python3.10/site-packages/ptpython/filters.py
/usr/lib/python3.10/site-packages/ptpython/history_browser.py
/usr/lib/python3.10/site-packages/ptpython/ipython.py
/usr/lib/python3.10/site-packages/ptpython/key_bindings.py
/usr/lib/python3.10/site-packages/ptpython/layout.py
/usr/lib/python3.10/site-packages/ptpython/prompt_style.py
/usr/lib/python3.10/site-packages/ptpython/python_input.py
/usr/lib/python3.10/site-packages/ptpython/repl.py
/usr/lib/python3.10/site-packages/ptpython/style.py
/usr/lib/python3.10/site-packages/ptpython/utils.py
/usr/lib/python3.10/site-packages/ptpython/validator.py
/usr/share/doc/ptpython3
/usr/share/doc/ptpython3/CHANGELOG
/usr/share/doc/ptpython3/README.rst
/usr/share/licenses/ptpython3
/usr/share/licenses/ptpython3/LICENSE

References

Summary

In this tutorial we learn how to install ptpython3 on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).