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

9429 ワード

先日Fedora 30が発表されました.公式ドキュメントを参照してアップグレードしてください.
元のヘルプ: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バージョンであればいいのですが、アップグレードされたカーネルファイルはFedora 30で依然として置き換えられています.このステップは時間の無駄です).以下の手順の大部分は省略します(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!

ここを見てどう思うか、python 3のファイルばかりで、fedora 30はますますpythonを重視しているようです(今から勉強しましょう、heihei!)
3.Fedora 30の正式ダウンロードを開始しましょう
[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.7 Gの大きさ、ファイル1700個余り、これは時間がかかりますが、最後にrebootの再起動をヒントにしましょう.
4.再起動し、本格的なアップグレードを開始しましょう
[root@Fedora ~]# dnf system-upgrade reboot

今回の起動はインストール時間が長くなりましたが、結局更新されたファイルがたくさんあるので、再起動を辛抱強く待てばいいです.