How to check Your Raspberry Pi Model Information, Python Version and Debian Version

Raspberry Pi

Raspberry Pi

Raspberry Pi is a Single Board Computer popularly used for applications like Internet Of Things (IOT), Robotics and for other real time Image / Video processing. It is a low cost, credit card sized computer capable of performing everything you'd expect a Personal Computer to do.

The Raspberry Pi runs on Linux OS and comes with several models and iterations, each with differences that will affect the performance, features and the accessories you can use with the board. The official Programming language of the Raspberry Pi is PYTHON which comes preinstalled on Raspbian.

The following commands can be used to retrieve hardware and software information of the Raspberry Pi.

Raspberry Pi Model Information

Run the following command from the command line to retrieve your Pi model.

Option 1 :

pi@raspberrypi:~ $ cat /sys/firmware/devicetree/base/model

Output

Raspberry Pi 3 Model B Rev 1.2

Option 2:

pi@raspberrypi:~ $ cat /proc/device-tree/model

Output

Raspberry Pi 3 Model B Rev 1.2

Option 3:

pi@raspberrypi:~ $ cat /proc/cpuinfo

Output

Hardware : BCM2835
Revision : a02082
Serial   : 0000000036568aa8
Model    : Raspberry Pi 3 Model B Rev 1.2

Option 4:

pi@raspberrypi:~ $ pinout

Output

pinout diagrampinout diagram

Version of Python

Run the following command from the command line to retrieve current Python version.

Option 1:

pi@raspberrypi:~ $ python --version

Output

Python 2.7.16

Option 2:

pi@raspberrypi:~ $ python3 --version

Output

Python 3.7.3


Version of Debian

Run the following command from the command line to retrieve current Debian Version.

Option 1:

pi@raspberrypi:~ $ cat /etc/debian_version

Output

10.1

Option 2:

pi@raspberrypi:~ $ lsb_release -a

Output

No LSB modules are available
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10(buster)
Release:        10
Codename:       Buster

Post a Comment

0 Comments