How To Install python2-chai on Rocky Linux 8
Introduction
In this tutorial we learn how to install python2-chai
on Rocky Linux 8.
What is python2-chai
Chai provides a very easy to use api for mocking/stubbing your python objects, patterned after the `Mocha <http for Ruby.
We can use yum
or dnf
to install python2-chai
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python2-chai.
Install python2-chai 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-chai
using dnf
by running the following command:
sudo dnf -y install python2-chai
Install python2-chai 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-chai
using yum
by running the following command:
sudo yum -y install python2-chai
How To Uninstall python2-chai on Rocky Linux 8
To uninstall only the python2-chai
package we can use the following command:
sudo dnf remove python2-chai
python2-chai Package Contents on Rocky Linux 8
/usr/lib/python2.7/site-packages/chai
/usr/lib/python2.7/site-packages/chai-1.1.2-py2.7.egg-info
/usr/lib/python2.7/site-packages/chai-1.1.2-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/chai-1.1.2-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/chai-1.1.2-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/chai-1.1.2-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/chai/__init__.py
/usr/lib/python2.7/site-packages/chai/__init__.pyc
/usr/lib/python2.7/site-packages/chai/__init__.pyo
/usr/lib/python2.7/site-packages/chai/_termcolor.py
/usr/lib/python2.7/site-packages/chai/_termcolor.pyc
/usr/lib/python2.7/site-packages/chai/_termcolor.pyo
/usr/lib/python2.7/site-packages/chai/chai.py
/usr/lib/python2.7/site-packages/chai/chai.pyc
/usr/lib/python2.7/site-packages/chai/chai.pyo
/usr/lib/python2.7/site-packages/chai/comparators.py
/usr/lib/python2.7/site-packages/chai/comparators.pyc
/usr/lib/python2.7/site-packages/chai/comparators.pyo
/usr/lib/python2.7/site-packages/chai/exception.py
/usr/lib/python2.7/site-packages/chai/exception.pyc
/usr/lib/python2.7/site-packages/chai/exception.pyo
/usr/lib/python2.7/site-packages/chai/expectation.py
/usr/lib/python2.7/site-packages/chai/expectation.pyc
/usr/lib/python2.7/site-packages/chai/expectation.pyo
/usr/lib/python2.7/site-packages/chai/mock.py
/usr/lib/python2.7/site-packages/chai/mock.pyc
/usr/lib/python2.7/site-packages/chai/mock.pyo
/usr/lib/python2.7/site-packages/chai/python2.py
/usr/lib/python2.7/site-packages/chai/python2.pyc
/usr/lib/python2.7/site-packages/chai/python2.pyo
/usr/lib/python2.7/site-packages/chai/spy.py
/usr/lib/python2.7/site-packages/chai/spy.pyc
/usr/lib/python2.7/site-packages/chai/spy.pyo
/usr/lib/python2.7/site-packages/chai/stub.py
/usr/lib/python2.7/site-packages/chai/stub.pyc
/usr/lib/python2.7/site-packages/chai/stub.pyo
/usr/share/doc/python2-chai
/usr/share/doc/python2-chai/README.rst
/usr/share/licenses/python2-chai
/usr/share/licenses/python2-chai/LICENSE.txt
References
Summary
In this tutorial we learn how to install python2-chai
on Rocky Linux 8 using yum and dnf.