How to install deb file in Yocto

How to install deb file in Yocto

How to install deb file in Yocto? 

I tried dpkg, but it showed "no such command".

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi,

I have an example I use in recipes so I create.

 

my_install_pkg_deb() {

${STAGING_BINDIR_NATIVE}/dpkg \

--root=${IMAGE_ROOTFS}/ --admindir=${IMAGE_ROOTFS}/var/lib/dpkg/  \

-i /path/to_packet/name.deb

}

ROOTFS_POSTPROCESS_COMMAND +=  " my_install_pkg_deb; "

 

 

 

You should use:

In .bb

IMAGE_FEATURES += " package-management"

In conf/local.conf

PACKAGE_CLASSES ?= "package_deb"

 

Gook luck!

 

Login to leave a comment.