pascalbythree
Posts: 14
Joined: Sun Feb 15, 2015 2:09 pm

Simple. [What Linux version is on my card]

Sun Jun 21, 2015 7:03 pm

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

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5618
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Simple.

Sun Jun 21, 2015 7:24 pm

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.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

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

Mon Jun 22, 2015 6:51 am

Code: Select all

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

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

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

Mon Jun 22, 2015 11:16 am

cd /boot
ls -la *.img
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

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

Mon Jun 22, 2015 2:23 pm

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

Return to “General discussion”