Upgrade Solaris X64 with Oracle Support

来源:互联网 发布:国家电网待遇知乎 编辑:程序博客网 时间:2024/05/20 08:25

Summary

This passage leads you to upgrade your Solaris to latest SRU.

This passage is based on upgrade from Oracle Solaris 11.2.5.5.0 to Oracle Solaris 11.3.23.5.0.

For SRU 10.5, SRU 11.4 and 12.4 or above, there are some minor differences such as you may need to uninstall some packages or

Check OS version & publisher

To check your detailed OS version, run pkg info entire.

Example:

$ pkg info entire         Name: entire      Summary: entire incorporation including Support Repository Update                (Oracle Solaris 11 11/11 SRU 10.5).  Description: This package constrains system package versions to the same               build.  WARNING: Proper system update and correct package               selection depend on the presence of this incorporation.               Removing this package will result in an unsupported system.  For               more information see https://support.oracle.com/CSP/main/article               ?cmd=show&type=NOT&doctype=REFERENCE&id=1372094.1.     Category: Meta Packages/Incorporations        State: Installed    Publisher: solaris      Version: 0.5.11 (Oracle Solaris 11 SRU 10.5)Build Release: 5.11       Branch: 0.175.0.10.0.5.0Packaging Date: Fri Aug 03 18:26:27 2012         Size: 5.45 kB         FMRI: pkg://solaris/entire@0.5.11,5.11-0.175.0.10.0.5.0:20120803T182627Z

If you don’t have neither “(Oracle Solaris 11 SRU XXX)” in your Version item nor the version has only 3 digits (example: A.B.C), it means that your OS has not configured any SRU. For further infomation, refer to appendix.

To check whick publisher is set, type pkg publisher.

Example:

$ pkg publisherPUBLISHER         TYPE     STATUS URIsolaris           origin   online https://pkg.oracle.com/solaris/support

If you got “Unable to contact any configured publishers.”, you may have set a wrong publisher.

In case that you have wrong publisher, run pkg unset-publisher <the_publisher_that_you_want_to_delete> to remove the wrong publisher.

Configure publisher

If you have a wrong publisher, you will need to add a new publisher.

Here we will use Oracle Support as example.

Go to Oracle pkg register site, click on Solaris 11 support, apply for key and certificate. Download and put it to your own directory.

Use folllowing command to add publisher.

# pkg set-publisher \    -k <your_own_path>/pkg.oracle.com.key.pem \    -c <your_own_path>/Desktop/pkg.oracle.com.certificate.pem \    -G "*" -g https://pkg.oracle.com/solaris/support/ solaris

Upgrade and reboot

You can either choose a version to upgrade or upgrade to the latest version.

If you want to upgrade to desinated version, run pkg list -u to show upgrades available for you current OS version.

Then run # pkg update --accept entire@<the_version_you_like> to upgrade to desinated version.

If you want to upgrade to the latest version, run # pkg update --accept.

For both these 2 ways, after downloading updates, pkg will install upgrades automatically.

Finally reboot you machine.

Appendix

Solaris version:

  • 0.5.11 (Oracle Solaris 11 SRU 10.5): 0.5.11 with SRU 10.5
  • 0.5.11: 0.5.11 without any SRU
  • 0.5.11 (Oracle Solaris 11.3.23.5.0): 0.5.11 with SRU 23.5

Documents

  • 将系统升级到 Oracle Solaris 11.1
  • How to Update Oracle Solaris 11 Systems From Oracle Support Repositories
阅读全文
0 0
原创粉丝点击