- To: marghanita@xxxxxxxxxxxx
- Subject: Re: [SLUG] How do I add a file (zip) to a package without compressing it
- From: DaZZa <dazzagibbs@xxxxxxxxx>
- Date: Thu, 28 Jul 2011 12:24:47 +1000
- Cc: slug@xxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BMBXJys65Hm2y8IahNBorYd7RuhPfG7O/bi0epxsLAs=; b=byJvJGgJmIy70L/IpYromlwMJ2LNRuJ1QBAJ/+FflpBZ7MeLYDztCN7vQAkqalaz/Q smwCweM2AIRIdgrhBSdd6F/avbnBdpt2AggeQTnRztGRX12RMh8qPXXgRoTsDP6sjw5L Pjne863K1vujRXRWttz9cP78oLfqrrLGZNlPk=
2011/7/28 Marghanita da Cruz <marghanita@xxxxxxxxxxxx>:
> I looked at tar but couldn't figure out the option not to compress there
> either. Does Tar compress or not compress by default?
Tar doesn't compress at all - if you want to compress a tar archive
you have to pipe through gzip or something similar *prior* to writing
out the archive, vis-a-vis
tar -czf archive.tgz <source1> <source2> <source3> creates a compressed version
tar -cf archive.tgz <source1> <source2> <source3> creates an
uncompressed version
So you could do something like this <from memory, not checked, YMMV,
if it don't work don't blame me, MAN is your friend etc etc>
tar -czf archive.tgz <source1> <source2>
tar -Af archive.tgz <source3>
This'd add the first two files compressed, and the third uncompressed.
The zip -0 method is easier. :-)
DaZZa