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]

Tagged with: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.