Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-04-2006, 10:10 PM
|
#1
|
Member
Registered: Oct 2004
Location: Pennsylvania, USA
Distribution: Debian
Posts: 87
Rep:
|
apt package repositories/format question
I notice that every time I do a dist-upgrade, something like this happens: 200 MB of updated packages are downloaded, and after unpacking 5 MB of extra disk space is used.
It seems like if I have package foo version 6 and package foo version 7 is released, the full package file for version 7 is downloaded.
Wouldn't it make more sense for the apt repositories to store each package as a full .deb file, and also as a set of binary patches that allow upgrading previous releases to the newest release?
If you don't have any version of a package you request, apt-get downloads the full .deb file. If you do have some version of the package, apt-get downloads and applies a series of binary patches to that deb file to transform it into the version you want.
Over the long term, I think the bandwidth savings for this, and the speed of distributing upgrades, would be enormous.
|
|
|
12-05-2006, 11:51 AM
|
#2
|
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094
|
Interesting thought. Although I have to admit that my only experience with "patch" upgrades is with windows, and it always seems to result in buggy programs after a couple of upgrades. Of course, it's entirely possible that's a Windows problem and not a "patching" problem...
|
|
|
12-05-2006, 02:40 PM
|
#3
|
Member
Registered: Oct 2004
Location: Pennsylvania, USA
Distribution: Debian
Posts: 87
Original Poster
Rep:
|
Well, more explicitly, this is what I have in mind:
1. Repository gets package foo0.5 and its md5sum
2. PC downloads package foo0.5, verifies md5sum, installes package, keeps package .deb file.
3. Repository gets package foo0.6, its md5sum, and package_diff_foo0.5-0.6
4. PC downloads package_diff_foo0.5-0.6 and the md5sum for package foo0.6.
5. PC copies the foo0.5.deb files to foo0.5.deb.tmp and applies the package_diff files to it.
6. PC compares the md5sum of the resulting file to foo0.6. If there is a match, it renames the resulting file to foo0.6. If there is no match, it deletes the corrupt file and downloads the full package from the repository.
7. Now the foo0.6 file on the PC should match the one in the repository exactly.
I know incremental patching is in place for kernel builds. I'm sure incremental binary patches would be more complicated. But I would think this is worthwhile.
|
|
|
All times are GMT -5. The time now is 08:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|