microsoft / azurelinux

Linux OS for Azure 1P services and edge appliances
MIT License
4.08k stars 497 forks source link

[Package Update RFE] Split the MySQL package into mysql-server and mysql-client #9512

Open surajssd opened 1 week ago

surajssd commented 1 week ago

Is your feature request related to a problem? Please describe.

Currently mysql package ships both the mysqld (server) and mysql (client) executables in one package called mysql. Some users would just want to install the mysql client and not the server or vice versa.

Describe the solution you'd like

Instead of modifying the existing package, provide two new packages called mysql-server which ships mysqld and related libraries and similarly create a mysql-client which ships just the mysql client binary.

Describe alternatives you've considered

IDK if this alternative of installing the whole package of mysql using tdnf and then removing files manually works reliably but that's one way to reduce the unwanted cruft.

Additional context

For the Cloudshell service where the user isn't allowed to run any privileged services having mysqld isn't feasible. So having these separate packages will help only ship the mysql-client and not the server.