SLE10: Apply Updates Without New Kernel Updates Being Applied | SUSE Communities

SLE10: Apply Updates Without New Kernel Updates Being Applied



If you have a need in your environment to apply updates without having a new Kernel being applied, then the following should help you accomplish this goal.


This script checks for available updates and removes any kernel related update and applies the rest, and if there are no updates then it will exit with “No Updates Available”.


Copy the text below into a file preferably named or download it here.

# This script is intended to apply updates from rug without installing the kernel updates.

RUGBIN=`which rug`

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

if [ -e $RUGBIN ]; then
$RUGBIN lu | sed -e '/--/ d' -e '/Name/ d' -e '/kernel/ d' | awk '{ OFS="-"; print $6,$8 }' | tr "\n" " " | sed -e '$s/-.$//' -e '1s/..//' >> $TMPPatches

if [ "$update" != "" ]; then
echo "Executing rug to patch your system..."

# You can add a -y to supress the yes/no option given
# $RUGBIN in $update -y
$RUGBIN in $update

echo "No Updates Available."

rm $TMPPatches

Once you have this shell script created you can save it in /root/bin or something with the chmod 755 permissions on it. Now you are ready to set it up to run as a Cron Job or use it as you desire.


(Visited 1 times, 1 visits today)

Leave a Reply

Your email address will not be published.

No comments yet

cseaderSenior Innovative Technologist with over 15 years of experience delivering creative, customer-centric value and solutions. Broad experience in many different verticals, architectures, and data center environments. Proven leadership experience ranging from evaluating technology, collaborating across engineering teams and departments, competitive analysis, and strategic planning. Highly-motivated with a track record of success in consistent achievement of projects and goals, and driving business function and management. Skilled problem identifier and troubleshooter, continually learning and adapting, and strong analytical skills. Efficient, organized leader with success in coordinating efforts within internal-external teams to reach and surpass expectations. Expert-level skills in the implementation, analysis, optimization, troubleshooting, and documentation of mode 1 and mode 2 data center systems.