码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-07-30 17:22:24      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:


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上的软件脚本

标签:

原文地址:http://my.oschina.net/wangtaos/blog/485621

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!