[OE-core] [oe-core] How to query installed rpm packages

Paul Eggleton paul.eggleton at linux.intel.com
Mon May 28 16:23:55 UTC 2012


On Monday 28 May 2012 17:30:34 Giuseppe Condorelli wrote:
> Well, I added ROOTFS_POSTPROCESS_COMMAND += "list_installed_packages ; " in
> the image recipe I want to build.
> Build went right but I don't know where to find the output the
> list_installed_packages has provided.
> Any suggestion? Am I wrong?

All list_installed_packages does is print a list of the packages; if you just 
add it to ROOTFS_POSTPROCESS_COMMAND the output will be going into the log file 
for the image task which is probably not what you want. If you wanted to 
proceed with this I think you'd need to redirect the output to some file 
somewhere - this is easily done by instead calling your own shell function and 
then calling list_installed_packages > path/to/some_output_file.txt within it. 
However it sounds like buildhistory will do what you want here anyway.
 
Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre




More information about the Openembedded-core mailing list