.TGZ files
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    xyphoid
    Posts: 870 from 2008/7/11
    From: Delaware, USA
    I have a file supposingly an ebook, in tgz format. How do I view these files.
    LzxRepacker doesn't really says that it unarchieves for viewing.

    Thanks!
  • »17.06.13 - 22:40
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Intuition
    Posts: 1110 from 2013/5/24
    From: Nederland
    Quote:

    xyphoid wrote:
    I have a file supposingly an ebook, in tgz format. How do I view these files.
    LzxRepacker doesn't really says that it unarchieves for viewing.

    Thanks!


    Install the SDK using Grunch or download it from morphos-team.net then:

    Code:
    GG:bin/tar xvf filename.tgz
    1.67GHz 15" PowerBook G4, 1GB RAM, 128MB Radeon 9700M Pro, 64GB SSD, MorphOS 3.15

    2.7GHz DP G5, 4GB RAM, 512MB Radeon X1950 Pro, 500GB SSHD, MorphOS 3.9
  • »17.06.13 - 22:47
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12157 from 2003/5/22
    From: Germany
    > I have a file [...] in tgz format. How do I view these files.

    TGZ is short for TAR.GZ. If you double click the file on Ambient, you will see the contents of the GZip container, which is a TAR file. If you then double click the TAR file, Ambient will present you with the final contents.
    Instead of using Ambient, you can also use command line with the xadunfile command.
  • »17.06.13 - 23:17
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    xyphoid
    Posts: 870 from 2008/7/11
    From: Delaware, USA
    Thanks I Think I had sdk previously, so I tried
    Ram Disk:> GG:bin/tar xvf ram:file.tgz
    GG:bin/tar: Hmm, this doesn't look like a tar archive
    GG:bin/tar: Skipping to next file header
    GG:bin/tar: Only read 8134 bytes from archive ram:file.tgz
    GG:bin/tar: Error is not recoverable: exiting now
    ram disk:>
  • »17.06.13 - 23:17
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    Intuition
    Posts: 1110 from 2013/5/24
    From: Nederland
    Quote:

    xyphoid wrote:
    Thanks I Think I had sdk previously, so I tried
    Ram Disk:> GG:bin/tar xvf ram:file.tgz
    GG:bin/tar: Hmm, this doesn't look like a tar archive
    GG:bin/tar: Skipping to next file header
    GG:bin/tar: Only read 8134 bytes from archive ram:file.tgz
    GG:bin/tar: Error is not recoverable: exiting now
    ram disk:>


    It might just be a gzipped file rather than a gzipped tarball.

    Try this and see what it reports:

    Code:
    gunzip -dv file.tgz
    1.67GHz 15" PowerBook G4, 1GB RAM, 128MB Radeon 9700M Pro, 64GB SSD, MorphOS 3.15

    2.7GHz DP G5, 4GB RAM, 512MB Radeon X1950 Pro, 500GB SSHD, MorphOS 3.9
  • »17.06.13 - 23:20
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    xyphoid
    Posts: 870 from 2008/7/11
    From: Delaware, USA
    Thanks Andreas. That was simple pdf decompressed.
  • »17.06.13 - 23:23
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    Quote:

    Andreas_Wolf wrote:
    > I have a file [...] in tgz format. How do I view these files.

    TGZ is short for TAR.GZ. If you double click the file on Ambient, you will see the contents of the GZip container, which is a TAR file. If you then double click the TAR file, Ambient will present you with the final contents.
    Instead of using Ambient, you can also use command line with the xadunfile command.


    I have (occasionally) come across tar.gz (aka tgz) where the contents of the gz is a tar file in a directory, but misnamed tar.gz. The above method doesn't work with those.

    foo.tar.gz contains only a directory named ".." which contains foo.tar.gz (which is actually a tar file mislabelled)
    foo.tar.gz contains the packed files, but must be renamed to foo.tar before Ambient will recognise it correctly.

    To access these the contents of the gz (either the ".." directory, or the file foo.tar.gz) must be copied to a real location (eg ram) before the tar.gz can be renamed to .tar, and then unpacked.

    It shows up that Ambient mime types rely on file extensions to some degree rather than sniffing file headers.

    Example: Coin3D library
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »18.06.13 - 10:42
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12157 from 2003/5/22
    From: Germany
    > I have (occasionally) come across tar.gz (aka tgz) where the contents of
    > the gz is a tar file in a directory, but misnamed tar.gz. The above method
    > doesn't work with those.

    Indeed, I just tried it with the archive you linked to. But fortunately, the other method I mentioned (xadunfile or xaduntar) still works, even with the wrong file extension.
  • »19.06.13 - 20:49
    Profile