Author Topic: IPK File Format  (Read 8927 times)

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
IPK File Format
« 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?
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
IPK File Format
« Reply #1 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
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
# 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

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
IPK File Format
« Reply #3 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.
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
IPK File Format
« Reply #4 on: July 02, 2004, 07:58:21 am »
Also, i'd love to get a copy of something that could compress in rar format.
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

tumnus

  • Hero Member
  • *****
  • Posts: 1176
    • View Profile
    • http://www.cpinkney.org.uk
IPK File Format
« Reply #5 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)
# 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

omega

  • Hero Member
  • *****
  • Posts: 626
    • View Profile
    • http://
IPK File Format
« Reply #6 on: July 02, 2004, 09:06:33 am »
Cool. Cheers tumnus.
Gorgeous C860, 256 Sandisk SD, 1Gig Pretec 40x CF, PDAIR leather case & the really cool retractable iPDA USB sync/charge cable. Powered by PDAXROM BETA 1.

My wish - to have a Command & Conquer style game on my Z! (FREECNC!!!) Simcity 2000 would also be great.

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
IPK File Format
« Reply #7 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
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