Edited at

馬鹿の一つ覚え: Fedoraをアップグレード


Fedora 25をdnf system-upgradeでFedora 26にアップグレード


Bash

$ cat /etc/redhat-release

Fedora release 25 (Twenty Five)
$ uname -a
Linux capybara 4.13.13-100.fc25.x86_64 #1 SMP Wed Nov 15 17:33:19 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ sudo dnf upgrade -y --refresh
$ sudo dnf -y install dnf-plugin-system-upgrade
$ sudo dnf system-upgrade download -y --releasever=26
$ sudo dnf system-upgrade reboot # コマンド実行直後にssh接続が切れる


Bash

$ cat /etc/redhat-release   # 75分後に起動

Fedora release 26 (Twenty Six)
$ uname -a
Linux capybara 4.13.13-200.fc26.x86_64 #1 SMP Wed Nov 15 15:46:36 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


Fedora 26をFedora 27に、さらにFedora 28にアップグレード


Bash

$ cat /etc/redhat-release

Fedora release 26 (Twenty Six)
$ uname -a
Linux capybara 4.15.17-200.fc26.x86_64 #1 SMP Thu Apr 12 18:28:26 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ sudo dnf -y update
$ sudo dnf upgrade --refresh
$ sudo dnf install dnf-plugin-system-upgrade
$ sudo dnf system-upgrade download -y --refresh --releasever=27
Error:
Problem: package openlmi-software-0.6.0-4.fc24.x86_64 requires librpm.so.7()(64bit), but none of the providers can be installed
- rpm-libs-4.13.1-1.fc26.x86_64 does not belong to a distupgrade repository
- problem with installed package openlmi-software-0.6.0-4.fc24.x86_64
$ sudo dnf remove openlmi-software -y # remove the package that caused the error
$ sudo dnf system-upgrade download -y --refresh --releasever=27
$ sudo dnf system-upgrade reboot


Bash

$ cat /etc/redhat-release

Fedora release 27 (Twenty Seven)
$ uname -a
Linux capybara 4.16.9-200.fc27.x86_64 #1 SMP Thu May 17 04:54:30 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ sudo yum -y update
$ sudo dnf upgrade --refresh
$ sudo dnf install dnf-plugin-system-upgrade
$ sudo dnf system-upgrade download -y --refresh --releasever=28
$ sudo dnf system-upgrade reboot


Bash

$ cat /etc/redhat-release

Fedora release 28 (Twenty Eight)
$ uname -a
Linux capybara 4.16.9-300.fc28.x86_64 #1 SMP Thu May 17 06:39:18 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ sudo dnf system-upgrade clean
$ sudo dnf clean packages
$ cat /proc/version
Linux version 4.16.9-300.fc28.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 8.1.1 20180502 (Red Hat 8.1.1-1) (GCC)) #1 SMP Thu May 17 06:39:18 UTC 2018


Fedora 28をFedora 29にアップグレード


Bash

$ cat /etc/redhat-release 

Fedora release 28 (Twenty Eight)
$ uname -a
Linux capybara 4.20.14-100.fc28.x86_64 #1 SMP Tue Mar 5 19:45:42 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ sudo dnf -y update
$ sudo dnf upgrade --refresh
$ sudo dnf install dnf-plugin-system-upgrade
$ sudo dnf system-upgrade download -y --refresh --releasever=29
$ sudo dnf system-upgrade reboot # コマンド実行直後にssh接続が切れる


Bash

$ cat /etc/redhat-release    # 2時間後にはssh接続可能

Fedora release 29 (Twenty Nine)
$ uname -a
Linux capybara 5.0.5-200.fc29.x86_64 #1 SMP Wed Mar 27 20:58:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
$ sudo dnf system-upgrade clean
$ sudo dnf clean packages
$ cat /proc/version
Linux version 5.0.5-200.fc29.x86_64 (mockbuild@bkernel04.phx2.fedoraproject.org) (gcc version 8.3.1 20190223 (Red Hat 8.3.1-2) (GCC)) #1 SMP Wed Mar 27 20:58:04 UTC 2019
$ cat /etc/os-release
NAME=Fedora
VERSION="29 (Server Edition)"
ID=fedora
VERSION_ID=29
VERSION_CODENAME=""
PLATFORM_ID="platform:f29"
PRETTY_NAME="Fedora 29 (Server Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:29"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f29/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=29
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=29
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Server Edition"
VARIANT_ID=server


Fedora 29をFedora 30にアップグレード


Bash

$ cat /etc/redhat-release

Fedora release 29 (Twenty Nine)
$ sudo dnf -y update
$ sudo dnf --refresh upgrade
$ sudo dnf install dnf-plugin-system-upgrade
$ sudo dnf system-upgrade download -y --refresh --releasever=30 # 少し時間がかかる
$ sudo dnf system-upgrade reboot # コマンド実行直後にssh接続が切れる


Bash

$ cat /etc/redhat-release    # 2時間ほどで接続できるようになる

Fedora release 30 (Thirty)
$ cat /etc/os-release
NAME=Fedora
VERSION="30 (Server Edition)"
ID=fedora
VERSION_ID=30
VERSION_CODENAME=""
PLATFORM_ID="platform:f30"
PRETTY_NAME="Fedora 30 (Server Edition)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:30"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f30/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=30
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=30
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Server Edition"
VARIANT_ID=server
$ uname -a
Linux capybara 5.0.16-300.fc30.x86_64 #1 SMP Tue May 14 19:33:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Fedora 19をクリーンインストールして以来、Fedora 20, Fedora 21, Fedora 22, Fedora 23, Fedora 24, Fedora 25, Fedora 26, Fedora 27, Fedora 28, Fedora 29, Fedora 30と順番に問題なくアップグレードできている。