On Thu, Nov 6, 2008 at 8:39 AM, Florian Philipp
<[EMAIL PROTECTED]> wrote:
> Jorge Peixoto de Morais Neto schrieb:
>> On Wed, Nov 5, 2008 at 2:38 PM, Nickolay Hodyunya <[EMAIL PROTECTED]> wrote:
>>> How to extract lzma archives?
>>
>> by lzma archive, you probably mean a lzma-compressed tar archive.
>> You can extract them with
>> lzma -dc compressedarchive.tar.lzma | tar -xv -f -
>
> This command line can be simplified:
> unlzma -c compressedarchive.tar.lzma | tar xv
I like to do things right (I love Math, exactness and rigor). From
tar's info page
If you don't specify this argument [the argument to -f] , then
`tar' will examine the
environment variable `TAPE'. If it is set, its value will be used as
the archive name. Otherwise, `tar' will use the default archive,
determined at the compile time. [...] If there is no tape drive
attached, or the default is not meaningful, then `tar' will print an
error message. The error message might look
roughly like one of the following:
tar: can't open /dev/rmt8 : No such device or address
tar: can't open /dev/rsmt0 : I/O error
To avoid confusion, we recommend that you always specify an archive file
name by using `--file=ARCHIVE-NAME' (`-f ARCHIVE-NAME') when writing
your `tar' commands.
Regarding old-style tar options (that is, tar options without a dash):
old style syntax makes it difficult to match
option letters with their corresponding arguments, and is often
confusing
[...]
This old way of writing `tar' options can surprise even experienced
users. For example, the two commands:
tar cfz archive.tar.gz file
tar -cfz archive.tar.gz file
are quite different.
So I use either tar --lzma -xv -f compressedarchive.tar.lzma or, when
using an old tar,
lzma -dc compressedarchive.tar.lzma | tar -xv -f -