[oe] opkg vs dpkg/rpm

Graham Gower graham.gower at gmail.com
Wed Sep 1 22:35:57 UTC 2010


On 2 September 2010 04:55, Denys Dmytriyenko <denis at denix.org> wrote:
> On Wed, Sep 01, 2010 at 07:43:38AM -0700, Chris Larson wrote:
>> In addition to package writing, there's the IMAGE_PKGTYPE varaible which
>> controls which of the rootfs_<pkgtype> bbclasses is used to construct the
>> root filesystem.  You can inherit multiple packaging formats, resulting in
>> multiple formats being emitted, but one has to be selected specifically for
>> the filesystem.  If you only inherit one packaging class (i.e. package_ipk)
>> it will automatically set the image packaging type to match.  So, to switch:
>>
>> 1) INHERIT += "package_rpm"
>> 2) IMAGE_PKGTYPE = "rpm"
>
> Just a small clarification for Chris' excelent explanation - the change of the
> above variables will require a complete rebuild/repackage of all the packages
> and the filesystem image. And it's not possible to make the switch for an
> existing image or add another package manager to an existing image w/o losing
> the database of installed packages...
>
> --
> Denys

It would be trivial to write a script to convert the package database
from one package manager's format to another. Surely someone has
already done this?

-Graham




More information about the Openembedded-devel mailing list