Skip to contentSkip to conversation

How to include RPM database into target image?

DISCUSSION Alex J Lennon 2 participants 3 messages Dec 29, 2012 – Jan 1, 2013

lore
Share & tools
lore
#0 lore raw

Presumably this is very obvious, apologies, but I can't track down the answer.

I'm building a distro based on Yocto for a Raspberry Pi but I don't seem to have the RPM database / sample feeds installed on the target image.

Having hunted around and googled I can't spot the environment variable or recipe I presumably need to set/include.

Can anybody advise?

Many Thanks,

Alex

#1 lore raw

Hi Alex,

Quoted 5 lines · On Saturday 29 December 2012 19:05:05 Alex J Lennon wrote:

I'm building a distro based on Yocto for a Raspberry Pi but I don't seem to have the RPM database / sample feeds installed on the target image.

Having hunted around and googled I can't spot the environment variable or recipe I presumably need to set/include.

You only need to ensure that "package-management" is present in IMAGE_FEATURES. You can do this from local.conf by adding the following to it:

EXTRA_IMAGE_FEATURES += "package-management"

This will ensure the package manager's database (RPM if you've selected RPM packaging) is preserved, but won't set up any sample feeds. The latter would need to be done manually or via ROOTFS_POSTPROCESS_COMMAND.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw

Hi Paul,

Quoted 2 lines

You only need to ensure that "package-management" is present in IMAGE_FEATURES. You can do this from local.conf by adding the following to it:

Many thanks - that seems to do the trick. And Happy New Year!

Regards,

Alex