How to update Solaris 11 system Using IPS
Oracle uses the Image Packaging System (IPS) to manage software updates. The Oracle Solaris 11 product engineering group releases software updates for the operating system on a regular basis. These updates are published as Support Repository Updates (SRUs) to a web-based Oracle repository and to My Oracle Support (MOS) for distribution. SRUs contains a number of bug fixes and critical security fixes that, when applied to an existing Oracle Solaris 11 systems, help to ensure that the systems run without any issues.
Oracle customers with an active Oracle Support Agreement will have access to the SRUs to routinely update their Oracle Solaris 11 systems. Oracle’s web-based support repository is located at http://pkg.oracle.com/solaris/support. With the support contract, you can also download them from My Oracle Support (https://support.oracle.com/).
Before you start updating your system, determine your starting point.
- Identify which repository is in use on your system.
- Identify which OS release your system is running.
- Verify which SRU your system is running.
- Identify to which release you want to update.
Identifying the Repository in Use
For a system without Oracle Support Agreement, and using the Oracle Solaris release repository, you will see the following output:
# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://pkg.oracle.com/solaris/release
For a system with Oracle Support Agreement, and using the Oracle Solaris support repository, you will see the following output:
# pkg publisher
PUBLISHER TYPE STATUS P LOCATION
solaris origin online F http://pkg.oracle.com/solaris/support
Verifying the SRU Currently Installed
If your system has Oracle Solaris 11 11/11 installed with an SRU, the package information appears as the following:
# pkg list -v entire FMRI IFO pkg://solaris/entire@0.5.11,5.11-0.175.0.10.0.5.0:20120803T182627Z i--
In this example, SRU #10.5 is installed.
Updating a System Running Oracle Solaris 11 11/11 to Oracle Solaris 11.2
Let us see an example of updating a System Running Oracle Solaris 11 11/11 to Oracle Solaris 11.2. To update a system running Oracle Solaris 11 11/11 to Oracle Solaris 11.2, perform the following steps:
1. Ensure that your package repository is set to use http://pkg.oracle.com/solaris/release.
# pkg publisher PUBLISHER TYPE STATUS P LOCATION solaris origin online F http://pkg.oracle.com/solaris/release
2. Review the licenses of the Oracle Solaris 11.1 preupgrade repository (0.5.11- 0.175.0.10.1.0.0).
# pkg update –license | less
3. Update the system packages. A new boot environment is created.
# pkg update –-be-name Solaris11Upgraded –-accept entire@0.5.11-0.175.0.10.1.0.0
4. Reboot the system to use the new updated boot environment.
# reboot
5. On a SPARC system only, for each zone, remove the pkg:/system/ldoms/ldomsmanager package.
# for z in `zoneadm list` do zlogin $z pkg uninstall ldomsmanager done
6. Update the IPS packages.
# pkg update package/pkg
Note: Because of earlier bugs in some packages, it was possible to incorrectly install those packages on a system. The pkg update command removes the following bad packages, if they are installed:
x86: pkg:/consolidation/ldoms/ldoms-incorporation
SPARC:
– pkg:/consolidation/nvidia/nvidia-incorporation
– pkg:/driver/network/ethernet/elxl
– pkg:/driver/network/ethernet/pcn
– pkg:/driver/network/ethernet/dnet
– pkg:/driver/network/ethernet/iprb
SPARC:
– pkg:/consolidation/nvidia/nvidia-incorporation
– pkg:/driver/network/ethernet/elxl
– pkg:/driver/network/ethernet/pcn
– pkg:/driver/network/ethernet/dnet
– pkg:/driver/network/ethernet/iprb
7. Review the licenses of Oracle Solaris 11.2 OS.
# pkg update –license | less
8. Update the system packages. A new boot environment is created.
# pkg update –-be-name Solaris11.2 –-accept entire@0.5.11-0.175.2.0.0.42.2
9. Reboot the system to use the updated boot environment.
# reboot
Updating a System Running Oracle Solaris 11 11/11 with an SRU to Oracle Solaris 11.2
To update a system running Oracle Solaris 11 11/11 with an SRU to Oracle Solaris 11.2 OS, perform the following steps:
1. Ensure that your package repository is set to use http://pkg.oracle.com/solaris/support.
# pkg publisher PUBLISHER TYPE STATUS P LOCATION solaris origin online F http://pkg.oracle.com/solaris/support
2. If your system is installed with an SRU that is earlier than SRU #10.5, update the system to SRU #10.5 (0.5.11,5.11-0.175.0.10), and then reboot.
# pkg update –be-name S11SRU10.5 --accept entire@0.5.11,5.11-0.175.0.10 # init 6
If your system is already installed with an SRU #10.5 or later, continue updating the system to Oracle Solaris 11.2.
3. On a SPARC system only, for each zone, remove the pkg:/system/ldoms/ldomsmanager package.
4. Update the IPS packages.
5. Review the licenses and update the system to Oracle Solaris 11.2 OS. Reboot the system to use the new updated boot environment.
Updating a System Running Oracle Solaris 11.1 with or without an SRU to Oracle Solaris 11.2 OS
If Oracle Solaris 11.1 is installed with or without an SRU, no special steps are required to update the system.
1. Based on whether you have an Oracle Support Agreement or not, ensure that your package repository is pointing to the correct repository (support or release).
2. Review the licenses of Oracle Solaris 11.2 OS.
3. Update the system to Oracle Solaris 11.2 OS.
4. Reboot the system to use the new updated boot environment.
No comments:
Post a Comment