Download Ubuntu/Debian packages faster!
1. install [url=http://www.overinter.net/deb/prozilla_2.0.3-1_i386.deb]prozilla[/url]
2. create 2 files
[code]
root@anhtt-laptop:~# cat bin/apt-path
#!/bin/bash
echo http://ftp.ussg.iu.edu/linux/ubuntu/`apt-cache show $1 | grep ‘Filename:’ | sed -e ‘s/Filename: //g’ | head -1`
root@anhtt-laptop:~# cat bin/apt-proz
#!/bin/bash
for i in $*
do
filename=`apt-path $i`
if [ -f /var/cache/apt/archives/`basename $filename` ]
then
echo ‘Exists already’;
else
sudo proz –directory-prefix=/var/cache/apt/archives/ -k 16 `apt-path $i`
fi
done
[/code]
3. run
– when you want to download firefox package, just type:
[code]apt-proz firefox[/code]
Filed under: Linux corner - @ March 31, 2008 10:23 pm