Author Topic: Unpacking ipkgs...  (Read 2900 times)

vputz

  • Full Member
  • ***
  • Posts: 163
    • View Profile
Unpacking ipkgs...
« on: October 07, 2004, 12:07:44 am »
OK, I feel silly.  I even MADE ipkgs back around the 5000D time frame and this is evading me, so I feel even more stupid.

But I can't unpack ipkgs.

Here's the deal: I want to try out xmame, but I don't seem to have enough free storage to have the ipkg on the tired ol' 5000D and also install it.

Fine, thought I, I'll just untar the ipkg files and try manually putting things in places.  As I recalled, .ipkg files were just .tar.gz files... or so I thought...?

But using gnu tar 1.13.25 (cygwin; I was playing games so was in Windows at the time), I get this message (using the bzip2 ipk as a sample):

Code: [Select]
$ tar -xzf bzip2_1.0.2-r0_arm.ipk

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

Hmm.  OK, maybe somehow it wasn't really gzip'd.  If I "less" the thing, I can see some header text at the beginning.  Let's try just tar'ing the thing (after renaming it and trying a few other ideas, all with the same result):

Code: [Select]
tar -xf bzip2_1.0.2-r0_arm.tar.gz
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Error exit delayed from previous errors

Um, OK.  Maybe it has something to do with the version of tar I'm using.  But trying it on the Z does me no favors either; either "invalid gzip magic" or "invalid tar magic".

What am I doing wrong?  How can I just unpack the blasted .ipkg file, preferably on my desktop?

(yeah, I know, I know, buy more memory, but the 64M SD card is doing fine for everything except this, and I imagine xmame is going to be too slow to be useful, so this is just for jollies... and besides, now I'm annoyed that I can't figure it out!)

-->VPutz

TheCrook

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • http://
Unpacking ipkgs...
« Reply #1 on: October 07, 2004, 05:08:18 am »
The ipks can be unpacked using "ar"
e.g.
# ar -vx  bzip2_1.0.2-r0_arm.ipk
x - debian-binary
x - data.tar.gz
x - control.tar.gz

#

The data and control files can then be unpacked using tar / gzip
[span style=\'font-size:8pt;line-height:100%\']SL-5500; Hentges 3.5.3 Opie ROM 64-0
Origo WiFi CF; Ambicom BT2000-CF
256MB SanDisk SD; 128MB Crucial CF
[/span]

davisfactor

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • http://
Unpacking ipkgs...
« Reply #2 on: October 07, 2004, 05:01:35 pm »
'ar' doesn't work for me.

Code: [Select]
root@zaurus:[/mnt/card/dfx]: ar -vx zirrem_1.0.4_free_arm.ipk
ar: Invalid ar magic
root@zaurus:[/mnt/card/dfx]: ar zirrem_1.0.4_free_arm.ipk
ar: Invalid ar magic
root@zaurus:[/mnt/card/dfx]: ar -x zirrem_1.0.4_free_arm.ipk
ar: Invalid ar magic
root@zaurus:[/mnt/card/dfx]: ar -x zirrem_1.0.4_free_arm.ipk .
ar: Invalid ar magic
root@zaurus:[/mnt/card/dfx]: ar -xv zirrem_1.0.4_free_arm.ipk .
ar: Invalid ar magic


Any ideas?

TheCrook

  • Newbie
  • *
  • Posts: 9
    • View Profile
    • http://
Unpacking ipkgs...
« Reply #3 on: October 08, 2004, 05:24:37 am »
Never tried "ar" on the Z.
It works fine for me on my Debian Laptop and also under cygwin on XP
Try it on either of those maybe?
[span style=\'font-size:8pt;line-height:100%\']SL-5500; Hentges 3.5.3 Opie ROM 64-0
Origo WiFi CF; Ambicom BT2000-CF
256MB SanDisk SD; 128MB Crucial CF
[/span]

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Unpacking ipkgs...
« Reply #4 on: October 08, 2004, 06:42:51 am »
Use ar -x rather than ar -vx, busybox doesn't support all the switches.

Also try using tar, on the off chance that they are tar.gz rather than ar formatted.


Si
« Last Edit: October 08, 2004, 06:43:42 am by lardman »
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

davisfactor

  • Newbie
  • *
  • Posts: 20
    • View Profile
    • http://
Unpacking ipkgs...
« Reply #5 on: October 08, 2004, 11:57:34 am »
Ahh, tar zxvf worked - thanks.

Code: [Select]
root@zaurus:[/mnt/card/dfx]: tar zxvf zirrem_1.0.4_free_arm.ipk
./debian-binary
./control.tar.gz
./data.tar.gz

Thanks, never thought about tar.