mysql-community 8.4.9の指定インストール
mysqlは8.4系そのものが Oracle の LTS (Long Term Support) 系列で本番利用を前提とした長期サポート版として提供されています。特に8.4系であれば最新版を入れて問題ありません。ただし、ウイルス対策ソフトやそのたメーカー提供のソフトが動作保証していない場合などは、バージョン固定を優先させましょう。
rpm -aq | grep maria
rpm -aq | grep mysql
dnf localinstall https://dev.mysql.com/get/mysql84-community-release-el8-1.noarch.rpm
dnf module disable mysql
y
[root@aq3 ~]# dnf info mysql-community-server
Last metadata expiration check: 0:00:32 ago on Sat 24 Oct 2026 10:22:09 PM JST.
Available Packages
Name : mysql-community-server
Version : 8.4.13
Release : 1.el8
Architecture : x86_64
Size : 57 M
Source : mysql-community-8.4.13-1.el8.src.rpm
Repository : mysql-8.4-lts-community
Summary : A very fast and reliable SQL database server
URL : http://www.mysql.com/
License : Copyright (c) 2000, 2026, Oracle and/or its affiliates. Under
: GPLv2 license as shown in the Description field.
Description : The MySQL(TM) software delivers a very fast, multi-threaded,
: multi-user, and robust SQL (Structured Query Language) database
: server. MySQL Server is intended for mission-critical, heavy-load
: production systems as well as for embedding into mass-deployed
: software. MySQL is a trademark of Oracle and/or its affiliates
:
: The MySQL software has Dual Licensing, which means you can use
: the MySQL software free of charge under the GNU General Public
: License (http://www.gnu.org/licenses/). You can also purchase
: commercial MySQL licenses from Oracle and/or its affiliates if
: you do not wish to be bound by the terms of the GPL. See the
: chapter "Licensing and Support" in the manual for further info.
:
: The MySQL web site (http://www.mysql.com/) provides the latest
: news and information about the MySQL software. Also please see
: the documentation and the manual for more information.
:
: This package includes the MySQL server binary as well as related
: utilities to run and administer a MySQL server.dnf install mysql-community-server-8.4.9-1.el8
Last metadata expiration check: 0:02:29 ago on Sat 24 Oct 2026 10:22:09 PM JST.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql-community-server x86_64 8.4.9-1.el8 mysql-8.4-lts-community 57 M
Installing dependencies:
libaio x86_64 0.3.112-1.el8 baseos 32 k
mysql-community-client x86_64 8.4.13-1.el8 mysql-8.4-lts-community 13 M
mysql-community-client-plugins
x86_64 8.4.13-1.el8 mysql-8.4-lts-community 2.6 M
mysql-community-common x86_64 8.4.9-1.el8 mysql-8.4-lts-community 695 k
mysql-community-icu-data-files
x86_64 8.4.9-1.el8 mysql-8.4-lts-community 2.3 M
mysql-community-libs x86_64 8.4.13-1.el8 mysql-8.4-lts-community 1.5 M
Transaction Summary
================================================================================
Install 7 Packages
Total download size: 76 M
Installed size: 342 M
Is this ok [y/N]: n美しくないのでやめる
dnf install \
> mysql-community-common-8.4.9-1.el8 \
> mysql-community-client-plugins-8.4.9-1.el8 \
> mysql-community-libs-8.4.9-1.el8 \
> mysql-community-client-8.4.9-1.el8 \
> mysql-community-icu-data-files-8.4.9-1.el8 \
> mysql-community-server-8.4.9-1.el8全部 8.4.9を指定してインストール
rpm -aq | grep mysql-community
mysql-community-common-8.4.9-1.el8.x86_64
mysql-community-client-8.4.9-1.el8.x86_64
mysql-community-server-8.4.9-1.el8.x86_64
mysql-community-client-plugins-8.4.9-1.el8.x86_64
mysql-community-icu-data-files-8.4.9-1.el8.x86_64
mysql-community-libs-8.4.9-1.el8.x86_64ロックしておくとdnf updateでアップデートされない
dnf install 'dnf-command(versionlock)'
Is this ok [y/N]: y
dnf versionlock add mysql-community-\*
dnf versionlock list
dnf updateロック解除:dnf versionlock clear
