My First Post : Accelerating the the apt-get in Ubuntu
:D
Well I have decided to finally use this blog, I have created it over 4 years ago, Still not a single post, and when I checked the stats 15 visits, :P all should be me.
Any way today morning while I again moved back to Ubuntu, why? well I like it and second and most importantly office windows moved to Norton new version. Any way I dont want to explain why I moved here. So lets continue, the first thing i installed is Yakuake, I really love that app, so it was giving really low speed. So i was thinking of accelerating the download.
So googling in the end came up with this blog. I liked the idea and tried it out, only problem it does not work, and whole thing was never there. So just freshned my months to years old scripting memory and wrote my own.
The two part of his blog was perfect, the execution part and change directory part. But what I wanted and what the blog if it ever ran would give me two diffrent things.
apt-get needs argument wheather it should install or update or any thing, and more over they ask for licence agrement, we have to make it force yes.
Once you have downloaded you have to install, so i use the apt-get with no download option. If every thing goes fine, I mean i never have error check weather user is root or not(it should be root) or the package exist or not(and it should exist) we will download at higher speed(well i got around 5 times faster) any way attaching the screeshots.



Well I have decided to finally use this blog, I have created it over 4 years ago, Still not a single post, and when I checked the stats 15 visits, :P all should be me.
Any way today morning while I again moved back to Ubuntu, why? well I like it and second and most importantly office windows moved to Norton new version. Any way I dont want to explain why I moved here. So lets continue, the first thing i installed is Yakuake, I really love that app, so it was giving really low speed. So i was thinking of accelerating the download.
So googling in the end came up with this blog. I liked the idea and tried it out, only problem it does not work, and whole thing was never there. So just freshned my months to years old scripting memory and wrote my own.
# # @author jishnu.viswanath # @date 1st November 2008 # clear cd /var/cache/apt/archives apt-get -f -y --force-yes --print-uris install $1>debs.list egrep -o -e "(ht|f)tp://[^\']+" debs.list | xargs -l1 axel -a apt-get ---f -y --force-yes --no-download install $1 exit 0 |
The two part of his blog was perfect, the execution part and change directory part. But what I wanted and what the blog if it ever ran would give me two diffrent things.
apt-get needs argument wheather it should install or update or any thing, and more over they ask for licence agrement, we have to make it force yes.
Once you have downloaded you have to install, so i use the apt-get with no download option. If every thing goes fine, I mean i never have error check weather user is root or not(it should be root) or the package exist or not(and it should exist) we will download at higher speed(well i got around 5 times faster) any way attaching the screeshots.

Labels: apt-get, apt-get acceleration, apt-get axel, linux, ubuntu

