本地yum源的创建,以及无人值守shell脚本安装.(DVD版)
YINGSHE() { rpm -ql createrepoif [ $? -ne 0 ];then
cd /var/yum/Server
rpm -ivh createrepo*.rpm &>/dev/null
fi
echo "please wait some minutes..."
createrepo-g/var/yum/Server/repodata/comps-rhel5-server-core.xml/var/yum/Server/
createrepo-g/var/yum/VT/repodata/comps-rhel5-vt.xml/var/yum/VT/
createrepo-g/var/yum/Cluster/repodata/comps-rhel5-cluster.xml/var/yum/Cluster/
createrepo-g/var/yum/ClusterStorage/repodata/comps-rhel5-cluster-st.xml/var/yum/ClusterStorage/
}
页:
[1]