0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CentOS LinuxからRocky Linuxへの移行

Posted at

出たみたいなので確認

Rocky Linux 8.4 GA Available Now | Rocky Linux
rocky-tools/migrate2rocky at main · rocky-linux/rocky-tools

環境

Flatcar Container Linux上で起動したCentOS Linux 8.4

Log

# cat /etc/redhat-release
CentOS Linux release 8.4.2105

// これを入れておかないとスクリプトが途中で止まった
# yum install ncurses 'dnf-command(config-manager)' -y
...略

# curl -O https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 12111  100 12111    0     0  38084      0 --:--:-- --:--:-- --:--:-- 38084

# bash migrate2rocky.sh -r
Preparing to migrate CentOS Linux 8 to Rocky Linux 8.

Determining repository names for CentOS Linux 8.....

Found the following repositories which map from CentOS Linux 8 to Rocky Linux 8:
CentOS Linux 8  Rocky Linux 8
appstream       appstream
baseos          baseos
extras          extras

Getting system package names for CentOS Linux 8........

Found the following system packages which map from CentOS Linux 8 to Rocky Linux 8:
CentOS Linux 8        Rocky Linux 8
centos-backgrounds    rocky-backgrounds
centos-gpg-keys       rocky-gpg-keys
centos-logos          rocky-logos
centos-indexhtml      rocky-indexhtml
centos-linux-release  rocky-release
centos-linux-repos    rocky-repos

Getting list of installed system packages.

We will replace the following CentOS Linux 8 packages with their Rocky Linux 8 equivalents
Packages to be Removed  Packages to be Installed
centos-gpg-keys         rocky-gpg-keys
centos-linux-release    rocky-release
centos-linux-repos      rocky-repos

In addition to the above the following system packages will be removed:
centos-linux-release
centos-linux-release

Getting a list of enabled modules for the system repositories.

Excluding modules:
libselinux-python:2.8

Found the following modules to re-enable at completion:

Added rockyappstream repo from https://dl.rockylinux.org/pub/rocky/8/AppStream/x86_64/os/
Added rockybaseos repo from https://dl.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/
rockyappstream                                  2.2 MB/s | 7.1 MB     00:03
rockybaseos                                     1.7 MB/s | 2.5 MB     00:01
Last metadata expiration check: 0:00:02 ago on Wed 23 Jun 2021 11:07:13 AM UTC.
> > > ================================================================================
 Package                  Arch       Version              Repository       Size
================================================================================
Installing:
 rocky-gpg-keys           noarch     8.4-26.el8           rockybaseos      11 k
 rocky-release            noarch     8.4-26.el8           rockybaseos      19 k
 rocky-repos              noarch     8.4-26.el8           rockybaseos      12 k
Removing:
 centos-gpg-keys          noarch     1:8-2.el8            @System         3.3 k
 centos-linux-release     noarch     8.4-1.2105.el8       @baseos          25 k
 centos-linux-repos       noarch     8-2.el8              @System          26 k

Transaction Summary
================================================================================
Install  3 Packages
Remove   3 Packages

Total download size: 43 k
Downloading Packages:
(1/3): rocky-gpg-keys-8.4-26.el8.noarch.rpm     122 kB/s |  11 kB     00:00
(2/3): rocky-release-8.4-26.el8.noarch.rpm      208 kB/s |  19 kB     00:00
(3/3): rocky-repos-8.4-26.el8.noarch.rpm        112 kB/s |  12 kB     00:00
--------------------------------------------------------------------------------
Total                                           354 kB/s |  43 kB     00:00
warning: /var/cache/dnf/rockybaseos-56e41edc159a87c2/packages/rocky-gpg-keys-8.4-26.el8.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 6d745a60: NOKEY
rockybaseos                                     1.6 MB/s | 1.6 kB     00:00
Importing GPG key 0x6D745A60:
 Userid     : "Release Engineering <infrastructure@rockylinux.org>"
 Fingerprint: 7051 C470 A929 F454 CEBE 37B7 15AF 5DAC 6D74 5A60
 From       : /tmp/tmp.xUR30zRsCS/gpg/RPM-GPG-KEY-rockyofficial
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1
  Running scriptlet: rocky-gpg-keys-8.4-26.el8.noarch                       1/1
  Installing       : rocky-gpg-keys-8.4-26.el8.noarch                       1/6
  Installing       : rocky-release-8.4-26.el8.noarch                        2/6
  Installing       : rocky-repos-8.4-26.el8.noarch                          3/6
  Erasing          : centos-linux-release-8.4-1.2105.el8.noarch             4/6
  Erasing          : centos-linux-repos-8-2.el8.noarch                      5/6
