Is there a way to check the exact list of packages that will be installed in the image in Yocto?

mozcelikors picture mozcelikors · Oct 22, 2017 · Viewed 13.8k times · Source

In Yocto-based Embedded Linux distributions, I am really interested in finding the complete list of packages/recipes/kernel modules from each dependent layers that will be built and installed to an image file before executing the image building recipe such as:

bitbake my-image-minimal

Is there a way to achieve this? Any guidance in this regard is appreciated.

Thanks in advance.

Answer

David Bensoussan picture David Bensoussan · Oct 22, 2017

Yes, like this On old Bitbake versions:

bitbake -g <image> && cat pn-depends.dot | grep -v -e '-native' \
    | grep -v digraph | grep -v -e '-image' | awk '{print $1}' | sort | uniq

Taken from the NXP Community website

On newer:

bitbake -g <image> && cat pn-buildlist | grep -ve "native" | sort | uniq