shell-yum离线安装

yum -y install xxxx --downloaddir=/home/download --downloadonly



function rpmfile()

{

    for file in `ls $1`

    do

        rpm -ivh $file --replacefiles --force --nodeps

        #echo $file

        done

}

你可能感兴趣的:(shell-yum离线安装)