package

extracting and creating ipk files


ipk packages are the intallation packages used by opkg.

I'm trying to extract the contents of one of them and also create my own ipk.

I've read that I should be able to untar them but that is not true.

I've tried:

tar -zxvf mypack.ipk

and I get:

zip: stdin: not in gzip format

I've also tried:

tar -xvf mypack.ipk

and I get:

tar: This does not look like a tar archive

I've found that most of the information on the internet regarding ipk's are inaccurate.

My ipk was generated by bitbake. I'm having a hard time with bitbake and want to avoid using it.

Any ideas on how to extract and how to create ipk files? A simple template with a single package would be useful to have.


Solution

  • I figured it out.

    You can extract the main package with the ar x command, then extract the control.tar.gz with the tar -zxf command.