vivion34 发表于 2018-8-22 06:19:41

本地yum源的创建,以及无人值守shell脚本安装.(DVD版)

YINGSHE() {  rpm -ql createrepo
  if [ $? -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]
查看完整版本: 本地yum源的创建,以及无人值守shell脚本安装.(DVD版)