How To Install python2-pycodestyle on Rocky Linux 8
Introduction
In this tutorial we learn how to install python2-pycodestyle
on Rocky Linux 8.
What is python2-pycodestyle
pycodestyle is a tool to check your Python code against some of the style conventions in PEP 8. It has a plugin architecture, making new checks easy, and its output is parseable, making it easy to jump to an error location in your editor.
We can use yum
or dnf
to install python2-pycodestyle
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python2-pycodestyle.
Install python2-pycodestyle on Rocky Linux 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install python2-pycodestyle
using dnf
by running the following command:
sudo dnf -y install python2-pycodestyle
Install python2-pycodestyle on Rocky Linux 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install python2-pycodestyle
using yum
by running the following command:
sudo yum -y install python2-pycodestyle
How To Uninstall python2-pycodestyle on Rocky Linux 8
To uninstall only the python2-pycodestyle
package we can use the following command:
sudo dnf remove python2-pycodestyle
python2-pycodestyle Package Contents on Rocky Linux 8
/usr/bin/pycodestyle-2
/usr/bin/pycodestyle-2.7
/usr/lib/python2.7/site-packages/pycodestyle-2.5.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/pycodestyle-2.5.0-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/pycodestyle-2.5.0-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/pycodestyle-2.5.0-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/pycodestyle-2.5.0-py2.7.egg-info/entry_points.txt
/usr/lib/python2.7/site-packages/pycodestyle-2.5.0-py2.7.egg-info/namespace_packages.txt
/usr/lib/python2.7/site-packages/pycodestyle-2.5.0-py2.7.egg-info/not-zip-safe
/usr/lib/python2.7/site-packages/pycodestyle-2.5.0-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/pycodestyle.py
/usr/lib/python2.7/site-packages/pycodestyle.pyc
/usr/lib/python2.7/site-packages/pycodestyle.pyo
/usr/share/doc/python2-pycodestyle
/usr/share/doc/python2-pycodestyle/CHANGES.txt
/usr/share/doc/python2-pycodestyle/README.rst
/usr/share/licenses/python2-pycodestyle
/usr/share/licenses/python2-pycodestyle/LICENSE
References
Summary
In this tutorial we learn how to install python2-pycodestyle
on Rocky Linux 8 using yum and dnf.