How To Install python3-usort on Fedora 36

In this tutorial we learn how to install python3-usort in Fedora 36. python3-usort is A small, safe import sorter

Introduction

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

What is python3-usort

μsort is a safe, minimal import sorter. Its primary goal is to make no “dangerous” changes to code, and to make no changes on code style. This is achieved by detecting distinct “blocks” of imports that are the most likely to be safely interchangeable, and only reordering imports within these blocks without altering formatting. Code style is left as an exercise for linters and formatters.

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

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

sudo dnf -y install python3-usort

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

sudo yum -y install python3-usort

How To Uninstall python3-usort on Fedora 36

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

sudo dnf remove python3-usort

python3-usort Package Contents on Fedora 36

/usr/bin/usort
/usr/lib/python3.10/site-packages/usort
/usr/lib/python3.10/site-packages/usort-0.6.3-py3.10.egg-info
/usr/lib/python3.10/site-packages/usort-0.6.3-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/usort-0.6.3-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/usort-0.6.3-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/usort-0.6.3-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/usort-0.6.3-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/usort-0.6.3-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/usort/__init__.py
/usr/lib/python3.10/site-packages/usort/__main__.py
/usr/lib/python3.10/site-packages/usort/__pycache__
/usr/lib/python3.10/site-packages/usort/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/cli.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/cli.cpython-310.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/config.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/config.cpython-310.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/sorting.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/sorting.cpython-310.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/stdlibs.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/stdlibs.cpython-310.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/util.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/util.cpython-310.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/usort/__pycache__/version.cpython-310.pyc
/usr/lib/python3.10/site-packages/usort/cli.py
/usr/lib/python3.10/site-packages/usort/config.py
/usr/lib/python3.10/site-packages/usort/sorting.py
/usr/lib/python3.10/site-packages/usort/stdlibs.py
/usr/lib/python3.10/site-packages/usort/util.py
/usr/lib/python3.10/site-packages/usort/version.py
/usr/share/doc/python3-usort
/usr/share/doc/python3-usort/CHANGELOG.md
/usr/share/doc/python3-usort/README.md
/usr/share/licenses/python3-usort
/usr/share/licenses/python3-usort/LICENSE

References

Summary

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