{"id":181,"date":"2008-02-24T12:52:57","date_gmt":"2008-02-24T10:52:57","guid":{"rendered":"http:\/\/glandium.org\/blog\/?p=181"},"modified":"2010-01-27T08:52:29","modified_gmt":"2010-01-27T07:52:29","slug":"crazy-ideas","status":"publish","type":"post","link":"https:\/\/glandium.org\/blog\/?p=181","title":{"rendered":"Crazy ideas"},"content":{"rendered":"<p>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.<\/p>\n<p>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.<\/p>\n<p>Anyways, while installing <a href=\"http:\/\/packages.debian.org\/sid\/pristine-tar\">pristine-tar<\/a>, 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.<\/p>\n<p>Such a pristine-deb tool could be used to... store packages from <a href=\"http:\/\/snapshot.debian.net\">snapshot.debian.net<\/a>. 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 <a href=\"http:\/\/httpd.apache.org\/docs\/2.2\/mod\/mod_actions.html#action\">GET action<\/a>, so that urls wouldn't change.<\/p>\n<p>The same could probably be applied to <a href=\"http:\/\/archive.debian.org\/\">archive.debian.org<\/a>. 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.<\/p>\n<p><b>Update:<\/b> 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 <a href=\"http:\/\/packages.debian.org\/\">packages.debian.org<\/a>.<\/p>\n<p><b>Update 2:<\/b> 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<\/p>\n<blockquote><p><code>ar -rc file.deb debian-binary control.tar.gz data.tar.gz<\/code><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I often have a bunch of somewhat crazy ideas, and I don&#8217;t have any time available to test or implement them, which is sad. So just in case these crazy ideas would scratch someone&#8217;s itch, I&#8217;m going to throw them in the wild. I&#8217;ve been using git for a few months, now, and used it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,5],"tags":[23],"class_list":["post-181","post","type-post","status-publish","format-standard","hentry","category-misc","category-pdo","tag-en"],"_links":{"self":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=181"}],"version-history":[{"count":1,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions"}],"predecessor-version":[{"id":693,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions\/693"}],"wp:attachment":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}