Bug #120315 mysql-community.repo update silently enables 9.7 LTS
Submitted: 22 Apr 3:29
Reporter: Nate LaCourse Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Package Repos Severity:S1 (Critical)
Version: OS:Red Hat (9.7)
Assigned to: Balasubramanian Kandasamy CPU Architecture:Any

[22 Apr 3:29] Nate LaCourse
Description:
Hello,

The mysql-community.repo update pushed today appears to silently disable the currently enabled version in the repo file, and enable the newly released 9.7 LTS.  For example an AlmaLinux 9.7 server:

[root@satori ~]# yum update
Last metadata expiration check: 0:02:02 ago on Tue 21 Apr 2026 09:39:04 PM EDT.
Dependencies resolved.
==================================================================================================================================================================================================================
 Package                                                      Architecture                              Version                                  Repository                                                  Size
==================================================================================================================================================================================================================
Upgrading:
 mysql84-community-release                                    noarch                                    el9-4                                    mysql-8.4-lts-community                                     14 k

Transaction Summary
==================================================================================================================================================================================================================
Upgrade  1 Package

Total download size: 14 k
Is this ok [y/N]: y
Downloading Packages:
mysql84-community-release-el9-4.noarch.rpm                                                                                                                                        463 kB/s |  14 kB     00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                             416 kB/s |  14 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                          1/1
  Upgrading        : mysql84-community-release-el9-4.noarch                                                                                                                                                   1/2
  Running scriptlet: mysql84-community-release-el9-4.noarch                                                                                                                                                   1/2
  Cleanup          : mysql84-community-release-el9-3.noarch                                                                                                                                                   2/2
  Verifying        : mysql84-community-release-el9-4.noarch                                                                                                                                                   1/2
  Verifying        : mysql84-community-release-el9-3.noarch                                                                                                                                                   2/2

Upgraded:
  mysql84-community-release-el9-4.noarch

Complete!
[root@satori ~]# yum update
MySQL 9.7 LTS Community Server                                                                                                                                                    3.2 MB/s | 230 kB     00:00
MySQL Tools 9.7 LTS Community                                                                                                                                                     2.9 MB/s | 151 kB     00:00
Dependencies resolved.
==================================================================================================================================================================================================================
 Package                                                        Architecture                           Version                                      Repository                                               Size
==================================================================================================================================================================================================================
Upgrading:
 mysql-community-client                                         x86_64                                 9.7.0-1.el9                                  mysql-9.7-lts-community                                 3.8 M
 mysql-community-client-plugins                                 x86_64                                 9.7.0-1.el9                                  mysql-9.7-lts-community                                 1.5 M
 mysql-community-common                                         x86_64                                 9.7.0-1.el9                                  mysql-9.7-lts-community                                 607 k
 mysql-community-devel                                          x86_64                                 9.7.0-1.el9                                  mysql-9.7-lts-community                                 7.8 M
 mysql-community-icu-data-files                                 x86_64                                 9.7.0-1.el9                                  mysql-9.7-lts-community                                 2.3 M
 mysql-community-libs                                           x86_64                                 9.7.0-1.el9                                  mysql-9.7-lts-community                                 1.5 M
 mysql-community-server                                         x86_64                                 9.7.0-1.el9                                  mysql-9.7-lts-community                                  56 M

Transaction Summary
==================================================================================================================================================================================================================
Upgrade  7 Packages

Total download size: 73 M
Is this ok [y/N]: n
Operation aborted.

I've reproduced this on an el8 server as well.

If this is not caught, and then the new repo file fixed to disable 9.7 and enable the version you're actually on, or the update happens via automation, it might be a bad time, MySQL will be upgraded to 9.7 in-place.

How to repeat:
Update mysql84-community-release el9-3 to el9-4, observe the repo file now has 8.4 repos disabled, and 9.7 repos enabled.

Suggested fix:
Retain mysql-community.repo file enabled= settings, do not silently disable the currently installed version repo and enable 9.7.
[22 Apr 6:27] Daniƫl van Eeden
I had a slightly different experience, see https://bugs.mysql.com/bug.php?id=120317

However I think both are issues and need a solution.

When 8.4 LTS is installed then upgrading to the next LTS should be an explicit choice.

When the innovation repo is enabled automatic updates from 9.5 to 9.6 etc. is expected. However not sure what do with innovation-to-lts updates.

I think the 9.7 repo should not be enabled automatically when updating, but only for new installations.

Maybe 9.7 should be placed in the `mysql-9.7` repo *and* in the innovation repo to allow automatic updates for those that are on the innovation releases.
[23 Apr 8:09] Balasubramanian Kandasamy
Thanks for the bug report. We are working on it.
[23 Apr 8:57] You Ju Chen
the same problem in mysql84-community-release-el8-3.noarch.rpm
[23 Apr 16:44] Balasubramanian Kandasamy
We have addressed both issues in the YUM repositories. 

Previously, updating `mysql84-community-release` caused the repo configuration to disable the 8.4 repositories and enable the 9.7 repositories automatically. This has now been fixed. 

Existing 8.4 users will continue to receive MySQL 8.4 updates, while new installations will default to MySQL 9.7. 

Thanks!