标签:
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
标签:
原文地址:http://my.oschina.net/wangtaos/blog/485621