Upgrade OpenSUSE 13.2 to 42.1 in centos

Source: Internet
Author: User
Tags centos

With regard to OpenSUSE, micro-magic can be said to have a special liking for this release, mainly from feelings (to be precise, zypper is really popular ). However, teenagers playing with VPS will surely notice that this release rarely appears in the iso list of various service providers (compared to Ubuntu, CentOS, and even Fedora in a variety of versions ), however, the advantage of OpenSUSE is that even if the service provider does not provide the latest version of 42.1, you can still upgrade 13.2 through zypper. This document describes the procedure:

Upgrade OpenSUSE 13.2 to 42.1

1. Make sure your version is 13.2.

Cat/etc/OS-release

The result is similar to the following:

NAME = openSUSE
VERSION = "13.2 (Harlequin )"
VERSION_ID = "13.2"
PRETTY_NAME = "openSUSE 13.2 (Harlequin) (x86_64 )"
ID = opensuse
ANSI_COLOR = "0; 32"
CPE_NAME = "cpe:/o: opensuse: 13.2"
BUG_REPORT_URL = "https://bugs.opensuse.org"
HOME_URL = "https://opensuse.org /"
ID_LIKE = "suse"

2. Update software

Zypper refresh
Zypper update

3. Back up existing software sources

Sudo cp-Rv/etc/zypp/repos. d/etc/zypp/repos. d. bak

4. List software sources

Zypper lr

The output result is similar

# | Alias | Name | Enabled | Refresh
-- + --------------------- + ------------------------------ + --------- + --------
1 | repo-non-oss | openSUSE-13.2-Non-Oss | Yes
2 | repo-oss | openSUSE-13.2-Oss | Yes
3 | repo-update | openSUSE-13.2-Update | Yes
4 | repo-update-non-oss | openSUSE-13.2-Update-Non-Oss | Yes

5. Delete an existing update source (repo-update, repo-update-non-oss, the specific name may be different, as modified by yourself)

Sudo zypper rr repo-update
Sudo zypper rr repo-update-non-oss

If you have a third-party software source, including but not limited to Packman, you also need to use "zypper rr" to delete it (replace it with the corresponding alias in the list)

6. Change the software source to 42.1

Sudo sed-I's/13 \. 2/leap \/42 \. 1/g'/etc/zypp/repos. d /*
7. Increase the update source by 42.1

Sudo zypper addrepo -- check -- refresh -- name 'opensuse-42.1-update' http://download.opensuse.org/update/leap/42.1/oss/ repo-Update
Sudo zypper addrepo -- check -- refresh -- name 'opensuse-42.1-Update-Non-Oss' http://download.opensuse.org/update/leap/42.1/non-oss/ repo-update-non-Oss
8. Update the system

Zypper dup

9. Restart the system

Reboot

10. Witness the miracle

Cat/etc/OS-release

If the output is similar to the following, the upgrade is successful.

NAME = "openSUSE Leap"
VERSION = "42.1"
VERSION_ID = "42.1"
PRETTY_NAME = "openSUSE Leap 42.1 (x86_64 )"
ID = opensuse
ANSI_COLOR = "0; 32"
CPE_NAME = "cpe:/o: opensuse: 42.1"
BUG_REPORT_URL = "https://bugs.opensuse.org"
HOME_URL = "https://opensuse.org /"
ID_LIKE = "suse"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.