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

混江龙づ霸主 提交于 2019-12-03 12:47:06

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

yes,

Yocto maintains packages information in a form of manifest file located in /tmp/deploy/images/<"machine_image">/<"image_name">.manifest.

You can find the list in the generated .manifest file. See IMAGE_MANIFEST

We've talked about this in the past and for various reasons, it is hard to know what packages would end up in the image, without going through the complete build process.

One of the best tools for seeing what is an an image is the buildhistory class. Add it to your user classes in local.conf. The output ends up in the build directory in the buildhistory directory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!