How To Install black on Fedora 34
Introduction
In this tutorial we learn how to install black
on Fedora 34.
What is black
Black is the uncompromising Python code formatter. By using it, you agree to cease control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting. You will save time and mental energy for more important matters.
We can use yum
or dnf
to install black
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install black.
Install black 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 black
using dnf
by running the following command:
sudo dnf -y install black
Install black 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 black
using yum
by running the following command:
sudo yum -y install black
How To Uninstall black on Fedora 34
To uninstall only the black
package we can use the following command:
sudo dnf remove black
black Package Contents on Fedora 34
/usr/bin/black
/usr/bin/black-3.9
/usr/bin/black-primer
/usr/bin/black-primer-3.9
/usr/bin/blackd
/usr/bin/blackd-3.9
/usr/lib/python3.9/site-packages/__pycache__/_black_version.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/__pycache__/_black_version.cpython-39.pyc
/usr/lib/python3.9/site-packages/_black_version.py
/usr/lib/python3.9/site-packages/black
/usr/lib/python3.9/site-packages/black-20.8b1.dist-info
/usr/lib/python3.9/site-packages/black-20.8b1.dist-info/INSTALLER
/usr/lib/python3.9/site-packages/black-20.8b1.dist-info/LICENSE
/usr/lib/python3.9/site-packages/black-20.8b1.dist-info/METADATA
/usr/lib/python3.9/site-packages/black-20.8b1.dist-info/WHEEL
/usr/lib/python3.9/site-packages/black-20.8b1.dist-info/entry_points.txt
/usr/lib/python3.9/site-packages/black-20.8b1.dist-info/top_level.txt
/usr/lib/python3.9/site-packages/black/__init__.py
/usr/lib/python3.9/site-packages/black/__main__.py
/usr/lib/python3.9/site-packages/black/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/black/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/black/__pycache__/__main__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/black/__pycache__/__main__.cpython-39.pyc
/usr/lib/python3.9/site-packages/black/py.typed
/usr/lib/python3.9/site-packages/black_primer
/usr/lib/python3.9/site-packages/black_primer/__pycache__/cli.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/black_primer/__pycache__/cli.cpython-39.pyc
/usr/lib/python3.9/site-packages/black_primer/__pycache__/lib.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/black_primer/__pycache__/lib.cpython-39.pyc
/usr/lib/python3.9/site-packages/black_primer/cli.py
/usr/lib/python3.9/site-packages/black_primer/lib.py
/usr/lib/python3.9/site-packages/blackd
/usr/lib/python3.9/site-packages/blackd/__init__.py
/usr/lib/python3.9/site-packages/blackd/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blackd/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3
/usr/lib/python3.9/site-packages/blib2to3/Grammar.txt
/usr/lib/python3.9/site-packages/blib2to3/PatternGrammar.txt
/usr/lib/python3.9/site-packages/blib2to3/__init__.py
/usr/lib/python3.9/site-packages/blib2to3/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blib2to3/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3/__pycache__/pygram.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blib2to3/__pycache__/pygram.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3/__pycache__/pytree.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blib2to3/__pycache__/pytree.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__init__.py
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/conv.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/conv.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/driver.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/driver.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/grammar.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/grammar.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/literals.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/literals.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/parse.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/parse.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/pgen.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/pgen.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/token.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/token.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/tokenize.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/__pycache__/tokenize.cpython-39.pyc
/usr/lib/python3.9/site-packages/blib2to3/pgen2/conv.py
/usr/lib/python3.9/site-packages/blib2to3/pgen2/driver.py
/usr/lib/python3.9/site-packages/blib2to3/pgen2/grammar.py
/usr/lib/python3.9/site-packages/blib2to3/pgen2/literals.py
/usr/lib/python3.9/site-packages/blib2to3/pgen2/parse.py
/usr/lib/python3.9/site-packages/blib2to3/pgen2/pgen.py
/usr/lib/python3.9/site-packages/blib2to3/pgen2/token.py
/usr/lib/python3.9/site-packages/blib2to3/pgen2/tokenize.py
/usr/lib/python3.9/site-packages/blib2to3/pygram.py
/usr/lib/python3.9/site-packages/blib2to3/pytree.py
/usr/share/doc/black
/usr/share/doc/black/README.md
/usr/share/licenses/black
/usr/share/licenses/black/LICENSE
/usr/share/man/man1/black.1.gz
/usr/share/man/man1/blackd.1.gz
References
Summary
In this tutorial we learn how to install black
on Fedora 34 using yum and dnf.