问题描述
ipk软件包是opkg使用的安装软件包.
ipk packages are the intallation packages used by opkg.
我正在尝试提取其中之一的内容,并创建自己的ipk.
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.
我尝试过:
tar -zxvf mypack.ipk
我得到:
zip: stdin: not in gzip format
我也尝试过:
tar -xvf mypack.ipk
我得到:
tar: This does not look like a tar archive
我发现互联网上有关ipk的大多数信息都不准确.
I've found that most of the information on the internet regarding ipk's are inaccurate.
我的ipk是通过bitbake生成的.我在使用bitbake时遇到了麻烦,想避免使用它.
My ipk was generated by bitbake. I'm having a hard time with bitbake and want to avoid using it.
关于如何提取和如何创建ipk文件的任何想法?具有单个包装的简单模板将很有用.
Any ideas on how to extract and how to create ipk files? A simple template with a single package would be useful to have.
推荐答案
我知道了.
您可以使用ar x
命令提取主程序包,然后使用tar -zxf
命令提取control.tar.gz.
You can extract the main package with the ar x
command, then extract the control.tar.gz with the tar -zxf
command.
这篇关于提取并创建ipk文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!