My Favorites


Please to see your favorites.

  • Bookmark
  • Email Document
  • Printer Friendly
  • Favorite
  • Rating:

SLES9: YOU Updates to SP4

This document (3308795) is provided subject to the disclaimer at the end of this document.


Novell SUSE Linux Enterprise Server 9
YaST Online Update


YaST Online Update Automatically Selects all of the SP4 patches in the list of patches. You may have a situation where you may not want these automatically selected (i.e. hardware, kernel, etc.).


Use this script as a work around to the situation.

# This script will calculate all updates available for a SLES9 SP3 system and will remove the SLES9-SP4 Updates from the list to apply.
# The script will then download and install the patches, due to the nature of the online_update commands used.
# If no patches are available it will kick out a log of it in /var/log/online_update.log
# Note: This is only for applying pre-SP4 Updates

TMPPatches=`mktemp -t patches.XXXXXXXXXX` || exit 1

touch /var/log/online_update.log

echo "Executing Online Update to calculate patches available..."

online_update -sd | sed '/^ S / !d' | sed '/SLES9-SP4/ d' | awk'{print $2}' | tr "\n""," | sed '$s/.$//'>> $TMPPatches
if [ "$update" != ""]; then
echo "Executing Online Update to patch your system..."
online_update -S $update
echo "Updates Successfully Applied."
echo "`date` - Updates Successfully Applied.">> /var/log/online_update.log
echo "No Updates Available."
echo "`date` - No Updates Available.">> /var/log/online_update.log

rm $TMPPatches

  1. Copy the above script and save it in a file called in /root/bin or a location of your desire.
  2. Issue a chmod 755 to make it executable.
  3. Now you can execute it directly or set it up as a cron job to run as frequently as you would like.


This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3308795
  • Creation Date:09-JAN-08
  • Modified Date:27-APR-12
    • SUSESUSE Linux Enterprise Server

Did this document solve your problem? Provide Feedback

< Back to Support Search

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center