Page 1 of 1

Simple. [What Linux version is on my card]

Posted: Sun Jun 21, 2015 7:03 pm
by pascalbythree
Does anybody know the raspbian linux command to see what date of the image written on the flash card. So i can see what date/version of linux is currently running on the RPI device.

http://downloads.raspberrypi.org/raspbian/images/

Can sombody please help simple?


Greets,

Wouter van Wegen
woutervanwegen@mijnplinq.nl

Re: Simple.

Posted: Sun Jun 21, 2015 7:24 pm
by FTrevorGowen
pascalbythree wrote:Does anybody know the raspbian linux command to see what date of the image written on the flash card. So i can see what date/version of linux is currently running on the RPI device.
http://downloads.raspberrypi.org/raspbian/images/
Can sombody please help simple?
Greets,
Wouter van Wegen
woutervanwegen@mijnplinq.nl
The "date of the image written on the flash card" does not really provide enough (appropriate) information (since, in general, O.S. updates/upgrades may have been performed since the image was written). A good starting point, however, is the output of

Code: Select all

uname -a
As an example of that here is what one of my B+'s (which hasn't been updated for quite some time) is running:

Code: Select all

pi@raspibplus16Gb ~ $ uname -a
Linux raspibplus16Gb 3.12.35+ #730 PREEMPT Fri Dec 19 18:31:24 GMT 2014 armv6l GNU/Linux
ie. quite a old version from December 2014 and also using the 3.12 kernel.
I've also edited your post title to be more meaningful.
Trev.

Re: Simple. [What Linux version is on my card]

Posted: Mon Jun 22, 2015 6:51 am
by ghans

Code: Select all

cat /boot/issue.txt
lsb_release -a
might also be useful.

ghans

Re: Simple. [What Linux version is on my card]

Posted: Mon Jun 22, 2015 11:16 am
by DougieLawson
cd /boot
ls -la *.img

Re: Simple. [What Linux version is on my card]

Posted: Mon Jun 22, 2015 2:23 pm
by allfox

Code: Select all

cat /etc/debian_version
More numbers telling the Debian version.

Code: Select all

FIRMWARE_HASH=$(zgrep "* firmware as of" /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz | head -1 | awk '{ print $5 }')
KERNEL_HASH=$(wget https://raw.github.com/raspberrypi/firmware/$FIRMWARE_HASH/extra/git_hash -O -)
echo $KERNEL_HASH
If you want a specific version, I mean EXACTLY THAT version, these numbers could help.
Referenced from viewtopic.php?f=66&t=57401