Extract the list of packages into a Yocto image
From KoanSoftware Wiki
Extract the list of packages into an image of Yocto Project / Openembedded
The old way
bitbake -g <image> && cat pn-depends.dot | grep -v -e '-native' | grep -v digraph | grep -v -e '-image' | awk '{print $1}' | sort | uniq
Or the newer way
bitbake -g <image> && cat pn-buildlist | grep -ve "native" | sort | uniq