Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Saving downloadtime when downloading KDE by using xdelta

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
11 posts • Page 1 of 1
Author
Message
blackpenguin
n00b
n00b
User avatar
Posts: 43
Joined: Tue Mar 09, 2004 5:27 pm
Location: Germany
Contact:
Contact blackpenguin
Website

Saving downloadtime when downloading KDE by using xdelta

  • Quote

Post by blackpenguin » Tue Mar 09, 2004 5:50 pm

KDE mirrors release xdelta files - but portage does not use them.

If you dont know what xdelta-files are - these are much similar like diff-patches but for binary files.

So downloading xdeltas reduce the size of your downloads.
For example instead of downloading ~300 MB for the complete kde-sources (incl. kde-i18n-3.2.1.tar.bz2) you would download only ~50 MB xdelta-files.

I have written a small script, that does this for you now.

You can find the script here: http://linux01.gwdg.de/~nlissne/kdedelta.sh

Have a look into the script before starting it
(for example you can/should change the packages and the kde-mirror to be used for download...)

The script checks if you have the previous versions (referred as $KDE_OLD and $ARTS_OLD in the script) and if so it will download the xdelta file and use it together with the old version of the tar.bz2-file to create the new one.
If you dont have the old version in your $DISTDIR it just downloads the new version.

Just start it before upgrading your KDE.
Of course you should have installed xdelta to use it. (just emerge xdelta)

Script is prepared to download xdelta-files for arts-1.2.1 and kde-3.2.1 but can easily be changed for future versions.

I hope this is useful for someone.
Have fun.
Last edited by blackpenguin on Wed Mar 10, 2004 1:44 am, edited 1 time in total.
Top
jcc
Apprentice
Apprentice
User avatar
Posts: 233
Joined: Fri May 30, 2003 3:02 pm
Location: Fort de France, Martinique

  • Quote

Post by jcc » Tue Mar 09, 2004 11:36 pm

man, this is cute. I think I had to say a quick thank you :)
gnu your mind...
Top
Redeeman
l33t
l33t
User avatar
Posts: 958
Joined: Thu Sep 25, 2003 9:02 am
Location: Portugal

  • Quote

Post by Redeeman » Wed Mar 10, 2004 5:52 pm

i have thought of stuff like this too, but never saw it before this.
Top
X-Ryl669
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 135
Joined: Mon Feb 16, 2004 10:43 am

Nice proggy

  • Quote

Post by X-Ryl669 » Fri Mar 12, 2004 3:20 pm

What a great proggy...

I will have a look at it before downloading any more tar.bz2...

Thanks
Think it twice, think it thrice, you never think enough...
Top
alec
Apprentice
Apprentice
User avatar
Posts: 270
Joined: Fri Apr 19, 2002 3:02 am
Location: Here
Contact:
Contact alec
Website

  • Quote

Post by alec » Fri Mar 12, 2004 3:49 pm

There's a program called deltup in portage that is suppose to add this functionality to portage (but automated), however it doesn't seem to ever have gotten off the ground.
Top
rewt
n00b
n00b
User avatar
Posts: 58
Joined: Thu Feb 19, 2004 9:38 am

  • Quote

Post by rewt » Fri Mar 12, 2004 4:27 pm

Sounds cool. The only drawback I see is that you have to have the previous version to make use of it
Maybe it would be possible to store the deltas somewhere and apply them one after another if that would be faster?
In any case I'm sure this will save a lot of people huge amounts of time and bandwidth, nice job!
Because sometimes peace is another word for surrender... and secrets have a way of getting out
Top
blackpenguin
n00b
n00b
User avatar
Posts: 43
Joined: Tue Mar 09, 2004 5:27 pm
Location: Germany
Contact:
Contact blackpenguin
Website

  • Quote

Post by blackpenguin » Fri Mar 12, 2004 7:42 pm

Good Idea, I have changed the script to do that.
It is probably not faster for the whole script, but useful on a
dialin-line to download all xdeltas first.
Top
occam2003
n00b
n00b
User avatar
Posts: 17
Joined: Mon Mar 03, 2003 12:01 am
Location: Melbourne, Australia

  • Quote

Post by occam2003 » Sat Mar 13, 2004 3:25 am

VERY good idea - pity I did not check this forum before starting the emerge -U world. Oh well, next time..
Top
skimitar
n00b
n00b
User avatar
Posts: 20
Joined: Tue Dec 30, 2003 11:52 pm

  • Quote

Post by skimitar » Sun Mar 14, 2004 8:21 pm

Very useful. Made me get off my butt to upgrade to 3.2.1.

Just a note for people: you'll need the orginal kde and arts distfiles in /usr/portage/distfiles.

If you've deleted them to clear space, you'll need to restore the relevant bz2's from backup (assuming you've made one).
"Internet! Is that thing still around? " - HJS
Top
ferringb
Retired Dev
Retired Dev
User avatar
Posts: 357
Joined: Thu Apr 03, 2003 10:06 pm

  • Quote

Post by ferringb » Mon Apr 05, 2004 4:56 am

To those interested, glep 25 is another attempt at getting distfile patching support into portage- the utility it's based on (diffball, which I've been writing) supports reconstructing files via xdelta patches.

Pretty much, assuming the glep were accepted (it's currently a draft) the existing kde xdelta patches could be used automatically. Give the glep a read if your interested- feedback would be quite appreciated.
Top
mantis
Tux's lil' helper
Tux's lil' helper
Posts: 134
Joined: Tue Jul 30, 2002 8:42 am
Location: Sydney

  • Quote

Post by mantis » Sun May 02, 2004 9:37 am

I do hope this does get accepted.

Wish it were available at the moment. :(
Top
Post Reply

11 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy