Speed up upgrades for a debian/ubuntu based system.

sudo aptitude update; sudo apt-get -y --print-uris upgrade | egrep -o -e "http://[^\']+" | sudo aria2c -c -d /var/cache/apt/archives -i -; sudo aptitude -y safe-upgrade
Please install aria2c before you try the above command. On ubuntu the command to install aria2c would be: sudo aptitude install aria2

3
2010-02-18 16:02:29

What Others Think

Can you give some information about what it actually does to speed up?
Weboide · 615 weeks and 1 day ago
It fetches new packages using aria2 rather than the one built-into aptitude / apt-get.
unixmonkey8369 · 615 weeks and 1 day ago
As unixmonkey8369 stated, it fetches packets using aria2 which is a download accelerator (fetches multiple threads and multiple fragments simultaneously). Thats how it speeds up the download the process.
freethinker · 615 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: