How To Install python3-cmd2 on Fedora 36
Introduction
In this tutorial we learn how to install python3-cmd2
on Fedora 36.
What is python3-cmd2
Enhancements for standard library’s cmd module. Drop-in replacement adds several features for command-prompt tools * Searchable command history (commands * Load commands from file, save to file, edit commands in file * Multi-line commands * Case-insensitive commands * Special-character shortcut commands (beyond cmd’s “@” and “!”) * Settable environment parameters * Parsing commands with flags * > (filename), » (filename) redirect output to file * < (filename) gets input from file * bare >, », < redirect to/from paste buffer * accepts abbreviated commands when unambiguous *
py
enters interactive Python console * test apps against sample session transcript (see example/example.py) Usable without modification anywhere cmd is used; simply import cmd2.Cmd in place of cmd.Cmd. See docs at http
We can use yum
or dnf
to install python3-cmd2
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-cmd2.
Install python3-cmd2 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 python3-cmd2
using dnf
by running the following command:
sudo dnf -y install python3-cmd2
Install python3-cmd2 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 python3-cmd2
using yum
by running the following command:
sudo yum -y install python3-cmd2
How To Uninstall python3-cmd2 on Fedora 36
To uninstall only the python3-cmd2
package we can use the following command:
sudo dnf remove python3-cmd2
python3-cmd2 Package Contents on Fedora 36
/usr/lib/python3.10/site-packages/cmd2
/usr/lib/python3.10/site-packages/cmd2-2.3.3-py3.10.egg-info
/usr/lib/python3.10/site-packages/cmd2-2.3.3-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/cmd2-2.3.3-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/cmd2-2.3.3-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/cmd2-2.3.3-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/cmd2-2.3.3-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/cmd2/__init__.py
/usr/lib/python3.10/site-packages/cmd2/__pycache__
/usr/lib/python3.10/site-packages/cmd2/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/ansi.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/ansi.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/argparse_completer.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/argparse_completer.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/argparse_custom.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/argparse_custom.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/clipboard.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/clipboard.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/cmd2.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/cmd2.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/command_definition.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/command_definition.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/constants.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/constants.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/decorators.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/decorators.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/exceptions.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/exceptions.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/history.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/history.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/parsing.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/parsing.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/plugin.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/plugin.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/py_bridge.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/py_bridge.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/rl_utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/rl_utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/table_creator.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/table_creator.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/transcript.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/transcript.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/cmd2/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/cmd2/ansi.py
/usr/lib/python3.10/site-packages/cmd2/argparse_completer.py
/usr/lib/python3.10/site-packages/cmd2/argparse_custom.py
/usr/lib/python3.10/site-packages/cmd2/clipboard.py
/usr/lib/python3.10/site-packages/cmd2/cmd2.py
/usr/lib/python3.10/site-packages/cmd2/command_definition.py
/usr/lib/python3.10/site-packages/cmd2/constants.py
/usr/lib/python3.10/site-packages/cmd2/decorators.py
/usr/lib/python3.10/site-packages/cmd2/exceptions.py
/usr/lib/python3.10/site-packages/cmd2/history.py
/usr/lib/python3.10/site-packages/cmd2/parsing.py
/usr/lib/python3.10/site-packages/cmd2/plugin.py
/usr/lib/python3.10/site-packages/cmd2/py.typed
/usr/lib/python3.10/site-packages/cmd2/py_bridge.py
/usr/lib/python3.10/site-packages/cmd2/rl_utils.py
/usr/lib/python3.10/site-packages/cmd2/table_creator.py
/usr/lib/python3.10/site-packages/cmd2/transcript.py
/usr/lib/python3.10/site-packages/cmd2/utils.py
/usr/share/doc/python3-cmd2
/usr/share/doc/python3-cmd2/CHANGELOG.md
/usr/share/doc/python3-cmd2/README.md
/usr/share/doc/python3-cmd2/docs
/usr/share/doc/python3-cmd2/docs/Makefile
/usr/share/doc/python3-cmd2/docs/api
/usr/share/doc/python3-cmd2/docs/api/ansi.rst
/usr/share/doc/python3-cmd2/docs/api/argparse_completer.rst
/usr/share/doc/python3-cmd2/docs/api/argparse_custom.rst
/usr/share/doc/python3-cmd2/docs/api/cmd.rst
/usr/share/doc/python3-cmd2/docs/api/command_definition.rst
/usr/share/doc/python3-cmd2/docs/api/constants.rst
/usr/share/doc/python3-cmd2/docs/api/decorators.rst
/usr/share/doc/python3-cmd2/docs/api/exceptions.rst
/usr/share/doc/python3-cmd2/docs/api/history.rst
/usr/share/doc/python3-cmd2/docs/api/index.rst
/usr/share/doc/python3-cmd2/docs/api/parsing.rst
/usr/share/doc/python3-cmd2/docs/api/plugin.rst
/usr/share/doc/python3-cmd2/docs/api/plugin_external_test.rst
/usr/share/doc/python3-cmd2/docs/api/py_bridge.rst
/usr/share/doc/python3-cmd2/docs/api/table_creator.rst
/usr/share/doc/python3-cmd2/docs/api/utils.rst
/usr/share/doc/python3-cmd2/docs/conf.py
/usr/share/doc/python3-cmd2/docs/doc_conventions.rst
/usr/share/doc/python3-cmd2/docs/examples
/usr/share/doc/python3-cmd2/docs/examples/alternate_event_loops.rst
/usr/share/doc/python3-cmd2/docs/examples/first_app.rst
/usr/share/doc/python3-cmd2/docs/examples/index.rst
/usr/share/doc/python3-cmd2/docs/features
/usr/share/doc/python3-cmd2/docs/features/argument_processing.rst
/usr/share/doc/python3-cmd2/docs/features/builtin_commands.rst
/usr/share/doc/python3-cmd2/docs/features/clipboard.rst
/usr/share/doc/python3-cmd2/docs/features/commands.rst
/usr/share/doc/python3-cmd2/docs/features/completion.rst
/usr/share/doc/python3-cmd2/docs/features/disable_commands.rst
/usr/share/doc/python3-cmd2/docs/features/embedded_python_shells.rst
/usr/share/doc/python3-cmd2/docs/features/generating_output.rst
/usr/share/doc/python3-cmd2/docs/features/help.rst
/usr/share/doc/python3-cmd2/docs/features/history.rst
/usr/share/doc/python3-cmd2/docs/features/hooks.rst
/usr/share/doc/python3-cmd2/docs/features/index.rst
/usr/share/doc/python3-cmd2/docs/features/initialization.rst
/usr/share/doc/python3-cmd2/docs/features/misc.rst
/usr/share/doc/python3-cmd2/docs/features/modular_commands.rst
/usr/share/doc/python3-cmd2/docs/features/multiline_commands.rst
/usr/share/doc/python3-cmd2/docs/features/os.rst
/usr/share/doc/python3-cmd2/docs/features/packaging.rst
/usr/share/doc/python3-cmd2/docs/features/plugins.rst
/usr/share/doc/python3-cmd2/docs/features/prompt.rst
/usr/share/doc/python3-cmd2/docs/features/redirection.rst
/usr/share/doc/python3-cmd2/docs/features/scripting.rst
/usr/share/doc/python3-cmd2/docs/features/settings.rst
/usr/share/doc/python3-cmd2/docs/features/shortcuts_aliases_macros.rst
/usr/share/doc/python3-cmd2/docs/features/startup_commands.rst
/usr/share/doc/python3-cmd2/docs/features/table_creation.rst
/usr/share/doc/python3-cmd2/docs/features/transcripts.rst
/usr/share/doc/python3-cmd2/docs/index.rst
/usr/share/doc/python3-cmd2/docs/make.bat
/usr/share/doc/python3-cmd2/docs/migrating
/usr/share/doc/python3-cmd2/docs/migrating/incompatibilities.rst
/usr/share/doc/python3-cmd2/docs/migrating/index.rst
/usr/share/doc/python3-cmd2/docs/migrating/minimum.rst
/usr/share/doc/python3-cmd2/docs/migrating/next_steps.rst
/usr/share/doc/python3-cmd2/docs/migrating/summary.rst
/usr/share/doc/python3-cmd2/docs/migrating/why.rst
/usr/share/doc/python3-cmd2/docs/overview
/usr/share/doc/python3-cmd2/docs/overview/alternatives.rst
/usr/share/doc/python3-cmd2/docs/overview/index.rst
/usr/share/doc/python3-cmd2/docs/overview/installation.rst
/usr/share/doc/python3-cmd2/docs/overview/integrating.rst
/usr/share/doc/python3-cmd2/docs/overview/resources.rst
/usr/share/doc/python3-cmd2/docs/overview/summary.rst
/usr/share/doc/python3-cmd2/docs/plugins
/usr/share/doc/python3-cmd2/docs/plugins/external_test.rst
/usr/share/doc/python3-cmd2/docs/plugins/index.rst
/usr/share/doc/python3-cmd2/docs/testing.rst
/usr/share/licenses/python3-cmd2
/usr/share/licenses/python3-cmd2/LICENSE
References
Summary
In this tutorial we learn how to install python3-cmd2
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).