Does the build system include the bin/targets/xxxxx/xxxxx/xxxxxxx.manifest
in the IMAGE
that it creates? Or, an option to include it?
I'd say use opkg
opkg list-installed
opkg info dnsmasq # for more details on a specific package
1 Like
Is there a file that info is kept in? I'm trying to reference this info during init.
cat $(find /usr/ | grep dnsmasq | grep control)
1 Like
cat $(find /usr/ | grep dnsmasq | grep control ) > /tmp/vercontol && grep "Version" /tmp/vercontol
This is what I finally came up with. Please correct me in a better way to do it if there is one.
Version: 2.81-3
is the output.
Is there any way to include the .manifest file in the image? Or is it in the image anywhere?
Ah ha.. And this is the Lightbulb moment..
maybe something like:
grep Version /usr/lib/opkg/info/dnsmasq.control | cut -d ' '
-f 2
1 Like
or
fgrep -r 'Version:' $(find /usr/ | grep '.control$') | sed 's:/usr/lib/opkg/info/::' | sed 's/.control//' | sed 's/:Version:/ - /' | sort
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.