Author Topic: Unpacking tar files under Windows  (Read 4403 times)

swhite916

  • Newbie
  • *
  • Posts: 6
    • View Profile
Unpacking tar files under Windows
« on: February 26, 2004, 03:02:31 pm »
I want to install some apps that download as tar files from the ZSI and other places.  When I try to open the .tar files in windows, winzip gives me an error.

Is there a way to unpack them on the zaurus?  Is there a way to unpack them in windows (xp professional)?   I just took the zaurus out of the box last night, so everything on it is pretty much \'as shipped\'.

This seems like it should be simple....

doseas

  • Full Member
  • ***
  • Posts: 207
    • View Profile
    • http://
Unpacking tar files under Windows
« Reply #1 on: February 26, 2004, 03:40:43 pm »
I untar them all of the time using Winzip 8.0 -- I think I have used Winzip on them all the way back to version 6.  Sounds like there is a problem with the tar files, or they are not really tars at all, but perhaps .ipk (tar.gz), or ar.  If you\'ve downloaded files from ZSI, most of them are not .tar, but one of the other formats I mentioned.

To untar a file on the Zaurus, you need to have a terminal program, such as embeddedkonsole, installed.  Then it is a matter of:
tar -tvf tarfile.tar   to list contents
tar -xvf tarfile.tar  to unpack the contents

swhite916

  • Newbie
  • *
  • Posts: 6
    • View Profile
Unpacking tar files under Windows
« Reply #2 on: February 26, 2004, 05:09:53 pm »
I thought winzip should work to.  I just tried the tar command on the zaurus and it says the tar file is corrupt.  Thanks for the tip.

VeeDub

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://
Unpacking tar files under Windows
« Reply #3 on: February 26, 2004, 05:19:12 pm »
WinRar works as well.

nitup

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://www.pbase.com/george_iii
Unpacking tar files under Windows
« Reply #4 on: February 26, 2004, 06:58:54 pm »
George
sl5500, sharp 3.13, 64M lexar mmc, wcf11

qx773

  • Full Member
  • ***
  • Posts: 219
    • View Profile
Unpacking tar files under Windows
« Reply #5 on: February 26, 2004, 11:06:36 pm »
If you go to the web site for MAME and download MinGW, which is the minimum GNU C/C++ programming environment for Windows, then it comes with several Unix-compatible command line utilities, including tar.  You must simply place the c:mingwbin folder in your path if the software was been installed on your C: drive.  See:

http://www.mame.net/downmain.html

I noticed some strangeness when download tar files.  Sometimes a second tar extension gets added to the file name, or some other unrelated file name extension gets added to the file name.  Netscape has the problem that it treats files that it does not recognize as text files and attempts to convert line feed characters into carriage return/line feed pairs, corrupting binary files.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Unpacking tar files under Windows
« Reply #6 on: February 27, 2004, 01:52:58 am »
Becarefull when downloading with IE6.0 it sometimes deletes the gz ending or adds an extra tar to files.

Ie package.tar.gz becomes package.tar or package.tar.gz.tar

Not sure why this happens, renaming the file to package.tar.gz allows winzip to open them.
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Unpacking tar files under Windows
« Reply #7 on: February 27, 2004, 06:57:55 am »
*.tar.bz2 get renamed to *.tar on my WinXP box.
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
Unpacking tar files under Windows
« Reply #8 on: February 27, 2004, 07:27:26 am »
IE often tags .tar on the end of an ipk filename when I download Zaurus apps under Windows. So I get things like myapp.ipk.tar . Nothing is done to the file, it just needs the .tar removing from the end of the file name.

ipks are gzipped tar files anyway so WinZip can handle them fine if you change .ipk to .tar.gz . Don\'t know why IE thinks it\'s being clever and tags .tar on the end as an ipk will initially appear as a gzipped file in which is a tar file.
# Search the Zaurus Howtos ## Search the Zaurus FAQs ## Find Z software at ELSI #
--------------------
UK SL5500 with Sharp ROM 3.13, SL5600 with Sharp ROM 1.32 - SuSE 9.0 Pro, Windows XP Home
Qualendar for Calendar and Todo
Socket Bluetooth CF Card (Rev F), Kingmax 512MB MMC Card, Palm Tungsten T Stylus,
Pretec CF->Smartmedia Adapter, Semsons Universal Battery Extender

swhite916

  • Newbie
  • *
  • Posts: 6
    • View Profile
Unpacking tar files under Windows
« Reply #9 on: February 27, 2004, 02:18:04 pm »
tumnus,

That was exactly the problem...IE was adding a .tar on the end of the ipk.  

Thanks for the tip.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Unpacking tar files under Windows
« Reply #10 on: February 27, 2004, 09:37:45 pm »
Quote
*.tar.bz2 get renamed to *.tar on my WinXP box.

You got anything that will open bz2 file under windows?

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

nitup

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • http://www.pbase.com/george_iii
Unpacking tar files under Windows
« Reply #11 on: February 27, 2004, 09:54:59 pm »
Quote
Quote
*.tar.bz2 get renamed to *.tar on my WinXP box.

You got anything that will open bz2 file under windows?

Stu

yes, see my post above.  7-zip will open that as well as rpm and deb files.   you can also install cygwin and have decent posix environment  and get tar gzip and bzip.
George
sl5500, sharp 3.13, 64M lexar mmc, wcf11

Anonymous

  • Guest
Unpacking tar files under Windows
« Reply #12 on: February 27, 2004, 09:56:06 pm »
winrar will unpack bz2 files on windows

doseas

  • Full Member
  • ***
  • Posts: 207
    • View Profile
    • http://
Unpacking tar files under Windows
« Reply #13 on: March 01, 2004, 04:32:34 pm »
Quote
winrar will unpack bz2 files on windows
As will PowerArchiver & UltimateZip.