Add new apt mirror


masibego@ubuntu-laptop:~/script$ cat > apt_mirror.sh
#! /usr/bin/env sh

if [ ! -d /etc/apt ]; then
mkdir -p /etc/apt;
fi

if [ ! -x /etc/apt/sources.list ]; then
touch /etc/apt/sources.list;
fi

for i in ' ' '-updates ' '-backports ' '-security '; do
echo deb ${1} ${2}${i} main restricted universe multiverse >> /etc/apt/sources.list;
done

masibego@ubuntu-laptop:~/script$ sudo ./apt_mirror.sh http://kambing.vlsm.org/ubuntu feisty

Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home