#!/bin/bash packagename=$1 which yumdownloader || yum install -y yum-utils &>/dev/null ls /bak/pkg || mkdir -p /bakpkg yumdownloader --resolve --destdir=/bakpkg/ $packagenameyum缓存软件包
CDIR="$(cd "$(dirname "$0")" ; pwd -P)" #上一层路径 NDIR="./$CDIR/.."获取当前路径和上一层路径
标签:缓存,--,packagename,yun,yum,软件包,CDIR From: https://www.cnblogs.com/vmsysjack/p/17629358.html