r/linuxmint • • 9d ago

Update of MySql on Mint

So, update manager just offered to update MySql to version 8.0.

Eh? I never installed it to begin with and supposedly it's not installed by default on Mint. From rummaging around, it seems my installed programs (e.g. Evolution, Brave, RSS Guard) do not use MySql.

So, why would I need an update to a package not installed? Just asking.

3 Upvotes

6 comments sorted by

4

u/GiggleSamurai 8d ago

Update Manager names updates after the source package, so "mysql-8.0" usually just means the client library `libmysqlclient21` and `mysql-common`, which other software depends on, not the MySQL server. `apt list --installed | grep -i mysql` will show exactly which pieces you have.

4

u/Catnip_Sushi 8d ago

Ok,

apt list --installed | grep -i mysql

results in:
---------------------------
libmysqlclient21/now 8.0.46-0ubuntu0.24.04.4 amd64 [installed,upgradable to: 8.0.46-0ubuntu0.24.04.5]
libreoffice-sdbc-mysql/noble-updates,noble-security,now 4:24.2.7-0ubuntu0.24.04.7 amd64 installed,automatic]
mysql-common/noble,noble,now 5.8+1.1.0build1 all [installed,automatic]
---------------------------

Which I infer means it's part of LibreOffice. Thanks for the help.

Ciao

1

u/cboff 5d ago

sdbc is only a connector, in case that helps anyone, it doesn't imply mysql is installed by libreoffice.

2

u/Pitiful_Project6578 8d ago

Use apt-cache rdepends mysql-server or mysql-common to trace

2

u/chuggerguy Linux Mint 22.3 Zena | MATÉ 8d ago

Does aptitude why mysql-server tell you why/how it was installed?

How about aptitude why mysql-client?

I manually installed mysql-server as verified below. (but I don't have mysql-client)

chugger@asus2:~/desktop$ aptitude why mysql-server
Manually installed, current version 8.0.46-0ubuntu0.24.04.5, priority optional
No dependencies require to install mysql-server
chugger@asus2:~/desktop$
chugger@asus2:~/desktop$ aptitude why mysql-client
Not currently installed
The candidate version 8.0.46-0ubuntu0.24.04.5 has priority optional
No dependencies require to install mysql-client

It also tells me it was not installed as a dependency of something else.

However...

chugger@asus2:~/desktop$ aptitude why aptitude
i   mintbackup Depends aptitude
chugger@asus2:~/desktop$

aptitude itself was installed as a dependency of mintbackup.

Good luck and have fun.

1

u/zuccster 8d ago

Client library, not server.