Add a package to every image from local.conf with IMAGE_INSTALL:append
IMAGE_INSTALL:append in local.conf adds a package to every image you build, and it beats an image recipe's own assignment, on Scarthgap 5.0.
Putting IMAGE_INSTALL += "htop" in local.conf looks right and sometimes does nothing, because an image recipe that assigns with = later in parsing wipes it. The tip is to use the override form, which is applied at the end. This was written for Scarthgap 5.0 with BitBake 2.8.
IMAGE_INSTALL:append = " htop strace"Installing htop (3.3.0-r0) on root
Installing strace (6.8-r0) on rootThe leading space is required, because :append adds text with no separator, and without it the last package name fuses with htop. The setting reaches every image, which is wrong for a release build, so keep it in local.conf for development and use a packagegroup or an image recipe for what ships. For one image, IMAGE_INSTALL:append:pn-core-image-minimal scopes it. Versions shown are examples.