LoginSignup
0
0

AlmaLinuxに移行した方法

Posted at

CentOSは8はすでにサポートが終了しているし、今後他のも終了する予定なので、AlmaLinuxにOSを移行する。

まずは現在のOSのバージョン確認。

$ cat /etc/centos-release
CentOS Linux release 8.5.2111

AlmaLinuxへの移行

参考にしたのはこちら
以下のコマンドでダウンロードと実行を行う。

$ curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh
$ sudo bash almalinux-deploy.sh

全て終わったら再起動。

$ sudo reboot

OSやカーネルの確認

ちゃんと移行できたかを確認する。

$ head /etc/*release
==> /etc/almalinux-release <==
AlmaLinux release 8.8 (Sapphire Caracal)

==> /etc/centos-release <==
AlmaLinux release 8.8 (Sapphire Caracal)

==> /etc/os-release <==
NAME="AlmaLinux"
VERSION="8.8 (Sapphire Caracal)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.8 (Sapphire Caracal)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"

==> /etc/redhat-release <==
AlmaLinux release 8.8 (Sapphire Caracal)

==> /etc/system-release <==
AlmaLinux release 8.8 (Sapphire Caracal)

全てAlmaLinuxになっている。
CentOSはどうなったのだろうか?

# grubby --info=ALL | grep ^title
title="AlmaLinux (4.18.0-477.21.1.el8_8.x86_64) 8.8 (Sapphire Caracal)"
title="CentOS Linux (4.18.0-348.7.1.el8_5.x86_64) 8"
title="CentOS Linux (4.18.0-305.19.1.el8_4.x86_64) 8"
title="CentOS Linux (0-rescue-f45499ae913140a9beb740bdd3a78455) 8 (Core)"

# grubby --default-kernel
/boot/vmlinuz-4.18.0-477.21.1.el8_8.x86_64

# uname -r
4.18.0-477.21.1.el8_8.x86_64

一応残ってはいるらしい。
これでこちらの記事のエラーも出なくなった。

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