* Finding/Generating Rootfs Package List
@ 2013-04-25 14:10 Jon Szymaniak
2013-04-25 14:25 ` Burton, Ross
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Jon Szymaniak @ 2013-04-25 14:10 UTC (permalink / raw)
To: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 658 bytes --]
Hi all,
I generally like to keep a little manifest file with my rootfs images,
containing a list of installed packages and their associated versions. On
images where I keep package data around, I usually generate this via 'opkg
list'.
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.
Thank you!
Jon
[-- Attachment #2: Type: text/html, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Finding/Generating Rootfs Package List
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-29 13:23 ` Paul Eggleton
2013-04-25 14:27 ` Martin Jansa
2013-04-25 22:32 ` Mark Hatle
2 siblings, 2 replies; 8+ messages in thread
From: Burton, Ross @ 2013-04-25 14:25 UTC (permalink / raw)
To: Jon Szymaniak; +Cc: yocto@yoctoproject.org
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.
Ross
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Finding/Generating Rootfs Package List
2013-04-25 14:10 Finding/Generating Rootfs Package List Jon Szymaniak
2013-04-25 14:25 ` Burton, Ross
@ 2013-04-25 14:27 ` Martin Jansa
2013-04-25 15:24 ` Jon Szymaniak
2013-04-25 22:32 ` Mark Hatle
2 siblings, 1 reply; 8+ messages in thread
From: Martin Jansa @ 2013-04-25 14:27 UTC (permalink / raw)
To: Jon Szymaniak; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 837 bytes --]
On Thu, Apr 25, 2013 at 10:10:31AM -0400, Jon Szymaniak wrote:
> Hi all,
>
> I generally like to keep a little manifest file with my rootfs images,
> containing a list of installed packages and their associated versions. On
> images where I keep package data around, I usually generate this via 'opkg
> list'.
>
> 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.
buildhistory is what you're looking for
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Finding/Generating Rootfs Package List
2013-04-25 14:25 ` Burton, Ross
@ 2013-04-25 14:49 ` Gary Thomas
2013-04-25 14:52 ` Gary Thomas
2013-04-29 13:23 ` Paul Eggleton
1 sibling, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2013-04-25 14:49 UTC (permalink / raw)
To: yocto
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.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Finding/Generating Rootfs Package List
2013-04-25 14:49 ` Gary Thomas
@ 2013-04-25 14:52 ` Gary Thomas
0 siblings, 0 replies; 8+ messages in thread
From: Gary Thomas @ 2013-04-25 14:52 UTC (permalink / raw)
To: yocto
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
------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Finding/Generating Rootfs Package List
2013-04-25 14:27 ` Martin Jansa
@ 2013-04-25 15:24 ` Jon Szymaniak
0 siblings, 0 replies; 8+ messages in thread
From: Jon Szymaniak @ 2013-04-25 15:24 UTC (permalink / raw)
To: Martin Jansa, ross.burton; +Cc: yocto@yoctoproject.org
[-- Attachment #1: Type: text/plain, Size: 1703 bytes --]
Ross and Martin -- thanks for your quick responses.
I failed to mention that I wanted both the ${PV} and ${PR} for packages, so
unfortunately the *-pkgs.txt files won't suffice.
Is there a particular reason why these files don't contain this
information? I haven't looked into where these are generated, but would
including ${PV} and ${PR} in these be a welcome patch?
Looking at the buildhistory wiki page [1], I see this certainly provides
what I need, and a whole lot more.
[1] https://wiki.yoctoproject.org/wiki/Buildhistory
Thanks again,
Jon
On Thu, Apr 25, 2013 at 10:27 AM, Martin Jansa <martin.jansa@gmail.com>wrote:
> On Thu, Apr 25, 2013 at 10:10:31AM -0400, Jon Szymaniak wrote:
> > Hi all,
> >
> > I generally like to keep a little manifest file with my rootfs images,
> > containing a list of installed packages and their associated versions.
> On
> > images where I keep package data around, I usually generate this via
> 'opkg
> > list'.
> >
> > 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.
>
> buildhistory is what you're looking for
>
> --
> Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
>
--
--
Jon Szymaniak <jon.szymaniak+gpg@gmail.com>
OpenPGP Key Hosted at the following keyservers:
http://keyserver.ubuntu.com/
http://pgp.mit.edu/
[-- Attachment #2: Type: text/html, Size: 2784 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Finding/Generating Rootfs Package List
2013-04-25 14:10 Finding/Generating Rootfs Package List Jon Szymaniak
2013-04-25 14:25 ` Burton, Ross
2013-04-25 14:27 ` Martin Jansa
@ 2013-04-25 22:32 ` Mark Hatle
2 siblings, 0 replies; 8+ messages in thread
From: Mark Hatle @ 2013-04-25 22:32 UTC (permalink / raw)
To: yocto
You can use the license manifest to give you this information. See:
build/tmp/deploy/licenses/<image>-<machine>-<timedate>/...
There is a license.manifest and package.manifest. The license.manifest includes
package version.
--Mark
On 4/25/13 9:10 AM, Jon Szymaniak wrote:
> Hi all,
>
> I generally like to keep a little manifest file with my rootfs images,
> containing a list of installed packages and their associated versions. On
> images where I keep package data around, I usually generate this via 'opkg list'.
>
> 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.
>
> Thank you!
> Jon
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Finding/Generating Rootfs Package List
2013-04-25 14:25 ` Burton, Ross
2013-04-25 14:49 ` Gary Thomas
@ 2013-04-29 13:23 ` Paul Eggleton
1 sibling, 0 replies; 8+ messages in thread
From: Paul Eggleton @ 2013-04-29 13:23 UTC (permalink / raw)
To: yocto; +Cc: Jon Szymaniak
On Thursday 25 April 2013 15:25:10 Burton, Ross wrote:
> 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.
I would advise against using installed-pkgs.txt and complementary-pkgs.txt for
anything; the former only includes the list of packages before complementary
and locale package installation and is internal so it might go away at some
point if the implementation changes.
Martin already mentioned buildhistory, that's the best choice for getting this
information (or programmatically you can use the same method it does for
collecting the information, i.e. calling list_installed_packages from a
function added to ROOTFS_POSTPROCESS_COMMAND, if you prefer).
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-04-29 13:23 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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.