はじめに
前回に引き続き、CentOS7の移行案件です。
CentOS7が2024年6月30日でサポート期間が終了するということで、AlmaLinux9へ移行していきます。
現行サイトは止められないため、新しくサーバーを契約します。
【新しい環境】
サーバー:さくらのVPS(v5) 16G IK01
移行前のOS:CentOS7
移行後のOS:AlmaLinux9
先日の記事でも書きましたが、ツールは使わず、手動でサーバー構築していきます。
さくらのVPSでCentOS7からAlmalinux9へ移行してみた→無理
移行前にチェックしたこと
OSのバージョン確認
[root@server ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
[root@server ~]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)
追加したリポジトリの確認
[root@server ~]# yum repolist all
読み込んだプラグイン:fastestmirror
Determining fastest mirrors
epel/x86_64/metalink | 7.1 kB 00:00:00
* base: ftp.iij.ad.jp
* epel: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* remi-safe: cdn.centos.no
* updates: ftp.iij.ad.jp
base | 3.6 kB 00:00:00
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
mysql-connectors-community | 2.6 kB 00:00:00
mysql-tools-community | 2.6 kB 00:00:00
mysql56-community | 2.6 kB 00:00:00
remi-safe | 3.0 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/6): epel/x86_64/group_gz | 100 kB 00:00:00
(2/6): epel/x86_64/updateinfo | 1.0 MB 00:00:00
(3/6): extras/7/x86_64/primary_db | 253 kB 00:00:00
(4/6): remi-safe/primary_db | 2.6 MB 00:00:00
(5/6): epel/x86_64/primary_db | 7.0 MB 00:00:01
(6/6): updates/7/x86_64/primary_db | 26 MB 00:00:03
リポジトリー ID リポジトリー名 状態
C7.0.1406-base/x86_64 CentOS-7.0.1406 - Base 無効
C7.0.1406-centosplus/x86_64 CentOS-7.0.1406 - CentOSPlus 無効
C7.0.1406-extras/x86_64 CentOS-7.0.1406 - Extras 無効
C7.0.1406-fasttrack/x86_64 CentOS-7.0.1406 - CentOSPlus 無効
C7.0.1406-updates/x86_64 CentOS-7.0.1406 - Updates 無効
C7.1.1503-base/x86_64 CentOS-7.1.1503 - Base 無効
C7.1.1503-centosplus/x86_64 CentOS-7.1.1503 - CentOSPlus 無効
C7.1.1503-extras/x86_64 CentOS-7.1.1503 - Extras 無効
C7.1.1503-fasttrack/x86_64 CentOS-7.1.1503 - CentOSPlus 無効
C7.1.1503-updates/x86_64 CentOS-7.1.1503 - Updates 無効
C7.2.1511-base/x86_64 CentOS-7.2.1511 - Base 無効
C7.2.1511-centosplus/x86_64 CentOS-7.2.1511 - CentOSPlus 無効
C7.2.1511-extras/x86_64 CentOS-7.2.1511 - Extras 無効
C7.2.1511-fasttrack/x86_64 CentOS-7.2.1511 - CentOSPlus 無効
C7.2.1511-updates/x86_64 CentOS-7.2.1511 - Updates 無効
C7.3.1611-base/x86_64 CentOS-7.3.1611 - Base 無効
C7.3.1611-centosplus/x86_64 CentOS-7.3.1611 - CentOSPlus 無効
C7.3.1611-extras/x86_64 CentOS-7.3.1611 - Extras 無効
C7.3.1611-fasttrack/x86_64 CentOS-7.3.1611 - CentOSPlus 無効
C7.3.1611-updates/x86_64 CentOS-7.3.1611 - Updates 無効
C7.4.1708-base/x86_64 CentOS-7.4.1708 - Base 無効
C7.4.1708-centosplus/x86_64 CentOS-7.4.1708 - CentOSPlus 無効
C7.4.1708-extras/x86_64 CentOS-7.4.1708 - Extras 無効
C7.4.1708-fasttrack/x86_64 CentOS-7.4.1708 - CentOSPlus 無効
C7.4.1708-updates/x86_64 CentOS-7.4.1708 - Updates 無効
base/7/x86_64 CentOS-7 - Base 有効: 10,072
base-debuginfo/x86_64 CentOS-7 - Debuginfo 無効
base-source/7 CentOS-7 - Base Sources 無効
!bitcoin/7/x86_64 Bitcoin for Enterprise Linux - x86_64 有効: 748
bitcoin-source/7 Bitcoin for Enterprise Linux - x86_64 - Source 無効
bitcoin-test/7/x86_64 Bitcoin for Enterprise Linux - Testing - x86_64 無効
bitcoin-test-source/7 Bitcoin for Enterprise Linux - Testing - x86_64 - Source 無効
c7-media CentOS-7 - Media 無効
centosplus/7/x86_64 CentOS-7 - Plus 無効
centosplus-source/7 CentOS-7 - Plus Sources 無効
cr/7/x86_64 CentOS-7 - cr 無効
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 有効: 13,798
epel-debuginfo/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 - Debug 無効
epel-source/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 - Source 無効
epel-testing/x86_64 Extra Packages for Enterprise Linux 7 - Testing - x86_64 無効
epel-testing-debuginfo/x86_64 Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Debug 無効
epel-testing-source/x86_64 Extra Packages for Enterprise Linux 7 - Testing - x86_64 - Source 無効
extras/7/x86_64 CentOS-7 - Extras 有効: 526
extras-source/7 CentOS-7 - Extras Sources 無効
fasttrack/7/x86_64 CentOS-7 - fasttrack 無効
mysql-connectors-community/x86_64 MySQL Connectors Community 有効: 242
mysql-connectors-community-source MySQL Connectors Community - Source 無効
mysql-tools-community/x86_64 MySQL Tools Community 有効: 104
mysql-tools-community-source MySQL Tools Community - Source 無効
mysql55-community/x86_64 MySQL 5.5 Community Server 無効
mysql55-community-source MySQL 5.5 Community Server - Source 無効
mysql56-community/x86_64 MySQL 5.6 Community Server 有効: 581
mysql56-community-source MySQL 5.6 Community Server - Source 無効
mysql57-community-dmr/x86_64 MySQL 5.7 Community Server Development Milestone Release 無効
mysql57-community-dmr-source MySQL 5.7 Community Server Development Milestone Release - Source 無効
!remi Remi's RPM repository for Enterprise Linux 7 - x86_64 無効
remi-debuginfo/x86_64 Remi's RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-glpi91 Remi's GLPI 9.1 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-glpi92 Remi's GLPI 9.2 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-glpi93 Remi's GLPI 9.3 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-glpi94 Remi's GLPI 9.4 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-modular Remi's Modular repository for Enterprise Linux 7 - x86_64 無効
remi-modular-test Remi's Modular testing repository for Enterprise Linux 7 - x86_64 無効
remi-php54 Remi's PHP 5.4 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php55 Remi's PHP 5.5 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php55-debuginfo/x86_64 Remi's PHP 5.5 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
!remi-php56 Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php56-debuginfo/x86_64 Remi's PHP 5.6 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php70 Remi's PHP 7.0 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php70-debuginfo/x86_64 Remi's PHP 7.0 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php70-test Remi's PHP 7.0 test RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php70-test-debuginfo/x86_64 Remi's PHP 7.0 test RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php71 Remi's PHP 7.1 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php71-debuginfo/x86_64 Remi's PHP 7.1 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php71-test Remi's PHP 7.1 test RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php71-test-debuginfo/x86_64 Remi's PHP 7.1 test RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php72 Remi's PHP 7.2 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php72-debuginfo/x86_64 Remi's PHP 7.2 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php72-test Remi's PHP 7.2 test RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php72-test-debuginfo/x86_64 Remi's PHP 7.2 test RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php73 Remi's PHP 7.3 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php73-debuginfo/x86_64 Remi's PHP 7.3 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php73-test Remi's PHP 7.3 test RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php73-test-debuginfo/x86_64 Remi's PHP 7.3 test RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
!remi-php74 Remi's PHP 7.4 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php74-debuginfo/x86_64 Remi's PHP 7.4 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php74-test Remi's PHP 7.4 test RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php74-test-debuginfo/x86_64 Remi's PHP 7.4 test RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php80 Remi's PHP 8.0 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php80-debuginfo/x86_64 Remi's PHP 8.0 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php80-test Remi's PHP 8.0 test RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php80-test-debuginfo/x86_64 Remi's PHP 8.0 test RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php81 Remi's PHP 8.1 RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php81-debuginfo/x86_64 Remi's PHP 8.1 RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-php81-test Remi's PHP 8.1 test RPM repository for Enterprise Linux 7 - x86_64 無効
remi-php81-test-debuginfo/x86_64 Remi's PHP 8.1 test RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-safe Safe Remi's RPM repository for Enterprise Linux 7 - x86_64 有効: 5,595
remi-safe-debuginfo/x86_64 Remi's RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
remi-test Remi's test RPM repository for Enterprise Linux 7 - x86_64 無効
remi-test-debuginfo/x86_64 Remi's test RPM repository for Enterprise Linux 7 - x86_64 - debuginfo 無効
updates/7/x86_64 CentOS-7 - Updates 有効: 5,802
updates-source/7 CentOS-7 - Updates Sources 無効
repolist: 37,468
[root@server ~]# yum repolist enabled
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* remi-safe: cdn.centos.no
* updates: ftp.iij.ad.jp
リポジトリー ID リポジトリー名 状態
base/7/x86_64 CentOS-7 - Base 10,072
!bitcoin/7/x86_64 Bitcoin for Enterprise Linux - x86_64 748
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,798
extras/7/x86_64 CentOS-7 - Extras 526
mysql-connectors-community/x86_64 MySQL Connectors Community 242
mysql-tools-community/x86_64 MySQL Tools Community 104
mysql56-community/x86_64 MySQL 5.6 Community Server 581
remi-safe Safe Remi's RPM repository for Enterprise Linux 7 - x86_64 5,595
updates/7/x86_64 CentOS-7 - Updates 5,802
repolist: 37,468
インストール済パッケージ一覧
[root@server ~]# yum list installed
読み込んだプラグイン:fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.iij.ad.jp
* epel: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* remi-safe: cdn.centos.no
* updates: ftp.iij.ad.jp
インストール済みパッケージ
GeoIP.x86_64 1.5.0-11.el7 @anaconda
ImageMagick.x86_64 6.7.8.9-15.el7_2 @base
ImageMagick-devel.x86_64 6.7.8.9-15.el7_2 @base
NetworkManager.x86_64 1:1.10.2-13.el7 @anaconda
NetworkManager-libnm.x86_64 1:1.10.2-13.el7 @anaconda
NetworkManager-team.x86_64 1:1.10.2-13.el7 @anaconda
NetworkManager-tui.x86_64 1:1.10.2-13.el7 @anaconda
OpenEXR-libs.x86_64 1.7.1-7.el7 @base
acl.x86_64 2.2.51-14.el7 @anaconda
aic94xx-firmware.noarch 30-6.el7 @anaconda
alsa-firmware.noarch 1.0.28-2.el7 @anaconda
alsa-lib.x86_64 1.1.4.1-2.el7 @anaconda
alsa-tools-firmware.x86_64 1.1.0-1.el7 @anaconda
apr.x86_64 1.4.8-3.el7_4.1 @anaconda
apr-util.x86_64 1.5.2-6.el7 @anaconda
attr.x86_64 2.4.46-13.el7 @base
audit.x86_64 2.8.1-3.el7 @anaconda
audit-libs.x86_64 2.8.1-3.el7 @anaconda
audit-libs-python.x86_64 2.8.1-3.el7 @base
authconfig.x86_64 6.2.8-30.el7 @anaconda
autoconf.noarch 2.69-11.el7 @anaconda
automake.noarch 1.13.4-3.el7 @anaconda
avahi-libs.x86_64 0.6.31-19.el7 @anaconda
basesystem.noarch 10.0-7.el7.centos @anaconda
bash.x86_64 4.2.46-30.el7 @anaconda
bind-libs-lite.x86_64 32:9.9.4-61.el7 @anaconda
bind-license.noarch 32:9.9.4-61.el7 @anaconda
binutils.x86_64 2.27-27.base.el7 @anaconda
biosdevname.x86_64 0.7.3-1.el7 @anaconda
bison.x86_64 3.0.4-1.el7 @anaconda
bitcoin-release.noarch 3-1 installed
bitcoin-server.x86_64 0.17.0-1.el7 @bitcoin
bitcoin-utils.x86_64 0.17.0-1.el7 @bitcoin
boost-chrono.x86_64 1.53.0-27.el7 @base
boost-date-time.x86_64 1.53.0-27.el7 @anaconda
boost-filesystem.x86_64 1.53.0-27.el7 @base
boost-program-options.x86_64 1.53.0-27.el7 @base
boost-system.x86_64 1.53.0-27.el7 @anaconda
boost-thread.x86_64 1.53.0-27.el7 @anaconda
btrfs-progs.x86_64 4.9.1-1.el7 @anaconda
byacc.x86_64 1.9.20130304-3.el7 @anaconda
bzip2.x86_64 1.0.6-13.el7 @anaconda
bzip2-devel.x86_64 1.0.6-13.el7 @base
bzip2-libs.x86_64 1.0.6-13.el7 @anaconda
ca-certificates.noarch 2017.2.20-71.el7 @anaconda
cairo.x86_64 1.14.8-2.el7 @base
centos-logos.noarch 70.0.6-3.el7.centos @anaconda
centos-release.x86_64 7-5.1804.el7.centos @anaconda
certbot.noarch 1.11.0-1.el7 @epel
checkpolicy.x86_64 2.5-6.el7 @base
chkconfig.x86_64 1.7.4-1.el7 @anaconda
chrony.x86_64 3.2-2.el7 @anaconda
coreutils.x86_64 8.22-21.el7 @anaconda
cpio.x86_64 2.11-27.el7 @anaconda
cpp.x86_64 4.8.5-28.el7 @anaconda
cracklib.x86_64 2.9.0-11.el7 @anaconda
cracklib-dicts.x86_64 2.9.0-11.el7 @anaconda
cronie.x86_64 1.4.11-19.el7 @anaconda
cronie-anacron.x86_64 1.4.11-19.el7 @anaconda
crontabs.noarch 1.11-6.20121102git.el7 @anaconda
cryptsetup-libs.x86_64 1.7.4-4.el7 @anaconda
cscope.x86_64 15.8-10.el7 @anaconda
ctags.x86_64 5.8-13.el7 @anaconda
cups-libs.x86_64 1:1.6.3-35.el7 @base
curl.x86_64 7.29.0-46.el7 @anaconda
cyrus-sasl-lib.x86_64 2.1.26-23.el7 @anaconda
dbus.x86_64 1:1.10.24-7.el7 @anaconda
dbus-glib.x86_64 0.100-7.el7 @anaconda
dbus-libs.x86_64 1:1.10.24-7.el7 @anaconda
dbus-python.x86_64 1.1.1-9.el7 @anaconda
device-mapper.x86_64 7:1.02.146-4.el7 @anaconda
device-mapper-event.x86_64 7:1.02.146-4.el7 @anaconda
device-mapper-event-libs.x86_64 7:1.02.146-4.el7 @anaconda
device-mapper-libs.x86_64 7:1.02.146-4.el7 @anaconda
device-mapper-persistent-data.x86_64 0.7.3-3.el7 @anaconda
dhclient.x86_64 12:4.2.5-68.el7.centos @anaconda
dhcp-common.x86_64 12:4.2.5-68.el7.centos @anaconda
dhcp-libs.x86_64 12:4.2.5-68.el7.centos @anaconda
diffstat.x86_64 1.57-4.el7 @anaconda
diffutils.x86_64 3.3-4.el7 @anaconda
dmidecode.x86_64 1:3.0-5.el7 @anaconda
doxygen.x86_64 1:1.8.5-3.el7 @anaconda
dracut.x86_64 033-535.el7 @anaconda
dracut-config-rescue.x86_64 033-535.el7 @anaconda
dracut-network.x86_64 033-535.el7 @anaconda
dwz.x86_64 0.11-3.el7 @anaconda
dyninst.x86_64 9.3.1-1.el7 @anaconda
e2fsprogs.x86_64 1.42.9-19.el7 @base
e2fsprogs-libs.x86_64 1.42.9-19.el7 @base
ebtables.x86_64 2.0.10-16.el7 @anaconda
efivar-libs.x86_64 31-4.el7 @anaconda
elfutils.x86_64 0.170-4.el7 @anaconda
elfutils-default-yama-scope.noarch 0.170-4.el7 @anaconda
elfutils-libelf.x86_64 0.170-4.el7 @anaconda
elfutils-libs.x86_64 0.170-4.el7 @anaconda
emacs-filesystem.noarch 1:24.3-20.el7_4 @anaconda
epel-release.noarch 7-11 installed
ethtool.x86_64 2:4.8-7.el7 @anaconda
expat.x86_64 2.1.0-10.el7_3 @anaconda
file.x86_64 5.11-33.el7 @anaconda
file-libs.x86_64 5.11-33.el7 @anaconda
filesystem.x86_64 3.2-25.el7 @anaconda
findutils.x86_64 1:4.5.11-5.el7 @anaconda
fipscheck.x86_64 1.4.1-6.el7 @anaconda
fipscheck-lib.x86_64 1.4.1-6.el7 @anaconda
firewalld.noarch 0.4.4.4-14.el7 @anaconda
firewalld-filesystem.noarch 0.4.4.4-14.el7 @anaconda
flex.x86_64 2.5.37-3.el7 @anaconda
fontconfig.x86_64 2.10.95-11.el7 @base
fontpackages-filesystem.noarch 1.44-8.el7 @base
freetype.x86_64 2.4.11-15.el7 @anaconda
freetype-devel.x86_64 2.4.11-15.el7 @base
fribidi.x86_64 1.0.2-1.el7_7.1 @base
fxload.x86_64 2002_04_11-16.el7 @anaconda
gawk.x86_64 4.0.2-4.el7_3.1 @anaconda
gcc.x86_64 4.8.5-28.el7 @anaconda
gcc-c++.x86_64 4.8.5-28.el7 @anaconda
gcc-gfortran.x86_64 4.8.5-28.el7 @anaconda
gd-last.x86_64 2.3.3-2.el7.remi @remi
gdb.x86_64 7.6.1-110.el7 @anaconda
gdbm.x86_64 1.10-8.el7 @anaconda
gdk-pixbuf2.x86_64 2.36.5-1.el7 @base
gettext.x86_64 0.19.8.1-2.el7 @anaconda
gettext-common-devel.noarch 0.19.8.1-2.el7 @anaconda
gettext-devel.x86_64 0.19.8.1-2.el7 @anaconda
gettext-libs.x86_64 0.19.8.1-2.el7 @anaconda
ghostscript.x86_64 9.07-28.el7_4.2 @base
ghostscript-devel.x86_64 9.07-28.el7_4.2 @base
ghostscript-fonts.noarch 5.50-32.el7 @base
git.x86_64 1.8.3.1-13.el7 @anaconda
glib2.x86_64 2.54.2-2.el7 @anaconda
glibc.x86_64 2.17-222.el7 @anaconda
glibc-common.x86_64 2.17-222.el7 @anaconda
glibc-devel.x86_64 2.17-222.el7 @anaconda
glibc-headers.x86_64 2.17-222.el7 @anaconda
gmp.x86_64 1:6.0.0-15.el7 @anaconda
gnupg2.x86_64 2.0.22-4.el7 @anaconda
gnutls.x86_64 3.3.26-9.el7 @anaconda
gobject-introspection.x86_64 1.50.0-1.el7 @anaconda
gpgme.x86_64 1.3.2-5.el7 @anaconda
gpm-libs.x86_64 1.20.7-5.el7 @base
graphite2.x86_64 1.3.10-1.el7_3 @base
grep.x86_64 2.20-3.el7 @anaconda
groff-base.x86_64 1.22.2-8.el7 @anaconda
grub2.x86_64 1:2.02-0.65.el7.centos.2 @anaconda
grub2-common.noarch 1:2.02-0.65.el7.centos.2 @anaconda
grub2-pc.x86_64 1:2.02-0.65.el7.centos.2 @anaconda
grub2-pc-modules.noarch 1:2.02-0.65.el7.centos.2 @anaconda
grub2-tools.x86_64 1:2.02-0.65.el7.centos.2 @anaconda
grub2-tools-extra.x86_64 1:2.02-0.65.el7.centos.2 @anaconda
grub2-tools-minimal.x86_64 1:2.02-0.65.el7.centos.2 @anaconda
grubby.x86_64 8.28-23.el7 @anaconda
gzip.x86_64 1.5-10.el7 @anaconda
hardlink.x86_64 1:1.0-19.el7 @anaconda
harfbuzz.x86_64 1.3.2-1.el7 @base
hostname.x86_64 3.13-3.el7 @anaconda
httpd.x86_64 2.4.6-80.el7.centos @base
httpd-tools.x86_64 2.4.6-80.el7.centos @base
hwdata.x86_64 0.252-8.8.el7 @anaconda
ilmbase.x86_64 1.0.3-7.el7 @base
indent.x86_64 2.2.11-13.el7 @anaconda
info.x86_64 5.1-5.el7 @anaconda
initscripts.x86_64 9.49.41-1.el7 @anaconda
intltool.noarch 0.50.2-7.el7 @anaconda
iperf3.x86_64 3.1.7-2.el7 @base
iproute.x86_64 4.11.0-14.el7 @anaconda
iprutils.x86_64 2.4.15.1-1.el7 @anaconda
ipset.x86_64 6.29-1.el7 @anaconda
ipset-libs.x86_64 6.29-1.el7 @anaconda
iptables.x86_64 1.4.21-24.el7 @anaconda
iputils.x86_64 20160308-10.el7 @anaconda
irqbalance.x86_64 3:1.0.7-11.el7 @anaconda
ivtv-firmware.noarch 2:20080701-26.el7 @anaconda
iwl100-firmware.noarch 39.31.5.1-62.el7 @anaconda
iwl1000-firmware.noarch 1:39.31.5.1-62.el7 @anaconda
iwl105-firmware.noarch 18.168.6.1-62.el7 @anaconda
iwl135-firmware.noarch 18.168.6.1-62.el7 @anaconda
iwl2000-firmware.noarch 18.168.6.1-62.el7 @anaconda
iwl2030-firmware.noarch 18.168.6.1-62.el7 @anaconda
iwl3160-firmware.noarch 22.0.7.0-62.el7 @anaconda
iwl3945-firmware.noarch 15.32.2.9-62.el7 @anaconda
iwl4965-firmware.noarch 228.61.2.24-62.el7 @anaconda
iwl5000-firmware.noarch 8.83.5.1_1-62.el7 @anaconda
iwl5150-firmware.noarch 8.24.2.2-62.el7 @anaconda
iwl6000-firmware.noarch 9.221.4.1-62.el7 @anaconda
iwl6000g2a-firmware.noarch 17.168.5.3-62.el7 @anaconda
iwl6000g2b-firmware.noarch 17.168.5.2-62.el7 @anaconda
iwl6050-firmware.noarch 41.28.5.1-62.el7 @anaconda
iwl7260-firmware.noarch 22.0.7.0-62.el7 @anaconda
iwl7265-firmware.noarch 22.0.7.0-62.el7 @anaconda
jansson.x86_64 2.10-1.el7 @anaconda
jasper-devel.x86_64 1.900.1-31.el7 @base
jasper-libs.x86_64 1.900.1-31.el7 @base
jbigkit-libs.x86_64 2.0-11.el7 @base
kbd.x86_64 1.15.5-13.el7 @anaconda
kbd-legacy.noarch 1.15.5-13.el7 @anaconda
kbd-misc.noarch 1.15.5-13.el7 @anaconda
kernel.x86_64 3.10.0-862.2.3.el7 @centos-updates
kernel-devel.x86_64 3.10.0-862.2.3.el7 @centos-updates
kernel-headers.x86_64 3.10.0-862.2.3.el7 @centos-updates
kernel-tools.x86_64 3.10.0-862.2.3.el7 @centos-updates
kernel-tools-libs.x86_64 3.10.0-862.2.3.el7 @centos-updates
kexec-tools.x86_64 2.0.15-13.el7 @anaconda
keyutils-libs.x86_64 1.5.8-3.el7 @anaconda
keyutils-libs-devel.x86_64 1.5.8-3.el7 @base
kmod.x86_64 20-21.el7 @anaconda
kmod-libs.x86_64 20-21.el7 @anaconda
kpartx.x86_64 0.4.9-119.el7 @anaconda
krb5-devel.x86_64 1.15.1-50.el7 @base
krb5-libs.x86_64 1.15.1-50.el7 @base
lcms2.x86_64 2.6-3.el7 @base
less.x86_64 458-9.el7 @anaconda
libICE.x86_64 1.0.9-9.el7 @base
libICE-devel.x86_64 1.0.9-9.el7 @base
libSM.x86_64 1.2.2-2.el7 @base
libSM-devel.x86_64 1.2.2-2.el7 @base
libX11.x86_64 1.6.5-1.el7 @base
libX11-common.noarch 1.6.5-1.el7 @base
libX11-devel.x86_64 1.6.5-1.el7 @base
libXau.x86_64 1.0.8-2.1.el7 @base
libXau-devel.x86_64 1.0.8-2.1.el7 @base
libXdamage.x86_64 1.1.4-4.1.el7 @base
libXext.x86_64 1.3.3-3.el7 @base
libXext-devel.x86_64 1.3.3-3.el7 @base
libXfixes.x86_64 5.0.3-1.el7 @base
libXfont.x86_64 1.5.2-1.el7 @base
libXft.x86_64 2.3.2-2.el7 @base
libXpm.x86_64 3.5.12-1.el7 @base
libXrender.x86_64 0.9.10-1.el7 @base
libXt.x86_64 1.1.5-3.el7 @base
libXt-devel.x86_64 1.1.5-3.el7 @base
libXxf86vm.x86_64 1.1.4-1.el7 @base
libacl.x86_64 2.2.51-14.el7 @anaconda
libaio.x86_64 0.3.109-13.el7 @anaconda
libassuan.x86_64 2.1.0-3.el7 @anaconda
libattr.x86_64 2.4.46-13.el7 @anaconda
libblkid.x86_64 2.23.2-52.el7 @anaconda
libcap.x86_64 2.22-9.el7 @anaconda
libcap-ng.x86_64 0.7.5-4.el7 @anaconda
libcgroup.x86_64 0.41-15.el7 @base
libcom_err.x86_64 1.42.9-19.el7 @base
libcom_err-devel.x86_64 1.42.9-19.el7 @base
libcroco.x86_64 0.6.11-1.el7 @anaconda
libcurl.x86_64 7.29.0-46.el7 @anaconda
libdaemon.x86_64 0.14-7.el7 @anaconda
libdb.x86_64 5.3.21-24.el7 @anaconda
libdb-utils.x86_64 5.3.21-24.el7 @anaconda
libdb4.x86_64 4.8.30-13.el7 @epel
libdb4-cxx.x86_64 4.8.30-13.el7 @epel
libdrm.x86_64 2.4.83-2.el7 @anaconda
libdwarf.x86_64 20130207-4.el7 @anaconda
libedit.x86_64 3.0-12.20121213cvs.el7 @anaconda
libestr.x86_64 0.1.9-2.el7 @anaconda
libevent.x86_64 2.0.21-4.el7 @base
libfastjson.x86_64 0.99.4-2.el7 @anaconda
libffi.x86_64 3.0.13-18.el7 @anaconda
libfontenc.x86_64 1.1.3-3.el7 @base
libgcc.x86_64 4.8.5-28.el7 @anaconda
libgcrypt.x86_64 1.5.3-14.el7 @anaconda
libgfortran.x86_64 4.8.5-28.el7 @anaconda
libgnome-keyring.x86_64 3.12.0-1.el7 @anaconda
libgomp.x86_64 4.8.5-28.el7 @anaconda
libgpg-error.x86_64 1.12-3.el7 @anaconda
libicu.x86_64 50.1.2-15.el7 @base
libicu69.x86_64 69.1-2.el7.remi @remi
libidn.x86_64 1.28-4.el7 @anaconda
libjpeg-turbo.x86_64 1.2.90-5.el7 @base
libjpeg-turbo-devel.x86_64 1.2.90-5.el7 @base
libkadm5.x86_64 1.15.1-50.el7 @base
libmcrypt.x86_64 2.5.8-13.el7 @epel
libmnl.x86_64 1.0.3-7.el7 @anaconda
libmodman.x86_64 2.0.1-8.el7 @anaconda
libmount.x86_64 2.23.2-52.el7 @anaconda
libmpc.x86_64 1.0.1-3.el7 @anaconda
libndp.x86_64 1.2-7.el7 @anaconda
libnetfilter_conntrack.x86_64 1.0.6-1.el7_3 @anaconda
libnfnetlink.x86_64 1.0.1-4.el7 @anaconda
libnl3.x86_64 3.2.28-4.el7 @anaconda
libnl3-cli.x86_64 3.2.28-4.el7 @anaconda
libpciaccess.x86_64 0.14-1.el7 @anaconda
libpipeline.x86_64 1.2.3-3.el7 @anaconda
libpng.x86_64 2:1.5.13-7.el7_2 @base
libproxy.x86_64 0.4.11-11.el7 @anaconda
libpwquality.x86_64 1.2.3-5.el7 @anaconda
libquadmath.x86_64 4.8.5-28.el7 @anaconda
libquadmath-devel.x86_64 4.8.5-28.el7 @anaconda
libraqm.x86_64 0.7.0-4.el7 @epel
librsvg2.x86_64 2.40.16-1.el7 @base
libseccomp.x86_64 2.3.1-3.el7 @anaconda
libselinux.x86_64 2.5-15.el7 @base
libselinux-devel.x86_64 2.5-15.el7 @base
libselinux-python.x86_64 2.5-15.el7 @base
libselinux-utils.x86_64 2.5-15.el7 @base
libsemanage.x86_64 2.5-11.el7 @anaconda
libsemanage-python.x86_64 2.5-11.el7 @base
libsepol.x86_64 2.5-10.el7 @base
libsepol-devel.x86_64 2.5-10.el7 @base
libsodium.x86_64 1.0.18-1.el7.remi @remi
libss.x86_64 1.42.9-19.el7 @base
libssh2.x86_64 1.4.3-10.el7_2.1 @anaconda
libstdc++.x86_64 4.8.5-28.el7 @anaconda
libstdc++-devel.x86_64 4.8.5-28.el7 @anaconda
libsysfs.x86_64 2.1.0-16.el7 @anaconda
libtasn1.x86_64 4.10-1.el7 @anaconda
libteam.x86_64 1.27-4.el7 @anaconda
libthai.x86_64 0.1.14-9.el7 @base
libtiff.x86_64 4.0.3-27.el7_3 @base
libtiff-devel.x86_64 4.0.3-27.el7_3 @base
libtool.x86_64 2.4.2-22.el7_3 @anaconda
libtool-ltdl.x86_64 2.4.2-22.el7_3 @base
libunistring.x86_64 0.9.3-9.el7 @anaconda
libuser.x86_64 0.60-9.el7 @anaconda
libutempter.x86_64 1.1.6-4.el7 @anaconda
libuuid.x86_64 2.23.2-52.el7 @anaconda
libverto.x86_64 0.2.5-4.el7 @anaconda
libverto-devel.x86_64 0.2.5-4.el7 @base
libwayland-client.x86_64 1.14.0-2.el7 @base
libwayland-server.x86_64 1.14.0-2.el7 @base
libwebp7.x86_64 1.0.3-1.el7.remi @remi
libwmf-lite.x86_64 0.2.8.4-41.el7_1 @base
libxcb.x86_64 1.12-1.el7 @base
libxcb-devel.x86_64 1.12-1.el7 @base
libxml2.x86_64 2.9.1-6.el7_9.6 @updates
libxml2-devel.x86_64 2.9.1-6.el7_9.6 @updates
libxml2-python.x86_64 2.9.1-6.el7_9.6 @updates
libxshmfence.x86_64 1.2-1.el7 @base
libxslt.x86_64 1.1.28-5.el7 @base
libzip5.x86_64 1.8.0-2.el7.remi @remi
libzstd.x86_64 1.5.0-1.el7 @epel
linux-firmware.noarch 20180220-62.git6d51311.el7 @anaconda
logrotate.x86_64 3.8.6-15.el7 @anaconda
lshw.x86_64 B.02.18-12.el7 @anaconda
lsscsi.x86_64 0.27-6.el7 @anaconda
lua.x86_64 5.1.4-15.el7 @anaconda
lvm2.x86_64 7:2.02.177-4.el7 @anaconda
lvm2-libs.x86_64 7:2.02.177-4.el7 @anaconda
lyx-fonts.noarch 2.2.3-1.el7 @epel
lz4.x86_64 1.7.5-2.el7 @anaconda
lzo.x86_64 2.06-8.el7 @anaconda
m4.x86_64 1.4.16-10.el7 @anaconda
mailcap.noarch 2.1.41-2.el7 @base
mailx.x86_64 12.5-19.el7 @base
make.x86_64 1:3.82-23.el7 @anaconda
man-db.x86_64 2.6.3-9.el7 @anaconda
mesa-libEGL.x86_64 17.2.3-8.20171019.el7 @base
mesa-libGL.x86_64 17.2.3-8.20171019.el7 @base
mesa-libgbm.x86_64 17.2.3-8.20171019.el7 @base
mesa-libglapi.x86_64 17.2.3-8.20171019.el7 @base
microcode_ctl.x86_64 2:2.1-29.el7 @anaconda
miniupnpc.x86_64 2.0-1.el7 @epel
mod_ssl.x86_64 1:2.4.6-80.el7.centos @base
mokutil.x86_64 12-1.el7.centos @anaconda
mozjs17.x86_64 17.0.0-20.el7 @anaconda
mpfr.x86_64 3.1.1-4.el7 @anaconda
mysql-community-client.x86_64 5.6.40-2.el7 @mysql56-community
mysql-community-common.x86_64 5.6.40-2.el7 @mysql56-community
mysql-community-devel.x86_64 5.6.40-2.el7 @mysql56-community
mysql-community-libs.x86_64 5.6.40-2.el7 @mysql56-community
mysql-community-release.noarch el7-5 installed
mysql-community-server.x86_64 5.6.40-2.el7 @mysql56-community
ncurses.x86_64 5.9-14.20130511.el7_4 @anaconda
ncurses-base.noarch 5.9-14.20130511.el7_4 @anaconda
ncurses-libs.x86_64 5.9-14.20130511.el7_4 @anaconda
neon.x86_64 0.30.0-3.el7 @anaconda
net-tools.x86_64 2.0-0.22.20131004git.el7 @anaconda
nettle.x86_64 2.7.1-8.el7 @anaconda
newt.x86_64 0.52.15-4.el7 @anaconda
newt-python.x86_64 0.52.15-4.el7 @anaconda
nspr.x86_64 4.17.0-1.el7 @anaconda
nss.x86_64 3.34.0-4.el7 @anaconda
nss-pem.x86_64 1.0.3-4.el7 @anaconda
nss-softokn.x86_64 3.34.0-2.el7 @anaconda
nss-softokn-freebl.x86_64 3.34.0-2.el7 @anaconda
nss-sysinit.x86_64 3.34.0-4.el7 @anaconda
nss-tools.x86_64 3.34.0-4.el7 @anaconda
nss-util.x86_64 3.34.0-2.el7 @anaconda
numactl-libs.x86_64 2.0.9-7.el7 @anaconda
oniguruma5php.x86_64 6.9.7.1-1.el7.remi @remi
openldap.x86_64 2.4.44-13.el7 @anaconda
openssh.x86_64 7.4p1-16.el7 @anaconda
openssh-clients.x86_64 7.4p1-16.el7 @anaconda
openssh-server.x86_64 7.4p1-16.el7 @anaconda
openssl.x86_64 1:1.0.2k-22.el7_9 @updates
openssl-devel.x86_64 1:1.0.2k-22.el7_9 @updates
openssl-libs.x86_64 1:1.0.2k-22.el7_9 @updates
os-prober.x86_64 1.58-9.el7 @anaconda
p11-kit.x86_64 0.23.5-3.el7 @anaconda
p11-kit-trust.x86_64 0.23.5-3.el7 @anaconda
pakchois.x86_64 0.4-10.el7 @anaconda
pam.x86_64 1.1.8-22.el7 @anaconda
pango.x86_64 1.40.4-1.el7 @base
parted.x86_64 3.1-29.el7 @anaconda
passwd.x86_64 0.79-4.el7 @anaconda
patch.x86_64 2.7.1-10.el7_5 @centos-updates
patchutils.x86_64 0.3.3-4.el7 @anaconda
pciutils-libs.x86_64 3.5.1-3.el7 @anaconda
pcre.x86_64 8.32-17.el7 @anaconda
pcre-devel.x86_64 8.32-17.el7 @base
perl.x86_64 4:5.16.3-292.el7 @anaconda
perl-Carp.noarch 1.26-244.el7 @anaconda
perl-Compress-Raw-Bzip2.x86_64 2.061-3.el7 @base
perl-Compress-Raw-Zlib.x86_64 1:2.061-4.el7 @base
perl-DBI.x86_64 1.627-4.el7 @base
perl-Data-Dumper.x86_64 2.145-3.el7 @anaconda
perl-Encode.x86_64 2.51-7.el7 @anaconda
perl-Error.noarch 1:0.17020-2.el7 @anaconda
perl-Exporter.noarch 5.68-3.el7 @anaconda
perl-File-Path.noarch 2.09-2.el7 @anaconda
perl-File-Temp.noarch 0.23.01-3.el7 @anaconda
perl-Filter.x86_64 1.49-3.el7 @anaconda
perl-Getopt-Long.noarch 2.40-3.el7 @anaconda
perl-Git.noarch 1.8.3.1-13.el7 @anaconda
perl-HTTP-Tiny.noarch 0.033-3.el7 @anaconda
perl-IO-Compress.noarch 2.061-2.el7 @base
perl-Net-Daemon.noarch 0.48-5.el7 @base
perl-PathTools.x86_64 3.40-5.el7 @anaconda
perl-PlRPC.noarch 0.2020-14.el7 @base
perl-Pod-Escapes.noarch 1:1.04-292.el7 @anaconda
perl-Pod-Perldoc.noarch 3.20-4.el7 @anaconda
perl-Pod-Simple.noarch 1:3.28-4.el7 @anaconda
perl-Pod-Usage.noarch 1.63-3.el7 @anaconda
perl-Scalar-List-Utils.x86_64 1.27-248.el7 @anaconda
perl-Socket.x86_64 2.010-4.el7 @anaconda
perl-Storable.x86_64 2.45-3.el7 @anaconda
perl-TermReadKey.x86_64 2.30-20.el7 @anaconda
perl-Test-Harness.noarch 3.28-3.el7 @anaconda
perl-Text-ParseWords.noarch 3.29-4.el7 @anaconda
perl-Thread-Queue.noarch 3.02-2.el7 @anaconda
perl-Time-HiRes.x86_64 4:1.9725-3.el7 @anaconda
perl-Time-Local.noarch 1.2300-2.el7 @anaconda
perl-XML-Parser.x86_64 2.41-10.el7 @anaconda
perl-constant.noarch 1.27-2.el7 @anaconda
perl-libs.x86_64 4:5.16.3-292.el7 @anaconda
perl-macros.x86_64 4:5.16.3-292.el7 @anaconda
perl-parent.noarch 1:0.225-244.el7 @anaconda
perl-podlators.noarch 2.5.1-3.el7 @anaconda
perl-srpm-macros.noarch 1-8.el7 @anaconda
perl-threads.x86_64 1.87-4.el7 @anaconda
perl-threads-shared.x86_64 1.43-6.el7 @anaconda
php.x86_64 7.4.25-1.el7.remi @remi-php74
php-cli.x86_64 7.4.25-1.el7.remi @remi-php74
php-common.x86_64 7.4.25-1.el7.remi @remi-php74
php-devel.x86_64 7.4.25-1.el7.remi @remi-php74
php-fpm.x86_64 7.4.25-1.el7.remi @remi-php74
php-gd.x86_64 7.4.25-1.el7.remi @remi-php74
php-intl.x86_64 7.4.25-1.el7.remi @remi-php74
php-json.x86_64 7.4.25-1.el7.remi @remi-php74
php-mbstring.x86_64 7.4.25-1.el7.remi @remi-php74
php-mysqlnd.x86_64 7.4.25-1.el7.remi @remi-php74
php-opcache.x86_64 7.4.25-1.el7.remi @remi-php74
php-pdo.x86_64 7.4.25-1.el7.remi @remi-php74
php-pear.noarch 1:1.10.13-1.el7.remi @remi
php-pecl-apcu.x86_64 5.1.21-1.el7.remi.7.4 @remi-php74
php-pecl-mcrypt.x86_64 1.0.4-1.el7.remi.7.4 @remi-php74
php-pecl-zip.x86_64 1.20.0-1.el7.remi.7.4 @remi-php74
php-process.x86_64 7.4.25-1.el7.remi @remi-php74
php-sodium.x86_64 7.4.25-1.el7.remi @remi-php74
php-xml.x86_64 7.4.25-1.el7.remi @remi-php74
pinentry.x86_64 0.8.1-17.el7 @anaconda
pixman.x86_64 0.34.0-1.el7 @base
pkgconfig.x86_64 1:0.27.1-4.el7 @anaconda
plymouth.x86_64 0.8.9-0.31.20140113.el7.centos @anaconda
plymouth-core-libs.x86_64 0.8.9-0.31.20140113.el7.centos @anaconda
plymouth-scripts.x86_64 0.8.9-0.31.20140113.el7.centos @anaconda
policycoreutils.x86_64 2.5-22.el7 @anaconda
policycoreutils-python.x86_64 2.5-22.el7 @base
polkit.x86_64 0.112-14.el7 @anaconda
polkit-pkla-compat.x86_64 0.1-4.el7 @anaconda
poppler-data.noarch 0.4.6-3.el7 @base
popt.x86_64 1.13-16.el7 @anaconda
postfix.x86_64 2:2.10.1-6.el7 @anaconda
procps-ng.x86_64 3.3.10-17.el7 @anaconda
pth.x86_64 2.0.7-23.el7 @anaconda
pyOpenSSL.x86_64 0.13.1-4.el7 @base
pygpgme.x86_64 0.3-9.el7 @anaconda
pyliblzma.x86_64 0.5.3-11.el7 @anaconda
python.x86_64 2.7.5-68.el7 @anaconda
python-IPy.noarch 0.75-6.el7 @base
python-backports.x86_64 1.0-8.el7 @base
python-backports-ssl_match_hostname.noarch 3.5.0.1-1.el7 @base
python-cffi.x86_64 1.6.0-5.el7 @base
python-chardet.noarch 2.2.1-1.el7_1 @base
python-configobj.noarch 4.7.2-7.el7 @anaconda
python-decorator.noarch 3.4.0-3.el7 @anaconda
python-enum34.noarch 1.0.4-1.el7 @base
python-firewall.noarch 0.4.4.4-14.el7 @anaconda
python-gobject-base.x86_64 3.22.0-1.el7_4.1 @anaconda
python-idna.noarch 2.4-1.el7 @base
python-iniparse.noarch 0.4-9.el7 @anaconda
python-ipaddress.noarch 1.0.16-2.el7 @base
python-kitchen.noarch 1.1.1-5.el7 @base
python-libs.x86_64 2.7.5-68.el7 @anaconda
python-linux-procfs.noarch 0.4.9-3.el7 @anaconda
python-ndg_httpsclient.noarch 0.3.2-1.el7 @epel
python-perf.x86_64 3.10.0-862.2.3.el7 @centos-updates
python-ply.noarch 3.4-11.el7 @base
python-pycparser.noarch 2.14-1.el7 @base
python-pycurl.x86_64 7.19.0-19.el7 @anaconda
python-pyudev.noarch 0.15-9.el7 @anaconda
python-requests.noarch 2.6.0-10.el7 @base
python-requests-toolbelt.noarch 0.8.0-3.el7 @epel
python-schedutils.x86_64 0.4-6.el7 @anaconda
python-setuptools.noarch 0.9.8-7.el7 @base
python-six.noarch 1.9.0-2.el7 @base
python-slip.noarch 0.4.0-4.el7 @anaconda
python-slip-dbus.noarch 0.4.0-4.el7 @anaconda
python-urlgrabber.noarch 3.10-8.el7 @anaconda
python-urllib3.noarch 1.10.2-7.el7 @base
python-zope-component.noarch 1:4.1.0-5.el7 @epel
python-zope-event.noarch 4.0.3-2.el7 @epel
python-zope-interface.x86_64 4.0.5-4.el7 @base
python2-acme.noarch 1.11.0-1.el7 @epel
python2-certbot.noarch 1.11.0-1.el7 @epel
python2-configargparse.noarch 0.11.0-2.el7 @epel
python2-cryptography.x86_64 1.7.2-2.el7 @base
python2-distro.noarch 1.2.0-3.el7 @epel
python2-future.noarch 0.18.2-2.el7 @epel
python2-josepy.noarch 1.3.0-2.el7 @epel
python2-mock.noarch 1.0.1-10.el7 @epel
python2-parsedatetime.noarch 2.4-6.el7 @epel
python2-pyasn1.noarch 0.1.9-7.el7 @base
python2-pyrfc3339.noarch 1.1-3.el7 @epel
python2-six.noarch 1.9.0-0.el7 @epel
pytz.noarch 2016.10-2.el7 @base
pyxattr.x86_64 0.5.1-5.el7 @anaconda
qrencode-libs.x86_64 3.4.1-3.el7 @anaconda
rcs.x86_64 5.9.0-5.el7 @anaconda
readline.x86_64 6.2-10.el7 @anaconda
redhat-rpm-config.noarch 9.1.0-80.el7.centos @anaconda
remi-release.noarch 7.9-2.el7.remi installed
rootfiles.noarch 8.1-11.el7 @anaconda
rpm.x86_64 4.11.3-32.el7 @anaconda
rpm-build.x86_64 4.11.3-32.el7 @anaconda
rpm-build-libs.x86_64 4.11.3-32.el7 @anaconda
rpm-libs.x86_64 4.11.3-32.el7 @anaconda
rpm-python.x86_64 4.11.3-32.el7 @anaconda
rpm-sign.x86_64 4.11.3-32.el7 @anaconda
rsync.x86_64 3.1.2-4.el7 @anaconda
rsyslog.x86_64 8.24.0-16.el7 @anaconda
sed.x86_64 4.2.2-5.el7 @anaconda
selinux-policy.noarch 3.13.1-192.el7_5.3 @centos-updates
selinux-policy-targeted.noarch 3.13.1-192.el7_5.3 @centos-updates
setools-libs.x86_64 3.3.8-2.el7 @base
setup.noarch 2.8.71-9.el7 @anaconda
sg3_utils.x86_64 1.37-12.el7 @anaconda
sg3_utils-libs.x86_64 1.37-12.el7 @anaconda
shadow-utils.x86_64 2:4.1.5.1-24.el7 @anaconda
shared-mime-info.x86_64 1.8-4.el7 @anaconda
slang.x86_64 2.2.4-11.el7 @anaconda
snappy.x86_64 1.1.0-3.el7 @anaconda
sqlite.x86_64 3.7.17-8.el7 @anaconda
subversion.x86_64 1.7.14-14.el7 @anaconda
subversion-libs.x86_64 1.7.14-14.el7 @anaconda
sudo.x86_64 1.8.19p2-13.el7 @anaconda
swig.x86_64 2.0.10-5.el7 @anaconda
systemd.x86_64 219-57.el7 @anaconda
systemd-libs.x86_64 219-57.el7 @anaconda
systemd-sysv.x86_64 219-57.el7 @anaconda
systemtap.x86_64 3.2-4.el7 @anaconda
systemtap-client.x86_64 3.2-4.el7 @anaconda
systemtap-devel.x86_64 3.2-4.el7 @anaconda
systemtap-runtime.x86_64 3.2-4.el7 @anaconda
sysvinit-tools.x86_64 2.88-14.dsf.el7 @anaconda
tar.x86_64 2:1.26-34.el7 @anaconda
tcp_wrappers-libs.x86_64 7.6-77.el7 @anaconda
teamd.x86_64 1.27-4.el7 @anaconda
trousers.x86_64 0.3.14-2.el7 @anaconda
tuned.noarch 2.9.0-1.el7 @anaconda
tzdata.noarch 2018e-3.el7 @centos-updates
unzip.x86_64 6.0-19.el7 @anaconda
urw-fonts.noarch 2.4-16.el7 @base
ustr.x86_64 1.0.4-16.el7 @anaconda
util-linux.x86_64 2.23.2-52.el7 @anaconda
vim-common.x86_64 2:7.4.629-8.el7_9 @updates
vim-enhanced.x86_64 2:7.4.629-8.el7_9 @updates
vim-filesystem.x86_64 2:7.4.160-4.el7 @base
vim-minimal.x86_64 2:7.4.160-4.el7 @anaconda
virt-what.x86_64 1.18-4.el7 @anaconda
which.x86_64 2.20-7.el7 @anaconda
wpa_supplicant.x86_64 1:2.6-9.el7 @anaconda
xfsdump.x86_64 3.1.7-1.el7 @base
xfsprogs.x86_64 4.5.0-15.el7 @anaconda
xorg-x11-font-utils.x86_64 1:7.5-20.el7 @base
xorg-x11-proto-devel.noarch 7.7-20.el7 @base
xz.x86_64 5.2.2-1.el7 @anaconda
xz-devel.x86_64 5.2.2-1.el7 @base
xz-libs.x86_64 5.2.2-1.el7 @anaconda
yum.noarch 3.4.3-158.el7.centos @anaconda
yum-metadata-parser.x86_64 1.1.4-10.el7 @anaconda
yum-plugin-fastestmirror.noarch 1.1.31-45.el7 @anaconda
yum-utils.noarch 1.1.31-46.el7_5 @updates
zip.x86_64 3.0-11.el7 @anaconda
zlib.x86_64 1.2.7-17.el7 @anaconda
zlib-devel.x86_64 1.2.7-17.el7 @base
PHPのバージョン確認
[root@server ~]# php -v
PHP 7.4.25 (cli) (built: Oct 19 2021 15:18:10) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.25, Copyright (c), by Zend Technologies
MySQLのバージョン確認
[root@server ~]# mysqld --version
mysqld Ver 5.6.40 for Linux on x86_64 (MySQL Community Server (GPL))
Apacheのバージョン確認
[root@server ~]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Apr 20 2018 18:10:38
CakePHPのバージョン確認
[root@server html]# bin/cake version
4.2.10
firewallの設定確認
[root@server ~]# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: ssh dhcpv6-client http https
ports: 18332/tcp 18333/tcp 19332/tcp 5201/tcp 5201/udp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
AlmaLinux9のサーバー契約
AlmaLinuxのインストール
まずは管理画面からOSをインストールします。
OS:AlmaLinux9
パケットフィルター設定
SSH TCP 22 送信元IPアドレス:すべて許可する
Web TCP 80/443 送信元IPアドレス:すべて許可する
historyコマンドに日付をつける
これは必須ではありませんが、僕の場合、コマンドの実行日時を結構見るので設定しておきます。
[root@server alma]# echo "export HISTTIMEFORMAT='%F %T '" >> ~/.bashrc
[root@server alma]# source ~/.bashrc
rootのパスワード設定
[root@server alma]# passwd
Changing password for user root.
New password: ← 新しいパスワードを入力
Retype new password: ← 新しいパスワードを入力
passwd: all authentication tokens updated successfully.
SSHの設定
/etc/ssh/sshd_config の編集
[root@server ~]# vi /etc/ssh/sshd_config
#PermitRootLogin prohibit-password
PermitRootLogin no ← これを追記
#PasswordAuthentication yes
PasswordAuthentication no ← これを追記
#PermitEmptyPasswords no
PermitEmptyPasswords no ← これを追記
[root@server ~]# systemctl restart sshd.service
公開鍵・秘密鍵の作成
[alma@server ~]$ ssh-keygen -t rsa -b 4096
Generating public/private rsa key pair.
Enter file in which to save the key (/home/alma/.ssh/id_rsa): ← Enter
Created directory '/home/alma/.ssh'.
Enter passphrase (empty for no passphrase): ← Enter
Enter same passphrase again:
Your identification has been saved in /home/alma/.ssh/id_rsa ← 秘密鍵
Your public key has been saved in /home/alma/.ssh/id_rsa.pub ← 公開鍵
The key fingerprint is:
SHA256:*********
The key's randomart image is:
id_rsaの内容をコピーして、クライアントPCに保存しておく。サーバーからは削除。
SSHで接続する際に使用します。
id_rsa.pubはauthorized_keysにリネームしてサーバーに置いておく
[alma@server ~]$ rm ~/.ssh/id_rsa
[alma@server ~]$ mv ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
クライアントPCで、接続確認
% ssh -i id_rsa alma@xxx.xxx.xxx.xxx
SAKURA internet [Virtual Private Server SERVICE]
Last login: Thu Apr 11 23:16:58 2024
Apacheのインストール
Apacheのインストール
[root@server alma]# yum list | grep httpd
httpd.x86_64 2.4.57-5.el9 appstream
[root@server alma]# yum install -y httpd
Installed:
almalinux-logos-httpd-90.5.1-1.1.el9.noarch apr-1.7.0-12.el9_3.x86_64 apr-util-1.6.1-23.el9.x86_64 apr-util-bdb-1.6.1-23.el9.x86_64 apr-util-openssl-1.6.1-23.el9.x86_64 httpd-2.4.57-5.el9.x86_64 httpd-core-2.4.57-5.el9.x86_64
httpd-filesystem-2.4.57-5.el9.noarch httpd-tools-2.4.57-5.el9.x86_64 mailcap-2.1.49-5.el9.noarch mod_http2-1.15.19-5.el9.x86_64 mod_lua-2.4.57-5.el9.x86_64
Complete!
firewallの設定
firewalldの起動
[root@server alma]# systemctl status firewalld
○ firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; preset: enabled)
Active: inactive (dead)
Docs: man:firewalld(1)
[root@server alma]# systemctl start firewalld
[root@server alma]# firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: ens3
sources:
services: cockpit dhcpv6-client ssh
ports:
protocols:
forward: yes
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
[root@server alma]# firewall-cmd --add-service=http --permanent
success
[root@server alma]# firewall-cmd --add-service=https --permanent
success
[root@server alma]# systemctl restart firewalld
firewalldの自動起動有効化
[root@server alma]# systemctl enable firewalld
Created symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service → /usr/lib/systemd/system/firewalld.service.
Created symlink /etc/systemd/system/multi-user.target.wants/firewalld.service → /usr/lib/systemd/system/firewalld.service.
apacheの起動と自動起動登録
[root@server alma]# systemctl start httpd
[root@server alma]# systemctl enable httpd
PHP7.4のインストール
EPEL、Remiリポジトリのインストール
[root@server alma]# yum install -y epel-release
Installed:
epel-release-9-5.el9.noarch
Complete!
[root@server alma]# yum install -y https://rpms.remirepo.net/enterprise/remi-release-9.rpm
Upgraded:
almalinux-gpg-keys-9.3-1.el9.x86_64 almalinux-release-9.3-1.el9.x86_64 almalinux-repos-9.3-1.el9.x86_64
Installed:
remi-release-9.3-3.el9.remi.noarch
Complete!
PHP7.4のインストール
[root@server alma]# yum module install php:remi-7.4
Installed:
libxslt-1.1.34-9.el9.x86_64 nginx-filesystem-1:1.20.1-14.el9_2.1.alma.1.noarch oniguruma5php-6.9.9-1.el9.remi.x86_64 php-cli-7.4.33-14.el9.remi.x86_64 php-common-7.4.33-14.el9.remi.x86_64 php-fpm-7.4.33-14.el9.remi.x86_64
php-json-7.4.33-14.el9.remi.x86_64 php-mbstring-7.4.33-14.el9.remi.x86_64 php-xml-7.4.33-14.el9.remi.x86_64
Complete!
[root@server alma]# yum module enable php:remi-7.4
[root@server alma]# yum install php php-devel php-pear php-mbstring php-pdo php-gd php-zip php-xml php-fpm php-mcrypt php-mysqlnd php-pecl-apcu php-pecl-zendopcache php-intl
Upgraded:
elfutils-libelf-0.189-3.el9.x86_64 elfutils-libs-0.189-3.el9.x86_64 glibc-2.34-83.el9_3.12.x86_64 glibc-common-2.34-83.el9_3.12.x86_64 glibc-gconv-extra-2.34-83.el9_3.12.x86_64 glibc-langpack-en-2.34-83.el9_3.12.x86_64 krb5-libs-1.21.1-1.el9.x86_64
libgcc-11.4.1-2.1.el9.alma.x86_64 libgomp-11.4.1-2.1.el9.alma.x86_64 libstdc++-11.4.1-2.1.el9.alma.x86_64 libxml2-2.9.13-5.el9_3.x86_64 openssl-1:3.0.7-25.el9_3.x86_64 openssl-libs-1:3.0.7-25.el9_3.x86_64 zlib-1.2.11-40.el9.x86_64
Installed:
autoconf-2.69-38.el9.noarch automake-1.16.2-8.el9.noarch binutils-2.35.2-42.el9_3.1.x86_64 binutils-gold-2.35.2-42.el9_3.1.x86_64 cmake-filesystem-3.20.2-9.el9_3.x86_64
cpp-11.4.1-2.1.el9.alma.x86_64 elfutils-debuginfod-client-0.189-3.el9.x86_64 emacs-filesystem-1:27.2-9.el9.noarch fontconfig-2.14.0-2.el9_1.x86_64 freetype-2.10.4-9.el9.x86_64
fribidi-1.0.10-6.el9.2.x86_64 gcc-11.4.1-2.1.el9.alma.x86_64 gcc-c++-11.4.1-2.1.el9.alma.x86_64 gd3php-2.3.3-9.el9.remi.x86_64 gdk-pixbuf2-2.42.6-3.el9.x86_64
glibc-devel-2.34-83.el9_3.12.x86_64 glibc-headers-2.34-83.el9_3.12.x86_64 graphite2-1.3.14-9.el9.x86_64 harfbuzz-2.7.4-8.el9.x86_64 highway-1.1.0-1.el9.x86_64
jbigkit-libs-2.1-23.el9.x86_64 jxl-pixbuf-loader-0.7.0-1.el9.x86_64 kernel-headers-5.14.0-362.24.2.el9_3.x86_64 keyutils-libs-devel-1.6.3-1.el9.x86_64 krb5-devel-1.21.1-1.el9.x86_64
libX11-1.7.0-8.el9.x86_64 libX11-common-1.7.0-8.el9.noarch libXau-1.0.9-8.el9.x86_64 libXpm-3.5.13-8.el9_1.x86_64 libaom-3.8.2-1.el9.x86_64
libavif-0.11.1-4.el9.x86_64 libcom_err-devel-1.46.5-3.el9.x86_64 libdav1d-1.2.1-1.el9.x86_64 libicu73-73.2-1.el9.remi.x86_64 libimagequant-2.17.0-1.el9.x86_64
libjpeg-turbo-2.0.90-6.el9_1.x86_64 libjxl-0.7.0-1.el9.x86_64 libkadm5-1.21.1-1.el9.x86_64 libmcrypt-2.5.8-30.el9.x86_64 libmpc-1.2.1-4.el9.x86_64
libpkgconf-1.7.3-10.el9.x86_64 libpng-2:1.6.37-12.el9.x86_64 libraqm-0.8.0-1.el9.x86_64 libselinux-devel-3.5-1.el9.x86_64 libsepol-devel-3.5-1.el9.x86_64
libsodium-1.0.18-8.el9.x86_64 libstdc++-devel-11.4.1-2.1.el9.alma.x86_64 libtiff-4.4.0-10.el9.x86_64 libtool-2.4.6-45.el9.x86_64 libverto-devel-0.3.2-3.el9.x86_64
libvmaf-2.3.0-2.el9.x86_64 libwebp-1.2.0-8.el9_3.x86_64 libxcb-1.13.1-9.el9.x86_64 libxcrypt-devel-4.4.18-3.el9.x86_64 libxml2-devel-2.9.13-5.el9_3.x86_64
m4-1.4.19-1.el9.x86_64 make-1:4.3-7.el9.x86_64 openssl-devel-1:3.0.7-25.el9_3.x86_64 pcre2-devel-10.40-2.el9.x86_64 pcre2-utf16-10.40-2.el9.x86_64
pcre2-utf32-10.40-2.el9.x86_64 perl-AutoLoader-5.74-480.el9.noarch perl-B-1.80-480.el9.x86_64 perl-Carp-1.50-460.el9.noarch perl-Class-Struct-0.66-480.el9.noarch
perl-Data-Dumper-2.174-462.el9.x86_64 perl-Digest-1.19-4.el9.noarch perl-Digest-MD5-2.58-4.el9.x86_64 perl-DynaLoader-1.47-480.el9.x86_64 perl-Encode-4:3.08-462.el9.x86_64
perl-Errno-1.30-480.el9.x86_64 perl-Exporter-5.74-461.el9.noarch perl-Fcntl-1.13-480.el9.x86_64 perl-File-Basename-2.85-480.el9.noarch perl-File-Compare-1.100.600-480.el9.noarch
perl-File-Copy-2.34-480.el9.noarch perl-File-Find-1.37-480.el9.noarch perl-File-Path-2.18-4.el9.noarch perl-File-Temp-1:0.231.100-4.el9.noarch perl-File-stat-1.09-480.el9.noarch
perl-FileHandle-2.03-480.el9.noarch perl-Getopt-Long-1:2.52-4.el9.noarch perl-Getopt-Std-1.12-480.el9.noarch perl-HTTP-Tiny-0.076-461.el9.noarch perl-IO-1.43-480.el9.x86_64
perl-IO-Socket-IP-0.41-5.el9.noarch perl-IO-Socket-SSL-2.073-1.el9.noarch perl-IPC-Open3-1.21-480.el9.noarch perl-MIME-Base64-3.16-4.el9.x86_64 perl-Mozilla-CA-20200520-6.el9.noarch
perl-NDBM_File-1.15-480.el9.x86_64 perl-Net-SSLeay-1.92-2.el9.x86_64 perl-POSIX-1.94-480.el9.x86_64 perl-PathTools-3.78-461.el9.x86_64 perl-Pod-Escapes-1:1.07-460.el9.noarch
perl-Pod-Perldoc-3.28.01-461.el9.noarch perl-Pod-Simple-1:3.42-4.el9.noarch perl-Pod-Usage-4:2.01-4.el9.noarch perl-Scalar-List-Utils-4:1.56-461.el9.x86_64 perl-SelectSaver-1.02-480.el9.noarch
perl-Socket-4:2.031-4.el9.x86_64 perl-Storable-1:3.21-460.el9.x86_64 perl-Symbol-1.08-480.el9.noarch perl-Term-ANSIColor-5.01-461.el9.noarch perl-Term-Cap-1.17-460.el9.noarch
perl-Text-ParseWords-3.30-460.el9.noarch perl-Text-Tabs+Wrap-2013.0523-460.el9.noarch perl-Thread-Queue-3.14-460.el9.noarch perl-Time-Local-2:1.300-7.el9.noarch perl-URI-5.09-3.el9.noarch
perl-base-2.27-480.el9.noarch perl-constant-1.33-461.el9.noarch perl-if-0.60.800-480.el9.noarch perl-interpreter-4:5.32.1-480.el9.x86_64 perl-libnet-3.13-4.el9.noarch
perl-libs-4:5.32.1-480.el9.x86_64 perl-mro-1.23-480.el9.x86_64 perl-overload-1.31-480.el9.noarch perl-overloading-0.02-480.el9.noarch perl-parent-1:0.238-460.el9.noarch
perl-podlators-1:4.14-460.el9.noarch perl-subs-1.03-480.el9.noarch perl-threads-1:2.25-460.el9.x86_64 perl-threads-shared-1.61-460.el9.x86_64 perl-vars-1.05-480.el9.noarch
php-7.4.33-14.el9.remi.x86_64 php-devel-7.4.33-14.el9.remi.x86_64 php-gd-7.4.33-14.el9.remi.x86_64 php-intl-7.4.33-14.el9.remi.x86_64 php-mysqlnd-7.4.33-14.el9.remi.x86_64
php-opcache-7.4.33-14.el9.remi.x86_64 php-pdo-7.4.33-14.el9.remi.x86_64 php-pear-1:1.10.13-1.el9.noarch php-pecl-apcu-5.1.23-1.el9.remi.7.4.x86_64 php-pecl-mcrypt-1.0.7-1.el9.remi.7.4.x86_64
php-pecl-zip-1.22.3-1.el9.remi.7.4.x86_64 php-process-7.4.33-14.el9.remi.x86_64 php-sodium-7.4.33-14.el9.remi.x86_64 pkgconf-1.7.3-10.el9.x86_64 pkgconf-m4-1.7.3-10.el9.noarch
pkgconf-pkg-config-1.7.3-10.el9.x86_64 rav1e-libs-0.7.1-1.el9.x86_64 remi-libzip-1.10.1-1.el9.remi.x86_64 shared-mime-info-2.1-5.el9.x86_64 svt-av1-libs-0.9.0-1.el9.x86_64
tar-2:1.34-6.el9_1.x86_64 xml-common-0.6.3-58.el9.noarch xz-devel-5.2.5-8.el9_0.x86_64 zlib-devel-1.2.11-40.el9.x86_64
Complete!
[root@server alma]# php -v
PHP 7.4.33 (cli) (built: Apr 10 2024 09:23:42) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies
php.ini の編集
バックアップをとっておく
[root@server alma]# cp /etc/php.ini /etc/php.ini.default
前のサーバーと比較し、差分を適用
max_execution_time = 120
memory_limit = 1028M
track_errors = Off
html_errors = On
upload_max_filesize = 10M
extension=imagick.so
date.timezone = Asia/Tokyo
mail.add_x_header = On
composerのインストール
[root@server alma]# curl -sS https://getcomposer.org/installer | php
All settings correct for using Composer
Downloading...
Composer (version 2.7.2) successfully installed to: /home/alma/composer.phar
Use it: php composer.phar
[root@server alma]# mv composer.phar /usr/local/bin/composer
MySQL5.7のインストール
MySQL5.7のインストール
[root@server alma]# yum localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
Installed:
mysql57-community-release-el7-7.noarch
Complete!
[root@server alma]# yum info mysql-community-server
MySQL Connectors Community 695 kB/s | 68 kB 00:00
MySQL Tools Community 5.2 MB/s | 1.1 MB 00:00
MySQL 5.7 Community Server 7.9 MB/s | 3.1 MB 00:00
Available Packages
Name : mysql-community-server
Version : 5.7.44
Release : 1.el7
Architecture : x86_64
Size : 184 M
Source : mysql-community-5.7.44-1.el7.src.rpm
Repository : mysql57-community
Summary : A very fast and reliable SQL database server
URL : http://www.mysql.com/
License : Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved. 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.
[root@server alma]# yum install -y mysql-community-server
MySQL 5.7 Community Server 5.7 MB/s | 5.8 kB 00:00
Importing GPG key *****:
Userid : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
Fingerprint: A4A9 4068 76FC BD3C 4567 70C8 8C71 8D3B 5072 E1F5
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Key imported successfully
Import of key(s) didn't help, wrong key(s)?
Public key for mysql-community-client-5.7.44-1.el7.x86_64.rpm is not installed. Failing package is: mysql-community-client-5.7.44-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Public key for mysql-community-common-5.7.44-1.el7.x86_64.rpm is not installed. Failing package is: mysql-community-common-5.7.44-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Public key for mysql-community-libs-5.7.44-1.el7.x86_64.rpm is not installed. Failing package is: mysql-community-libs-5.7.44-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
Public key for mysql-community-server-5.7.44-1.el7.x86_64.rpm is not installed. Failing package is: mysql-community-server-5.7.44-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'yum clean packages'.
Error: GPG check FAILED
GPGキーが間違っているとのこと。。
以下でGPGキーを更新して再度インストールをしたら行けた。
[root@server alma]# rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
MySQLの起動と自動起動登録
[root@server alma]# systemctl start mysqld
[root@server alma]# systemctl enable mysqld
rootのパスワード設定
[root@server alma]# cat /var/log/mysqld.log | grep root
[root@server alma]# mysql -u root -p
mysql> set password = password('xxxxxxx');
[root@server alma]# systemctl restart mysqld
my.cnfの編集
前のサーバーと比較し、差分を適用
[root@server alma]# systemctl restart mysqld
SSLの設定
mod_sslのインストール
[root@server alma]# yum install mod_ssl
Installed:
mod_ssl-1:2.4.57-5.el9.x86_64 sscg-3.0.0-7.el9.x86_64
Complete!
SSL証明書の設定
既存サーバーのconfファイルを確認
SSLのサーバー証明書の場所やconfigファイルはサーバーごとに設定が異なるため、適宜確認する必要があります。
サーバー証明書の設置
既存サーバーの以下のファイルを新サーバーに設置する
SSLCertificateFile
SSLCertificateKeyFile
SSLCertificateChainFile
apacheにmod_ssl設定
[root@server certs]# vi /etc/httpd/conf.d/ssl.conf
SSLCertificateFile /etc/pki/tls/certs/server.crt
SSLCertificateChainFile /etc/pki/tls/certs/server-chain.crt
SSLCertificateKeyFile /etc/pki/tls/private/server.key
[root@server alma]# systemctl restart httpd
Apacheの設定
DocumentRootの設定
既存サイトの設定を真似して色々調整する
[root@server alma]# vi /etc/httpd/conf/httpd.conf
[root@server alma]# systemctl restart httpd
ソースコードの移管
tarコマンドで圧縮して移管
現行サーバーのソースコード一式をtar.gzファイルに圧縮して、生成された html.tar.gz を移行先サーバーで展開します。
圧縮
[root@server html]# cd /var/www/html/
[root@server html]# tar cvzfp /home/html.tar.gz ./
解凍
[root@server html]# cd /var/www/html/
[root@server html]# tar xvzfp html.tar.gz
SELinuxの無効化
CakePHPだと、SELinuxが有効になっていると何かとエラーを吐くので、無効化しておきます。
[root@server html]# getenforce
Disabled
[root@server html]# setenforce 0
setenforce: SELinux is disabled
データベースの移管
phpMyAdminのインストール
とりあえず便利なので入れておきます。
phpモジュール mysqlnd を入れる
[root@server alma]# yum -y install php-mysqlnd
Installed:
php-mysqlnd-7.4.33-10.el9.remi.x86_64
Complete!
正常にphpMyAdminが表示されれば完了!
データのバックアップ
以下を現行サーバーで実行。
[root@server ~]# mysqldump -uroot -p database_name --hex-blob > 20240221_database_name.sql
データのリストア
[root@server alma]# mysql -uroot -p database_name < 20240221_database_name.sql
phpMyAdminで確認して、正常にデータが入っていればリストア完了。
終わり
以上で、移管作業が完了しました。
サイトを画面確認して、問題無いことをチェック。
あとは、cronとかの設定をしている場合は、その設定とかも移行しないとだね。
[alma@server ~]$ crontab -l
コメント