[yocto] Finding/Generating Rootfs Package List

Gary Thomas gary at mlbassoc.com
Thu Apr 25 07:52:46 PDT 2013


On 2013-04-25 08:49, Gary Thomas wrote:
> On 2013-04-25 08:25, Burton, Ross wrote:
>> Hi Jon,
>>
>> On 25 April 2013 15:10, Jon Szymaniak <jon.szymaniak at gmail.com> wrote:
>>> In my current situation, I have a small read-only image where I can't afford
>>> to ship pkg data, and wanted to gather this info on the host side of things.
>>> I assume this information is tracked somewhere in the poky build directory,
>>> but I'm having some trouble finding it.
>>>
>>> Could someone kindly point me towards this information or the documentation
>>> section(s) that I may have overlooked.
>>
>> In tmp/work/[machine]/[image]/[version]/ you'll find
>> installed-pkgs.txt and complementary-pkgs.txt, which should be exactly
>> what you want.
>
> True, but the installed-pkgs.txt file only contains the names, not the
> version information (at least with opkg).  I suppose you could write a
> script to use this file as a starting point, then look through the packages,
> e.g. tmp/deploy/ipk/*, to find the actual version used.
>

These commands did the trick on my RaspberryPi (opkg) based image:
   $ find tmp/deploy/ipk -type f | sed -e 's;tmp/deploy/ipk/.*/;;' | sort >PKGS
   $ awk '{print $1}' <tmp/work/rpi-amltd-linux-gnueabi/rpiface-controller/1.0-r0/installed_pkgs.txt  | sort | xargs -n1 -I \{} grep \{}_ PKGS | sort | uniq >INSTALLED

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



More information about the yocto mailing list