warning: /etc/dnf/vars/infra saved as /etc/dnf/vars/infra.rpmsave

  Erasing          : centos-gpg-keys-1:8-2.el8.noarch                       6/6
  Running scriptlet: centos-gpg-keys-1:8-2.el8.noarch                       6/6
  Verifying        : rocky-gpg-keys-8.4-26.el8.noarch                       1/6
  Verifying        : rocky-release-8.4-26.el8.noarch                        2/6
  Verifying        : rocky-repos-8.4-26.el8.noarch                          3/6
  Verifying        : centos-gpg-keys-1:8-2.el8.noarch                       4/6
  Verifying        : centos-linux-release-8.4-1.2105.el8.noarch             5/6
  Verifying        : centos-linux-repos-8-2.el8.noarch                      6/6

Installed:
  rocky-gpg-keys-8.4-26.el8.noarch        rocky-release-8.4-26.el8.noarch
  rocky-repos-8.4-26.el8.noarch
Removed:
  centos-gpg-keys-1:8-2.el8.noarch   centos-linux-release-8.4-1.2105.el8.noarch
  centos-linux-repos-8-2.el8.noarch

Complete!
Last metadata expiration check: 0:00:05 ago on Wed 23 Jun 2021 11:07:13 AM UTC.
> Leaving Shell

Removing dnf cache
Ensuring repos are enabled before the package swap
Disabling excluded modules

Rocky Linux 8 - AppStream                       2.5 MB/s | 7.1 MB     00:02
Rocky Linux 8 - BaseOS                          1.8 MB/s | 2.5 MB     00:01
Rocky Linux 8 - Extras                          1.3 kB/s | 2.7 kB     00:02
Only module name is required. Ignoring unneeded information in argument: 'libselinux-python:2.8'
Dependencies resolved.
================================================================================
 Package           Architecture     Version             Repository         Size
================================================================================
Disabling modules:
 libselinux-python

Transaction Summary
================================================================================

Complete!

Syncing packages

Last metadata expiration check: 0:00:03 ago on Wed 23 Jun 2021 11:07:30 AM UTC.
Dependencies resolved.
=========================================================================================
 Package                       Arch    Version                           Repo        Size
=========================================================================================
Upgrading:
...略

Complete!

Done, please reboot your system.



A log of this installation can be found at /var/log/migrate2rocky.log

# cat /etc/redhat-release
Rocky Linux release 8.4 (Green Obsidian)

AppStream 確認

# yum module list
Last metadata expiration check: 0:06:57 ago on Wed 23 Jun 2021 11:07:30 AM UTC.
Rocky Linux 8 - AppStream
Name                 Stream          Profiles Summary
389-ds               1.4                      389 Directory Server (base)
ant                  1.10 [d]        common [ Java build tool
                                     d]
container-tools      rhel8 [d]       common [ Most recent (rolling) versions of podman, buildah, skopeo, runc,
                                     d]        conmon, runc, conmon, CRIU, Udica, etc as well as dependencies
                                              such as container-selinux built and tested together, and updated
                                               as frequently as every 12 weeks.
container-tools      1.0             common [ Stable versions of podman 1.0, buildah 1.5, skopeo 0.1, runc, co
                                     d]       nmon, CRIU, Udica, etc as well as dependencies such as container
                                              -selinux built and tested together, and supported for 24 months.
container-tools      2.0             common [ Stable versions of podman 1.6, buildah 1.11, skopeo 0.1, runc, c
                                     d]       onmon, etc as well as dependencies such as container-selinux bui
                                              lt and tested together, and supported as documented on the Appli
                                              cation Stream lifecycle page.
container-tools      3.0             common   Stable versions of podman 3.0, buildah 1.19, skopeo 1.2, runc, c
                                              onmon, etc as well as dependencies such as container-selinux bui
                                              lt and tested together, and supported as documented on the Appli
                                              cation Stream lifecycle page.
freeradius           3.0 [d]         server [ High-performance and highly configurable free RADIUS server
                                     d]
gimp                 2.8 [d]         common [ gimp module
                                     d], deve
                                     l
go-toolset           rhel8 [d]       common [ Go
                                     d]
httpd                2.4 [d]         common [ Apache HTTP Server
                                     d], deve
                                     l, minim
                                     al
idm                  DL1             adtrust, The Red Hat Enterprise Linux Identity Management system module
                                      client,
                                      common
                                     [d], dns
                                     , server
idm                  client [d]      common [ RHEL IdM long term support client module
                                     d]
inkscape             0.92.3 [d]      common [ Vector-based drawing program using SVG
                                     d]
javapackages-runtime 201801 [d]      common [ Basic runtime utilities to support Java applications
                                     d]
jmc                  rhel8 [d]       common [ Java Mission Control is a profiling and diagnostics tool for the
                                     d], core  Hotspot JVM
libselinux-python    2.8 [x]         common   Python 2 bindings for libselinux
llvm-toolset         rhel8 [d]       common [ LLVM
                                     d]
mailman              2.1 [d]         common [ Electronic mail discussion and e-newsletter lists managing softw
                                     d]       are
mariadb              10.3 [d]        client,  MariaDB Module
                                     galera,
                                     server [
                                     d]
mariadb              10.5            client,  MariaDB Module
                                     galera,
                                     server [
                                     d]
