[v3.0-rc2] Creating an archive-tarball from linux-2.6 GIT repository
From: Sedat Dilek
Date: Tue Jun 07 2011 - 08:14:47 EST
Hi,
as the official tarballs still missing, here some instructions to
archive a tarball from GIT repository.
[ Checkout linux-2.6 (aka linux-3.0) ]
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
( NOTE: Users from EU zone: Use <git.us.kernel.org>... it's faster for
checkouts. )
cd linux-2.6
[ gzip ]
git archive --format=tar --prefix=linux-3.0-rc2/ v3.0-rc2 | gzip -9c >
../linux-3.0-rc2.tar.gz
[ bzip2 ]
git archive --format=tar --prefix=linux-3.0-rc2/ v3.0-rc2 | bzip2 -9c
> ../linux-3.0-rc2.tar.bz2
[ xz ]
git archive --format=tar --prefix=linux-3.0-rc2/ v3.0-rc2 | xz -9c >
../linux-3.0-rc2.tar.xz
A good compromise between decompression-speed and file-size is:
[ xz -2e ]
git archive --format=tar --prefix=linux-3.0-rc2/ v3.0-rc2 | xz -2ec >
../linux-3.0-rc2.tar.xz-2e
[ Filesizes ]
$ du -h linux-3.0-rc2.tar.*
74M linux-3.0-rc2.tar.bz2
93M linux-3.0-rc2.tar.gz
61M linux-3.0-rc2.tar.xz
65M linux-3.0-rc2.tar.xz-2e
Thanks to friends from #quassel.de (git archive) and #mirbsd (xz -2e)
for the hints.
Thanks to Linus for not providing tarballs...
As I used to say... Still learning from git usecase to git usecase.
- Sedat -
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/