yum install yum-security
yum info-sec

yum -y update --security

Remove package and all of its configuration files:

for package in package1 package2 package3
do
 echo "removing config files for $package"
 for file in $(rpm -q --configfiles $package)
 do
 echo " removing $file"
 rm -f $file
 done
 rpm -e $package
done
Advertisements