Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 829
mozcelikors Avatar asked Oct 22 '17 20:10

mozcelikors


People also ask

How do I find my yocto package name?

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

What are packages in yocto?

The Yocto Project OpenEmbedded build system produces packages in standard formats (i.e. RPM, DEB, IPK, and TAR). You can deploy these packages into the running system on the target by using utilities on the target such as rpm or ipk .

What is manifest file in yocto?

manifest : This lists the recipe names, versions, licenses, and the files of packages that are available in build/tmp/deploy/image/<machine> but not installed inside rootfs . The most common examples are the bootloader, the Linux kernel image, and DTB files.


1 Answers

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
like image 93
David Bensoussan Avatar answered Sep 18 '22 16:09

David Bensoussan