yum保存rpm包 #!/bin/bash [root@db01 ~]# yum --help |grep down downgrade downgrade a package --downloadonly don't update, just download --downloaddir=DLDIR specifies an alternate directory to store packages [root@db01 ~]# yum -y install --downloaddir=/tmp/ --downloadonly perl-*