How To Install python3-PyMySQL on Fedora 36

In this tutorial we learn how to install python3-PyMySQL in Fedora 36. python3-PyMySQL is Pure-Python MySQL client library

Introduction

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

What is python3-PyMySQL

This package contains a pure-Python MySQL client library. The goal of PyMySQL is to be a drop-in replacement for MySQLdb and work on CPython, PyPy, IronPython and Jython.

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

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

sudo dnf -y install python3-PyMySQL

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

sudo yum -y install python3-PyMySQL

How To Uninstall python3-PyMySQL on Fedora 36

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

sudo dnf remove python3-PyMySQL

python3-PyMySQL Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/PyMySQL-0.10.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/PyMySQL-0.10.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/PyMySQL-0.10.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/PyMySQL-0.10.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/PyMySQL-0.10.1-py3.10.egg-info/requires.txt
/usr/lib/python3.10/site-packages/PyMySQL-0.10.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/pymysql
/usr/lib/python3.10/site-packages/pymysql/__init__.py
/usr/lib/python3.10/site-packages/pymysql/__pycache__
/usr/lib/python3.10/site-packages/pymysql/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/_auth.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/_auth.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/_compat.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/_compat.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/_socketio.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/_socketio.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/charset.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/charset.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/connections.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/connections.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/converters.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/converters.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/cursors.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/cursors.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/err.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/err.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/optionfile.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/optionfile.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/protocol.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/protocol.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/times.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/times.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/util.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/__pycache__/util.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/_auth.py
/usr/lib/python3.10/site-packages/pymysql/_compat.py
/usr/lib/python3.10/site-packages/pymysql/_socketio.py
/usr/lib/python3.10/site-packages/pymysql/charset.py
/usr/lib/python3.10/site-packages/pymysql/connections.py
/usr/lib/python3.10/site-packages/pymysql/constants
/usr/lib/python3.10/site-packages/pymysql/constants/CLIENT.py
/usr/lib/python3.10/site-packages/pymysql/constants/COMMAND.py
/usr/lib/python3.10/site-packages/pymysql/constants/CR.py
/usr/lib/python3.10/site-packages/pymysql/constants/ER.py
/usr/lib/python3.10/site-packages/pymysql/constants/FIELD_TYPE.py
/usr/lib/python3.10/site-packages/pymysql/constants/FLAG.py
/usr/lib/python3.10/site-packages/pymysql/constants/SERVER_STATUS.py
/usr/lib/python3.10/site-packages/pymysql/constants/__init__.py
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/CLIENT.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/CLIENT.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/COMMAND.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/COMMAND.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/CR.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/CR.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/ER.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/ER.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/FIELD_TYPE.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/FIELD_TYPE.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/FLAG.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/FLAG.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/SERVER_STATUS.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/SERVER_STATUS.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/pymysql/constants/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/pymysql/converters.py
/usr/lib/python3.10/site-packages/pymysql/cursors.py
/usr/lib/python3.10/site-packages/pymysql/err.py
/usr/lib/python3.10/site-packages/pymysql/optionfile.py
/usr/lib/python3.10/site-packages/pymysql/protocol.py
/usr/lib/python3.10/site-packages/pymysql/times.py
/usr/lib/python3.10/site-packages/pymysql/util.py
/usr/share/doc/python3-PyMySQL
/usr/share/doc/python3-PyMySQL/README.rst
/usr/share/licenses/python3-PyMySQL
/usr/share/licenses/python3-PyMySQL/LICENSE

References

Summary

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