OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: vputz on October 07, 2004, 12:07:44 am

Title: Unpacking ipkgs...
Post by: vputz 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
Title: Unpacking ipkgs...
Post by: TheCrook 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
Title: Unpacking ipkgs...
Post by: davisfactor 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?
Title: Unpacking ipkgs...
Post by: TheCrook 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?
Title: Unpacking ipkgs...
Post by: lardman 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
Title: Unpacking ipkgs...
Post by: davisfactor 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.