Re: How to get packages version from an image recipe #yocto #linux


Nicolas Jeker
 

Hi Zakaria

On Thu, 2021-02-11 at 03:47 -0800, zakaria.zidouh@... wrote:
Hello,
 
I want to get the version of the packages generated by a recipe from
the image recipe (or by a python script that runs outside of the
package generating recipe). (like the output of the bitbake -s
command)
 
Do you have any ideas please? 
Probably the image manifest is what you are looking for?

From
https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#image-generation-dev-environment
:

The manifest file (.manifest) resides in the same directory as the root
filesystem image. This file lists out, line-by-line, the installed
packages.

The file contents look like this:

...
dropbear armv7at2hf-neon 2019.78-r0
dtc armv7at2hf-neon 1.6.0-r0
e2fsprogs armv7at2hf-neon 1.45.4-r0
...

Thank you

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.