本指南介绍如何将OpenSUSE 12.2桌面和服务器安装升级到OpenSUSE 12.3。
1初步说明
升级可以在命令行或YaST模块Wagon
(如果您在OpenSUSE桌面上)完成。 由于Wagon方法比命令行更新的测试少,因此我们将在这里使用命令行方法来进行服务器和桌面。
2安装最新更新
在进行分发升级之前,我们将安装OpenSUSE 12.2的最新更新。 打开一个终端/命令行窗口并运行
zypper repos --uri
以检查系统上使用和启用的存储库。 确保在“列”中的URI
列中包含http://download.opensuse.org/update/12.2/的行在
“ 已启用”
列中显示为“是
”
(在本示例中为“Alias
is repo-update”
,“ Name”
为openSUSE-12.2-Update
,但这些值可能不同;重要的列是URI
列):
server1:~ # zypper repos --uri
# | Alias | Name | Enabled | Refresh | URI
---+---------------------------+------------------------------------------------------------------------+---------+---------+--------------------------------------------------------------------------------
1 | apache-third-party-12.2 | Third-party modules for the Apache HTTP server. (Apache_openSUSE_12.2) | Yes | No | http://download.opensuse.org/repositories/Apache:/Modules/Apache_openSUSE_12.2/
2 | openSUSE-12.2-1.6 | openSUSE-12.2-1.6 | Yes | No | cd:///?devices=/dev/disk/by-id/ata-VBOX_CD-ROM_VB2-01700376,/dev/sr0
3 | repo-debug | openSUSE-12.2-Debug | No | Yes | http://download.opensuse.org/debug/distribution/12.2/repo/oss/
4 | repo-debug-update | openSUSE-12.2-Update-Debug | No | Yes | http://download.opensuse.org/debug/update/12.2/
5 | repo-debug-update-non-oss | openSUSE-12.2-Update-Debug-Non-Oss | No | Yes | http://download.opensuse.org/debug/update/12.2-non-oss/
6 | repo-non-oss | openSUSE-12.2-Non-Oss | Yes | Yes | http://download.opensuse.org/distribution/12.2/repo/non-oss/
7 | repo-oss | openSUSE-12.2-Oss | Yes | Yes | http://download.opensuse.org/distribution/12.2/repo/oss/
8 | repo-source | openSUSE-12.2-Source | No | Yes | http://download.opensuse.org/source/distribution/12.2/repo/oss/
9 | repo-update | openSUSE-12.2-Update | Yes | Yes | http://download.opensuse.org/update/12.2/
10 | repo-update-non-oss | openSUSE-12.2-Update-Non-Oss | Yes | Yes | http://download.opensuse.org/update/12.2-non-oss/
server1:~ #
(如果“ 已启用”
列中的行为“
否
”
,请按如下所示启用存储库:
zypper modifyrepo --enable repo-update
repo-update
是指Alias
列; 例如,如果别
名列中显示的内容类似于http-download.opensuse.org-82ba1b08
,那么命令将是
zypper modifyrepo --enable http-download.opensuse.org-82ba1b08
如果没有URI http://download.opensuse.org/update/12.2/的存储库
,那么请按如下所示添加存储库:
zypper addrepo --check --name 'openSUSE-12.2-Update' http://download.opensuse.org/update/12.2/ repo-update
)
现在安装最新的页面:
zypper refresh
zypper update
3进行分发升级
现在安装最新的更新,禁用所有OpenSUSE 12.2存储库...
zypper modifyrepo --all --disable
...并启用OpenSUSE 12.3存储库:
zypper addrepo --name "openSUSE-12.3 OSS" http://download.opensuse.org/distribution/12.3/repo/oss/ repo-12.3-oss
zypper addrepo --name "openSUSE-12.3 Non-OSS" http://download.opensuse.org/distribution/12.3/repo/non-oss/ repo-12.3-non-oss
zypper addrepo --name "openSUSE-12.3 Updates" http://download.opensuse.org/update/12.3/ repo-12.3-update
(如果第2章中的zypper repos
-uri 命令
显示任何第三方存储库,请检查这些第三方存储库是否可用于OpenSUSE 12.3;如果是,请按如下方式添加:
zypper addrepo --name <name> <url> <alias>
例如,如果您使用VirtualBox存储库...
server1:~ # zypper repos --uri
# | Alias | Name | Enabled | Refresh | URI
--+-----------------+-----------------------------------+---------+---------+------------------------------------------------------------
...
7 | virtualbox | VirtualBox for openSUSE 11.4-12.2 | Yes | Yes | http://download.virtualbox.org/virtualbox/rpm/opensuse/11.4
server1:~ #
...启用OpenSUSE 12.3的VirtualBox存储库,如下所示:
zypper addrepo --name "VirtualBox for openSUSE 12.3" http://download.virtualbox.org/virtualbox/rpm/opensuse/12.3 virtualbox-12.3
在撰写本文时,OpenSUSE 12.3没有VirtualBox资源库,但这只是一个例子。
使用尚未使用的名称
和别名的
值。)
现在运行完整的分发升级:
zypper ref
zypper dup
最后,重新启动系统...
reboot
...并享受您的新的OpenSUSE 12.3系统。
4链接
- OpenSUSE: http : //www.opensuse.org/