How to patch or update SuSE Service Packs using Zypper
BMC highly recommends using the Zypper tool (instead of yum) to upgrade SuSE service packs. BMC Server automation version 8.8 supports Zypper out-of-the-box, however for versions earlier than BMC Server Automation 8.8, you can use the instructions on this page as a workaround.
Note that SuSE only supports migrating from n to n+1 so it's not possible to jump service packs, for example to update directly from SP1 to SP3. The following procedures explain how to set up zypper repositories with TrueSight Server Automation catalogs and run the zypper dup using a Deploy Job.
Create a BLPackage with the Upgrade Commands
Create some zypper repo definition files. Use the following format and specify the appropriate URL:
[SLES11_SP2_Updates]
name=SLES11 SP2 Updates
enabled=1
autorefresh=1
baseurl=http://blprov01-82.demodrive.com/patch2/sles11-sp2-updates-x86_64- Create a BLPackage to deploy these files (SPn-Updates, SPn-Pool, SPn+1 Updates, SPn+1 Pool) into /etc/zypp/repos.d directory on the target server(s).
Add an external command to the BLPackage that runs the following commands. Use the repository names that you specified in your repo files. Replace <n> and <n+1> with the actual Service Pack numbers you are using.
# disable the latest version repos until they are needed.
zypper mr --disable "SLES11-SP<n+1>-Pool" "SLES11-SP<n+1>-Updates"
zypper -n --gpg-auto-import-keys ref -s
zypper -n update -t patch
zypper -n update -t patch
zypper -n in -t product SUSE_SLES-SP<n+1>-migration
zypper -n mr --enable SLES11-SP<n+1>-Core SLES11-SP<n+1>-Updates
zypper -n --gpg-auto-import-keys dup -l --from "SLES11-SP<n+1>-Pool" --from "SLES11-SP<n+1>-Updates"
zypper -n update -t patch
# only for SP3 and higher
zypper -n mr --disable SLES11-SP<n>-Pool SLES11-SP<n>-Updates
Run the Service Pack Upgrade
Deploy the BLPackage and a Deploy Job to execute the Deployment.