How To Install python3-tomlkit on Fedora 36

In this tutorial we learn how to install python3-tomlkit in Fedora 36. python3-tomlkit is Style preserving TOML library

Introduction

In this tutorial we learn how to install python3-tomlkit on Fedora 36.

What is python3-tomlkit

TOML Kit is a 1.0.0rc1-compliant TOML library. It includes a parser that preserves all comments, indentations, whitespace and internal element ordering, and makes them accessible and editable via an intuitive API. You can also create new TOML documents from scratch using the provided helpers. Part of the implementation as been adapted, improved and fixed from Molten.

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

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

sudo dnf -y install python3-tomlkit

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

sudo yum -y install python3-tomlkit

How To Uninstall python3-tomlkit on Fedora 36

To uninstall only the python3-tomlkit package we can use the following command:

sudo dnf remove python3-tomlkit

python3-tomlkit Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/tomlkit
/usr/lib/python3.10/site-packages/tomlkit-0.7.2.dist-info
/usr/lib/python3.10/site-packages/tomlkit-0.7.2.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/tomlkit-0.7.2.dist-info/LICENSE
/usr/lib/python3.10/site-packages/tomlkit-0.7.2.dist-info/METADATA
/usr/lib/python3.10/site-packages/tomlkit-0.7.2.dist-info/WHEEL
/usr/lib/python3.10/site-packages/tomlkit/__init__.py
/usr/lib/python3.10/site-packages/tomlkit/__pycache__
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/_compat.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/_compat.cpython-310.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/_utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/_utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/api.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/api.cpython-310.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/container.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/container.cpython-310.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/exceptions.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/exceptions.cpython-310.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/items.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/items.cpython-310.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/parser.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/parser.cpython-310.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/source.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/source.cpython-310.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/toml_char.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/toml_char.cpython-310.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/toml_document.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/toml_document.cpython-310.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/toml_file.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/tomlkit/__pycache__/toml_file.cpython-310.pyc
/usr/lib/python3.10/site-packages/tomlkit/_compat.py
/usr/lib/python3.10/site-packages/tomlkit/_utils.py
/usr/lib/python3.10/site-packages/tomlkit/api.py
/usr/lib/python3.10/site-packages/tomlkit/container.py
/usr/lib/python3.10/site-packages/tomlkit/exceptions.py
/usr/lib/python3.10/site-packages/tomlkit/items.py
/usr/lib/python3.10/site-packages/tomlkit/parser.py
/usr/lib/python3.10/site-packages/tomlkit/py.typed
/usr/lib/python3.10/site-packages/tomlkit/source.py
/usr/lib/python3.10/site-packages/tomlkit/toml_char.py
/usr/lib/python3.10/site-packages/tomlkit/toml_document.py
/usr/lib/python3.10/site-packages/tomlkit/toml_file.py
/usr/share/doc/python3-tomlkit
/usr/share/doc/python3-tomlkit/README.md
/usr/share/licenses/python3-tomlkit
/usr/share/licenses/python3-tomlkit/LICENSE

References

Summary

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