Linux Security Updates
Red Hat Enterprise Linux 4
This article provides simple way to get list of Security updates for Red Hat Enterprise Linux 4.
Action plan:
0. Get list of Security updates with description (optional)
up2date -lv | sed -n '/RHSA/{x;p;g;p;};h'
1. Get list of Security updates
up2date -lv | sed -n '/RHSA/{x;p;};h' > secupd.list # up2date -vlf | grep -B1 '^\[ELSA'
2. Apply Security updates
cat secupd.list | awk '{print $1}' | xargs up2date # up2date -vlf | grep -B1 '^\[ELSA' | awk '{ print $1 }' | grep -v -e '^\[ELSA' -e '^--$' | xargs up2date
3. Reboot server
shutdown -r now
4. Check that all RHSA's applied
up2date -lv | sed -n '/RHSA/{x;p;g;p;};h'
5. Remove tmp file
rm -f secupd.list
Red Hat Enterprise Linux 5.* / Oracle Linux Server 5.*
Action plan:
0. Get list of Security updates with description (optional)
up2date -vlf | grep -B1 '^\[.*SA'
1. Apply Security updates
up2date -vlf | grep -B1 '^\[.*SA' | awk '{ print $1 }' | grep -v -e '^\[.*SA' -e '^--$' | xargs up2date
2. Reboot server
shutdown -r now
3. Check that all RHSA's applied
up2date -vlf | grep -B1 '^\[.*SA'