How to Install and Uninstall python3-mysqldb Package on Debian 12 (Bookworm)

Last updated: November 22,2024

1. Install "python3-mysqldb" package

Please follow the step by step instructions below to install python3-mysqldb on Debian 12 (Bookworm)

$ sudo apt update $ sudo apt install python3-mysqldb

2. Uninstall "python3-mysqldb" package

In this section, we are going to explain the necessary steps to uninstall python3-mysqldb on Debian 12 (Bookworm):

$ sudo apt remove python3-mysqldb $ sudo apt autoclean && sudo apt autoremove

3. Information about the python3-mysqldb package on Debian 12 (Bookworm)

Package: python3-mysqldb
Source: python-mysqldb (1.4.6-2)
Version: 1.4.6-2+b1
Installed-Size: 172
Maintainer: Debian Python Team
Architecture: amd64
Depends: python3 (<< 3.12), python3 (>= 3.11~), python3:any, libc6 (>= 2.4), libmariadb3 (>= 3.0.0)
Suggests: default-mysql-server | virtual-mysql-server
Description: Python interface to MySQL
Description-md5: ef94561a9d5a0ef91971efb133cb764a
Homepage: https://github.com/PyMySQL/mysqlclient
Tag: implemented-in::python
Section: python
Priority: optional
Filename: pool/main/p/python-mysqldb/python3-mysqldb_1.4.6-2+b1_amd64.deb
Size: 49508
MD5sum: c607d1dc678c56dc07da96e9836258ed
SHA256: 91c28fc8b770bf5ab906178f2d893efbfead7aaaba938b9aa9ffaa8f251034fc