前两天Fedora30发布了,参考官方文档升级下:
原帮助文档:https://fedoraproject.org/wiki/DNF_system_upgrade#How_do_I_use_it.3F
ENV:
[root@Fedora ~]# cat /etc/redhat-release
Fedora release 29 (Twenty Nine)
1.dnf upgrade --refresh (升级过后个人觉得这步没什么用,只要你的是29版本就好,升级的内核文件在Fedora30中依然是要替换的,这步就是浪费时间了),下面过程大部分内容省略(玩过linux的都懂,这次升级大几千的文件,太长了^V^)
[root@Fedora ~]# dnf upgrade --refresh
Fedora Modular 29 - x86_64 1.3 kB/s | 7.7 kB 00:05
Fedora Modular 29 - x86_64 - Updates 3.4 kB/s | 3.4 kB 00:01
Fedora 29 - x86_64 - Updates 617 B/s | 3.7 kB 00:06
Fedora 29 - x86_64 7.3 kB/s | 7.8 kB 00:01
RPM Fusion for Fedora 29 - Free - Updates 1.1 kB/s | 15 kB 00:13
RPM Fusion for Fedora 29 - Free 187 B/s | 2.6 kB 00:14
RPM Fusion for Fedora 29 - Nonfree - Updates 6.0 kB/s | 14 kB 00:02
RPM Fusion for Fedora 29 - Nonfree 3.6 kB/s | 15 kB 00:04
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Upgrading:
cifs-utils x86_64 6.9-1.fc29 updates 88 k
dnf noarch 4.2.5-1.fc29 updates 399 k
dnf-data noarch 4.2.5-1.fc29 updates 52 k
dnf-yum noarch 4.2.5-1.fc29 updates 49 K
gnome-software x86_64 3.30.6-3.fc29 updates 12 M
Transaction Summary
================================================================================
Upgrade 32 Packages
Total download size: 32 M
Is this ok [y/N]: y
Downloading Packages:
(1/32): dnf-data-4.2.5-1.fc29.noarch.rpm 47 kB/s | 52 kB 00:01
(2/32): dnf-yum-4.2.5-1.fc29.noarch.rpm 63 kB/s | 49 kB 00:00
(32/32): selinux-policy-targeted-3.14.2-57.fc29 160 kB/s | 14 MB 01:31
--------------------------------------------------------------------------------
Total 231 kB/s | 32 MB 02:22
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: poppler-0.67.0-18.fc29.x86_64 1/1
Upgrading : poppler-0.67.0-18.fc29.x86_64 1/64
Upgrading : cifs-utils-6.9-1.fc29.x86_64 32/64
Running scriptlet: cifs-utils-6.9-1.fc29.x86_64 32/64
Cleanup : libreport-anaconda-2.10.0-1.fc29.x86_64 33/64
Running scriptlet: cifs-utils-6.8-2.fc29.x86_64 64/64
Verifying : cifs-utils-6.9-1.fc29.x86_64 1/64
Verifying : selinux-policy-targeted-3.14.2-54.fc29.noarch 64/64
Upgraded:
dnf-4.2.5-1.fc29.noarch
dnf-data-4.2.5-1.fc29.noarch
dnf-yum-4.2.5-1.fc29.noarch
gnome-software-3.30.6-3.fc29.x86_64
selinux-policy-targeted-3.14.2-57.fc29.noarch
Complete!
既然升级了,之后就是重启,让新的内核生效
2.安装Package-x-generic-16.pngdnf-plugin-system-upgrade官方升级包
[root@Fedora ~]# dnf install dnf-plugin-system-upgrade
Last metadata expiration check: 0:12:46 ago on Wed 01 May 2019 03:03:29 PM CST.
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing:
python3-dnf-plugin-system-upgrade noarch 4.0.4-1.fc29 updates 27 k
Installing dependencies:
python3-dnf-plugins-extras-common noarch 4.0.4-1.fc29 updates 62 k
Transaction Summary
================================================================================
Install 2 Packages
Total download size: 90 k
Installed size: 197 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): python3-dnf-plugins-extras-common-4.0.4- 32 kB/s | 62 kB 00:01
(2/2): python3-dnf-plugin-system-upgrade-4.0.4- 5.9 kB/s | 27 kB 00:04
--------------------------------------------------------------------------------
Total 5.5 kB/s | 90 kB 00:16
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : python3-dnf-plugins-extras-common-4.0.4-1.fc29.noarc 1/2
Installing : python3-dnf-plugin-system-upgrade-4.0.4-1.fc29.noarc 2/2
Running scriptlet: python3-dnf-plugin-system-upgrade-4.0.4-1.fc29.noarc 2/2
Verifying : python3-dnf-plugin-system-upgrade-4.0.4-1.fc29.noarc 1/2
Verifying : python3-dnf-plugins-extras-common-4.0.4-1.fc29.noarc 2/2
Installed:
python3-dnf-plugin-system-upgrade-4.0.4-1.fc29.noarch
python3-dnf-plugins-extras-common-4.0.4-1.fc29.noarch
Complete!
看到这里觉得怎么样,都是python3的文件,看来fedora30越来越看重python了(现在转去学吧,heihei!)
3.开始正式下载Fedora30吧
[root@Fedora ~]# dnf system-upgrade download --refresh --releasever=30 -y
Fedora Modular 30 - x86_64 5.1 kB/s | 4.6 kB 00:00
Fedora Modular 30 - x86_64 - Updates 5.7 kB/s | 4.9 kB 00:00
Fedora 30 - x86_64 - Updates 7.1 kB/s | 5.4 kB 00:00
Fedora 30 - x86_64 5.4 kB/s | 4.4 kB 00:00
RPM Fusion for Fedora 30 - Free - Updates 1.9 kB/s | 15 kB 00:07
RPM Fusion for Fedora 30 - Free - Updates 6.2 kB/s | 98 kB 00:15
RPM Fusion for Fedora 30 - Free 341 B/s | 2.6 kB 00:07
RPM Fusion for Fedora 30 - Nonfree - Updates 1.8 kB/s | 14 kB 00:07
RPM Fusion for Fedora 30 - Nonfree - Updates 90 B/s | 7.6 kB 01:26
RPM Fusion for Fedora 30 - Nonfree 1.7 kB/s | 15 kB 00:08
Dependencies resolved.
================================================================================
Package Arch Version Repo Size
================================================================================
Installing:
kernel x86_64 5.0.9-301.fc30 fedora 25 k
kernel-core x86_64 5.0.9-301.fc30 fedora 25 M
kernel-modules x86_64 5.0.9-301.fc30 fedora 28 M
kernel-modules-extra x86_64 5.0.9-301.fc30 fedora 2.1 M
Upgrading:
augeas-libs x86_64 1.12.0-1.fc30 updates 416 k
cifs-utils x86_64 6.9-1.fc30 updates 88 k
cups x86_64 1:2.2.11-2.fc30 updates 1.4 M
cups-client x86_64 1:2.2.11-2.fc30 updates 64 k
cups-filesystem noarch 1:2.2.11-2.fc30 updates 12 k
cups-ipptool x86_64 1:2.2.11-2.fc30 updates 5.7 k
Transaction Summary
================================================================================
Install 39 Packages
Upgrade 1654 Packages
Remove 4 Packages
Downgrade 21 Packages
Total size: 1.7 G
Total download size: 974 M
DNF will only download packages, install gpg keys, and check the transaction.
Downloading Packages:
[SKIPPED] dnf-4.2.2-2.fc30.noarch.rpm: Already downloaded
[SKIPPED] dnf-data-4.2.2-2.fc30.noarch.rpm: Already downloaded
[SKIPPED] dnf-yum-4.2.2-2.fc30.noarch.rpm: Already downloaded
(1714/1714): VirtualBox-server-6.0.6-3.fc30.x86 12 kB/s | 40 MB 58:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Complete!
Download complete! Use 'dnf system-upgrade reboot' to start the upgrade.
To remove cached metadata and transaction use 'dnf system-upgrade clean'
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
看到了吧,1.7G的大小,文件1700多个,这可是很费时的,在最后也是提示reboot重启下吧,
4.重启,开始正式升级吧
[root@Fedora ~]# dnf system-upgrade reboot
这次开机安装时间久了些,毕竟更新的文件很多,耐心等待重启就好了。