如果你的Fedora 30工作站版版本还没有升级成Fedora 31工作站版?那么请按照以下详细教程进行升级,新版本目前已非常稳定,可用性相当的高,关于Fedora 31新版的特性请参考Fedora 31发布下载,附Fedora 31 Workstation版重要功能介绍一文。
确认运行的Fedora版本 注:以下升级过程都在终端中运行,Fedora 31可以在台式机和服务器上安装,也可升级,升级能同时保留文件和已安装的应用程序。 将Fedora 30升级到Fedora 31工作站版本很容易,首先确认你正在运行的Fedora版本: $ cat /etc/os-release NAME=Fedora VERSION="30 (Workstation Edition)" ID=fedora VERSION_ID=30 VERSION_CODENAME="" PLATFORM_ID="platform:f30" PRETTY_NAME="Fedora 30 (Workstation 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="Workstation Edition" VARIANT_ID=workstation 可以从桌面环境关于页面提取相同的详细信息,如下图所示:
将Fedora 30升级成Fedora 31 可以从命令行或从桌面图形界面执行将Fedora 30升级到Fedora 31的操作,我更喜欢命令行升级,因为它很容易解决可能出现的任何错误。 步骤1:备份系统 升级之前备份重要文件,建议你将其备份到网络中的外部驱动器或其他系统上。 步骤2:更新系统 确保我们已安装最新版本的软件包: sudo dnf upgrade --refresh 更新后重新启动: sudo reboot 步骤3:将Fedora 30升级成Fedora 31 一旦系统从重启启动,请安装DNF插件: sudo dnf install dnf-plugin-system-upgrade 按y接受安装:
通过在终端中运行以下命令,开始将Fedora 30升级成Fedora 31: sudo dnf system-upgrade download --releasever=31 你会收到一条警告,提示你应该在运行命令之前完成系统升级: Before you continue ensure that your system is fully upgraded by running "dnf --refresh upgrade". Do you want to continue [y/N]: y 该命令将在准备实际升级时在本地下载你计算机的所有升级,如果你的依赖项损坏或退出的软件包阻止升级,请使用命令: sudo dnf system-upgrade download --releasever=31 ‐‐allowerasing 成功下载将显示如下消息: 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'. 步骤4:开始升级 成功执行命令后,重新引导并完成Fedora 30成Fedora 31的升级: sudo dnf system-upgrade reboot 等待升级完成,然后检查你的Fedora版本: $ cat /etc/os-release NAME=Fedora VERSION="31 (Workstation Edition)" ID=fedora VERSION_ID=31 VERSION_CODENAME="" PLATFORM_ID="platform:f31" PRETTY_NAME="Fedora 31 (Workstation Edition)" ANSI_COLOR="0;34" LOGO=fedora-logo-icon CPE_NAME="cpe:/o:fedoraproject:fedora:31" HOME_URL="https://fedoraproject.org/" DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f31/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=31 REDHAT_SUPPORT_PRODUCT="Fedora" REDHAT_SUPPORT_PRODUCT_VERSION=31 PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy" VARIANT="Workstation Edition" VARIANT_ID=workstation 或从关于页面检查,如下图所示:
注:看到上图或者/etc/os-release文件中的VERSION="31 (Workstation Edition)"字段,说明升级成功了,现在使用的正是Fedora 31工作站版。
相关主题 |