[plug] What's the best way to get kernel version from a binary?

Marcos Raúl Carot marcos.carot at gmail.com
Thu Nov 24 11:48:56 AWST 2016


cat /proc/version

On Thu, 24 Nov 2016, 11:36 Bill Kenworthy <billk at iinet.net.au> wrote:

> What's the best way to get kernel version from a binary?
>
> Context is that the raspberry pi stock firware doesn’t use version
> numbers in the filename and I want to know what kernel version I am
> building a custom initrd using dracut for a btrfs on root filesystem.
>
> Easy to get manually (strings|grep the file) but its clumsy and hard to
> get precision in a script and uname doesn’t work on a file :(
>
> BillK
> _______________________________________________
> PLUG discussion list: plug at plug.org.au
> http://lists.plug.org.au/mailman/listinfo/plug
> Committee e-mail: committee at plug.org.au
> PLUG Membership: http://www.plug.org.au/membership
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20161124/6d27abaa/attachment.html>


More information about the plug mailing list