From: Gary Thomas <gary@mlbassoc.com>
To: yocto@yoctoproject.org
Subject: Re: Finding/Generating Rootfs Package List
Date: Thu, 25 Apr 2013 08:52:46 -0600 [thread overview]
Message-ID: <5179433E.8040102@mlbassoc.com> (raw)
In-Reply-To: <51794282.90801@mlbassoc.com>
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@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
------------------------------------------------------------
next prev parent reply other threads:[~2013-04-25 14:52 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-25 14:10 Finding/Generating Rootfs Package List Jon Szymaniak
2013-04-25 14:25 ` Burton, Ross
2013-04-25 14:49 ` Gary Thomas
2013-04-25 14:52 ` Gary Thomas [this message]
2013-04-29 13:23 ` Paul Eggleton
2013-04-25 14:27 ` Martin Jansa
2013-04-25 15:24 ` Jon Szymaniak
2013-04-25 22:32 ` Mark Hatle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5179433E.8040102@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.