How To Install ptpython3 on Fedora 34
Introduction
In this tutorial we learn how to install ptpython3
on Fedora 34.
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 34. In this tutorial we discuss both methods but you only need to choose one of method to install ptpython3.
Install ptpython3 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 ptpython3
using dnf
by running the following command:
sudo dnf -y install ptpython3
Install ptpython3 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 ptpython3
using yum
by running the following command:
sudo yum -y install ptpython3
How To Uninstall ptpython3 on Fedora 34
To uninstall only the ptpython3
package we can use the following command:
sudo dnf remove ptpython3
ptpython3 Package Contents on Fedora 34
/usr/bin/ptipython
/usr/bin/ptipython3
/usr/bin/ptipython3.9
/usr/bin/ptpython
/usr/bin/ptpython3
/usr/bin/ptpython3.9
/usr/lib/python3.9/site-packages/ptpython
/usr/lib/python3.9/site-packages/ptpython-3.0.2-py3.9.egg-info
/usr/lib/python3.9/site-packages/ptpython-3.0.2-py3.9.egg-info/PKG-INFO
/usr/lib/python3.9/site-packages/ptpython-3.0.2-py3.9.egg-info/SOURCES.txt
/usr/lib/python3.9/site-packages/ptpython-3.0.2-py3.9.egg-info/dependency_links.txt
/usr/lib/python3.9/site-packages/ptpython-3.0.2-py3.9.egg-info/entry_points.txt
/usr/lib/python3.9/site-packages/ptpython-3.0.2-py3.9.egg-info/requires.txt
/usr/lib/python3.9/site-packages/ptpython-3.0.2-py3.9.egg-info/top_level.txt
/usr/lib/python3.9/site-packages/ptpython/__init__.py
/usr/lib/python3.9/site-packages/ptpython/__main__.py
/usr/lib/python3.9/site-packages/ptpython/__pycache__
/usr/lib/python3.9/site-packages/ptpython/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/__main__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/__main__.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/completer.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/completer.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/eventloop.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/eventloop.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/filters.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/filters.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/history_browser.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/history_browser.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/ipython.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/ipython.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/key_bindings.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/key_bindings.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/layout.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/layout.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/prompt_style.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/prompt_style.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/python_input.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/python_input.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/repl.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/repl.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/style.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/style.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/utils.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/utils.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/validator.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/__pycache__/validator.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/completer.py
/usr/lib/python3.9/site-packages/ptpython/contrib
/usr/lib/python3.9/site-packages/ptpython/contrib/__init__.py
/usr/lib/python3.9/site-packages/ptpython/contrib/__pycache__
/usr/lib/python3.9/site-packages/ptpython/contrib/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/contrib/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/contrib/__pycache__/asyncssh_repl.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/contrib/__pycache__/asyncssh_repl.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/contrib/asyncssh_repl.py
/usr/lib/python3.9/site-packages/ptpython/entry_points
/usr/lib/python3.9/site-packages/ptpython/entry_points/__init__.py
/usr/lib/python3.9/site-packages/ptpython/entry_points/__pycache__
/usr/lib/python3.9/site-packages/ptpython/entry_points/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/entry_points/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/entry_points/__pycache__/run_ptipython.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/entry_points/__pycache__/run_ptipython.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/entry_points/__pycache__/run_ptpython.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/ptpython/entry_points/__pycache__/run_ptpython.cpython-39.pyc
/usr/lib/python3.9/site-packages/ptpython/entry_points/run_ptipython.py
/usr/lib/python3.9/site-packages/ptpython/entry_points/run_ptpython.py
/usr/lib/python3.9/site-packages/ptpython/eventloop.py
/usr/lib/python3.9/site-packages/ptpython/filters.py
/usr/lib/python3.9/site-packages/ptpython/history_browser.py
/usr/lib/python3.9/site-packages/ptpython/ipython.py
/usr/lib/python3.9/site-packages/ptpython/key_bindings.py
/usr/lib/python3.9/site-packages/ptpython/layout.py
/usr/lib/python3.9/site-packages/ptpython/prompt_style.py
/usr/lib/python3.9/site-packages/ptpython/python_input.py
/usr/lib/python3.9/site-packages/ptpython/repl.py
/usr/lib/python3.9/site-packages/ptpython/style.py
/usr/lib/python3.9/site-packages/ptpython/utils.py
/usr/lib/python3.9/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 34 using yum and dnf.