全部安装rhel6.5 64上的软件脚本


mount /dev/cdrom /mnt
rm -rf /etc/yum.repo.d/*
 echo -e "[q]\nname=q\nbaseurl=file:///mnt\nenabled=1\ngpgcheck=0" > /etc/yum.repos.d/q.repo
yum clean all
yum update
for i in {a..z}
do

if [ $i == "c" ];then
yum localinstall -y /mnt/Packages/$i*.rpm --exclude cpupowerutils
fi

if [ $i == "g" ];then
 yum localinsall -y /mnt/Packages/$i*.rpm --exclude gnome-python-bugbuddy
fi

if [ $i == "i" ];then
yum localinstall -y /mnt/Packages/$i*.rpm --exclude samba4-winbind samba4-common
fi

if [ $i == "o" ];then
yum localinstall -y /mnt/Packages/$i*.rpm --exclude openhpi32-libs
fi
if [ $i == "s" ];then
yum localinstall -y /mnt/Packages/$i*.rpm --exclude samba4*
fi

yum localinstall -y /mnt/Packages/$i*.rpm

done

你可能感兴趣的:(全部安装rhel6.5 64上的软件脚本)