Skip to contentSkip to conversation

How to install .deb file in Yocto on Intel Galileo

DISCUSSION TonyZhao 3 participants 3 messages Jul 14, 2014

lore
Share & tools
lore

TonyZhao

author
#0 lore raw

I want to install .deb file in Yocto. It's based on Intel Galileo, started from SD card. I tried dpkg -i <package>, but it said no such command.
Do I miss something or use the wrong command?
Thanks.

#1 lore raw
Quoted 1 line · TonyZhao

I tried dpkg -i <package>, but it said no such command.

You probably meant to use opkg.

Ross

#2 lore raw
In reply to TonyZhao

Hi,
do you want to install the .deb package during the bitbake build or in the running system?

During the bitbake build you can use something like the following in your image recipe.

install_my_deb() {                                                              
	${STAGING_BINDIR_NATIVE}/dpkg --root=${IMAGE_ROOTFS}/ --admindir=${IMAGE_ROOTFS}/var/lib/dpkg/ -i /path/to/package.deb
}                                                                               

ROOTFS_POSTPROCESS_COMMAND += "install_my_deb; "

If you like to install it in the running system make sure dpkg is installed (try "dpkg --version"). If not: check PACKAGE_CLASSES variable. (Is package_deb set?)

hope this helps.

regards,
richard l.

Quoted 4 lines · On Mon, 14 Jul 2014 15:55:18 +0800 TonyZhao <[email protected]> wrote:

I want to install .deb file in Yocto. It's based on Intel Galileo, started from SD card. I tried dpkg -i <package>, but it said no such command.
Do I miss something or use the wrong command?
Thanks.