当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > pacman终极提速--metalink
#!/bin/bash
#pacget script
rm -f *.aria2
cachedir=/var/cache/pacman/pkg
file=`echo $1|awk -F '/' '{ print $NF }'`
echo Downloading: $file|sed 's,/,,'
repo=`echo $1|awk -F '/' '{x=NF-3 } { print $x }'`
echo repo: $repo
if [[ $2 = *.db.tar.gz.part || $repo = "testing" ]]; then
echo "(using one mirror)"
mirrors=$1
else
if [ -f /etc/
评论 (0) All