apt-get download package
#! /bin/bash
PACKAGE=$1
URI=`apt-cache show $PACKAGE | grep "Filename:" | cut -f 2 -d " "`
wget
#!/bin/bash
PACKAGE=$1
PACK=$(apt-cache show $PACKAGE | grep -m 1 "Filename:" | cut -f 2 -d " ")
URI=`apt-cache policy $PACKAGE | grep -m 1 500|awk '{print $2}'`
#if [ -n PACK ]; then
if [ ${#PACK} -gt 5 ]; then
wget $URI$PACK
fi
阅读(1317) | 评论(0) | 转发(0) |