Crazy ideas

I often have a bunch of somewhat crazy ideas, and I don't have any time available to test or implement them, which is sad. So just in case these crazy ideas would scratch someone's itch, I'm going to throw them in the wild.

I've been using git for a few months, now, and used it not only for source code management, but for efficient storage, too. *VERY* efficient. I'll have to write about that some day.

Anyways, while installing pristine-tar, today, I just thought it would be neat to have an equivalent pristine-deb, to store deb files efficiently. I'm pretty sure someone else thought about this possibility, but it's still better that such ideas come to the ears (eyes, actually) of someone that could implement them.

Such a pristine-deb tool could be used to... store packages from snapshot.debian.net. That would reduce the amount of space required for the archive dramatically, IMHO. I'm pretty sure old packages are not requested that much, so they could be generated on-the-fly from a CGI script placed as a GET action, so that urls wouldn't change.

The same could probably be applied to archive.debian.org. It could even save enough space that archive.debian.org could host snapshot.debian.net. But that depends on the average package content and its average evolution, which I have absolutely no idea about.

Update: It would also be interesting to have the .diff.gz files in there, too ; it would obviously allow to have an easy view of the contents, such as copyright files, changelogs, and other bits of information available on packages.debian.org.

Update 2: Actually, pristine-deb would as easy as storing 2 pristine-tars (one for control.tar.gz and one for data.tar.gz), and a debian-binary file. The .deb can be aggregated with

ar -rc file.deb debian-binary control.tar.gz data.tar.gz

2008-02-24 12:52:57+0900

miscellaneous, p.d.o

Both comments and pings are currently closed.

3 Responses to “Crazy ideas”

  1. nate Says:

    I’ve started using git to do changes on my work laptop. This way my little bits of documentation and code I control are backed up and I can make sweeping changes with impunity.

    Before that I would end up with dozens of little ‘*.backup’ and ‘*.old.backup’ files all over the place. Not cool.

    To that end there is this neat application for doing this stuff called ghh for git-home-history. He has some default configurations made, a command line tool and gtk gui for people that like the sort of convience that can bring. Very neat. All of that works just fine along side normal git commands.

    http://jean-francois.richard.name/ghh/

  2. lolo Says:

    Wow great idea. Could be possible to extend the idea to the client side? If you have already downloaded X-1.deb, you download X-2.deb.delta and create the new package :?

  3. Julian Andres Klode Says:

    Simply using ar -rc does not work. I’m currently writing a program named ‘pristine-deb’, which supports this.

    See http://juliank.wordpress.com/2008/02/25/pristine-deb-git-buildpackages-pristine-tar-support/