OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: omega on June 30, 2004, 11:42:55 am

Title: IPK File Format
Post by: omega on June 30, 2004, 11:42:55 am
Hi,

From what i understood .ipk files are supposed to be really tar files.  I am having problem with octave, and a few other files in the past were ipkg graphical installer wouldn't see a package and the command line complained that it couldn't uncompress them.

So i uncompressed octave.ipk with ar and i got three files, control,..., debian-binary.  How do i install this? Can i repackage this as a normal ipk so that the installer can handle it?

Are these ar files from pdaxrom? Why do they exist like this, and why is there no compatibility? Would it not be possible to configure ipkg to try tar and then ar if it is not successful?
Title: IPK File Format
Post by: dhns on June 30, 2004, 12:20:29 pm
I also sometimes came across this issue. I think there are several releases of ipgk tool out there and one uses ar and the other tar. The one of the standard Zaurus ROM is NOT able to detect the format.

If you have successfully unpacked to control, data, debina-binary, simply repack to a tar archive (with tar cvzf new-package_arm_ipk ./control ./data ./debian-binary) and the installer should find and install.

But depending on the content it still might not work.

The first thing I try when it is not installing is if it is really a gzipped file (tar tvzf file.ipk). Sometimes (seems to depend on the web page server) my browser plugin is too helpful and already unzips.

-- hns
Title: IPK File Format
Post by: tumnus on June 30, 2004, 03:29:37 pm
It's all in the FAQ:

http://www.zaurususergroup.com/modules.php...parent_id=0#202 (http://www.zaurususergroup.com/modules.php?op=modload&name=FAQ&file=index&myfaq=yes&id_cat=5&categories=Software&parent_id=0#202)
http://www.zaurususergroup.com/modules.php...parent_id=0#203 (http://www.zaurususergroup.com/modules.php?op=modload&name=FAQ&file=index&myfaq=yes&id_cat=5&categories=Software&parent_id=0#203)
http://www.zaurususergroup.com/modules.php...parent_id=0#213 (http://www.zaurususergroup.com/modules.php?op=modload&name=FAQ&file=index&myfaq=yes&id_cat=5&categories=Software&parent_id=0#213)
Title: IPK File Format
Post by: omega on July 02, 2004, 07:50:29 am
Okay i tried to retar it but it says that tar doesn't support compression to use busybox gunzip? I couldn't fully understand what it wanted me to do. Where can i get a version of tar that will compress?

BTW, i just copied over the files manually and it worked great.
Title: IPK File Format
Post by: omega on July 02, 2004, 07:58:21 am
Also, i'd love to get a copy of something that could compress in rar format.
Title: IPK File Format
Post by: tumnus on July 02, 2004, 08:23:58 am
Quote
Okay i tried to retar it but it says that tar doesn't support compression to use busybox gunzip?
tar on the Zaurus doesn't have gzip compression compiled in, only decompression.

So you have to do:

tar -cvf myfile.tar ./debian-binary ./data.tar.gz ./control.tar.gz
gzip myfile.tar
mv myfile.tar.gz myfile.ipk

(That's all the compression support in tar basically does anyway)
Title: IPK File Format
Post by: omega on July 02, 2004, 09:06:33 am
Cool. Cheers tumnus.
Title: IPK File Format
Post by: Stubear on July 02, 2004, 09:09:33 am
Quote
Also, i'd love to get a copy of something that could compress in rar format.
You have rar on the Cacko rom - at least it was last time I installed it.

If the version of tar doesn't accept gzip or other compression then you can do it in 2 steps or pipe to gzip

Code: [Select]
tar cvf package.ipk ./data.tar.gz ./control.tar.gz ./debian-binary
gzip package.ipk
mv pacakge.ipk.gz package.ipk

or better

Code: [Select]
tar cvf - ./data.tar.gz ./control.tar.gz ./debian-binary | gzip - > package.ipk
You can replace gzip with whatever compressor you'd liek to use (bzip2, rar, Z etc)

Stu