maven                3.5 [d]         common [ Java project management and project comprehension tool
                                     d]
maven                3.6             common [ Java project management and project comprehension tool
                                     d]
mercurial            4.8 [d]         common [ Mercurial -- a distributed SCM
                                     d]
mod_auth_openidc     2.3                      Apache module suporting OpenID Connect authentication
mysql                8.0 [d]         client,  MySQL Module
                                     server [
                                     d]
nginx                1.14 [d]        common [ nginx webserver
                                     d]
nginx                1.16            common [ nginx webserver
                                     d]
nginx                1.18            common [ nginx webserver
                                     d]
nodejs               10 [d]          common [ Javascript runtime
                                     d], deve
                                     lopment,
                                      minimal
                                     , s2i
nodejs               12              common [ Javascript runtime
                                     d], deve
                                     lopment,
                                      minimal
                                     , s2i
nodejs               14              common [ Javascript runtime
                                     d], deve
                                     lopment,
                                      minimal
                                     , s2i
parfait              0.5             common   Parfait Module
perl                 5.24            common [ Practical Extraction and Report Language
                                     d], mini
                                     mal
perl                 5.26 [d]        common [ Practical Extraction and Report Language
                                     d], mini
                                     mal
perl                 5.30            common [ Practical Extraction and Report Language
                                     d], mini
                                     mal
perl-App-cpanminus   1.7044 [d]      common [ Get, unpack, build and install CPAN modules
                                     d]
perl-DBD-MySQL       4.046 [d]       common [ A MySQL interface for Perl
                                     d]
perl-DBD-Pg          3.7 [d]         common [ A PostgreSQL interface for Perl
                                     d]
perl-DBD-SQLite      1.58 [d]        common [ SQLite DBI driver
                                     d]
perl-DBI             1.641 [d]       common [ A database access API for Perl
                                     d]
perl-FCGI            0.78 [d]        common [ FastCGI Perl bindings
                                     d]
perl-IO-Socket-SSL   2.066 [d]       common [ Perl library for transparent TLS
                                     d]
perl-YAML            1.24 [d]        common [ Perl parser for YAML
                                     d]
perl-libwww-perl     6.34 [d]        common [ A Perl interface to the World-Wide Web
                                     d]
php                  7.2 [d]         common [ PHP scripting language
                                     d], deve
                                     l, minim
                                     al
php                  7.3             common [ PHP scripting language
                                     d], deve
                                     l, minim
                                     al
php                  7.4             common [ PHP scripting language
                                     d], deve
                                     l, minim
                                     al
pki-core             10.6                     PKI Core module for PKI 10.6 or later
pki-deps             10.6                     PKI Dependencies module for PKI 10.6 or later
pmdk                 1_fileformat_v6          Persistent Memory Development Kit (former NVML)
postgresql           9.6             client,  PostgreSQL server and client module
                                     server [
                                     d]
postgresql           10 [d]          client,  PostgreSQL server and client module
                                     server [
                                     d]
postgresql           12              client,  PostgreSQL server and client module
                                     server [
                                     d]
postgresql           13              client,  PostgreSQL server and client module
                                     server [
                                     d]
python27             2.7 [d]         common [ Python programming language, version 2.7
                                     d]
python36             3.6 [d]         build, c Python programming language, version 3.6
                                     ommon [d
                                     ]
python38             3.8 [d]         build, c Python programming language, version 3.8
                                     ommon [d
                                     ]
python39             3.9 [d]         build, c Python programming language, version 3.9
                                     ommon [d
                                     ]
redis                5 [d]           common [ Redis persistent key-value database
                                     d]
redis                6               common [ Redis persistent key-value database
                                     d]
rhn-tools            1.0 [d]         common [ Red Hat Satellite 5 tools for RHEL
                                     d]
ruby                 2.5 [d]         common [ An interpreter of object-oriented scripting language
                                     d]
ruby                 2.6             common [ An interpreter of object-oriented scripting language
                                     d]
ruby                 2.7             common [ An interpreter of object-oriented scripting language
                                     d]
rust-toolset         rhel8 [d]       common [ Rust
                                     d]
satellite-5-client   1.0 [d]         common [ Red Hat Satellite 5 client packages
                                     d], gui
scala                2.10 [d]        common [ A hybrid functional/object-oriented language for the JVM
                                     d]
squid                4 [d]           common [ Squid - Optimising Web Delivery
                                     d]
subversion           1.10 [d]        common [ Apache Subversion
                                     d], serv
                                     er
subversion           1.14            common [ Apache Subversion
                                     d], serv
                                     er
swig                 3.0 [d]         common [ Connects C/C++/Objective C to some high-level programming langua
                                     d], comp ges
                                     lete
swig                 4.0             common [ Connects C/C++/Objective C to some high-level programming langua
                                     d], comp ges
                                     lete
varnish              6 [d]           common [ Varnish HTTP cache
                                     d]
virt                 rhel [d]        common [ Virtualization module
                                     d]

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?