Raspberry Pi

How to find out the version of the Raspberry Pi operating system

The software and hardware details of the Raspberry Pi boards can be checked from the terminal of the Raspberry Pi OS. On a daily basis, new releases of the software are being launched in order to confirm which version of the Raspberry Pi operating system we are using, we can use some commands. In this article, some important commands are explained to check the versions of software and hardware of the Raspberry Pi.

How to find out the version of the Raspberry Pi operating system

The Raspberry Pi operating system is a Debian-based operating system that is mostly used in the Raspberry Pi boards. It was previously known as the Raspbian and then Raspberry Pi OS. The new release of the Raspberry Pi operating system is the Bullseye version, to confirm the version of the operating system installed on the Raspberry Pi, execute the command:

$ cat /etc/debian_version

The installed version of the Raspberry Pi is 11.2, similarly, to find out the notes about the release of the operating system, use the command:

$ cat /etc/os-release

In the above command, the details of the installed operating system are displayed with its “Name”, “Version”, and the “ID”.

How to check the version of the Kernel of the Raspberry Pi

The Kernel is one of the basic components of the operating system as it is responsible for the communication between the operating system and the hardware, so to find out the version of the Kernel in the Raspberry Pi operating system, we will run the command:

$ uname -a

How to find out the information about the CPU of Raspberry Pi

To find out the information about the CPU of the Raspberry Pi, we will display the /proc/cpuinfo using the command:

$ cat /proc/cpuinfo

In the above output, the details about each processor of the Raspberry Pi 4 is listed including its model, hardware, and serial id.

How to confirm whether we are using 32 bit or 64 bit Raspberry Pi

In order to confirm the architecture of the Raspberry Pi, we will use the “uname” command with the “m” flag, if the output is “arm71l” it means it is a 32-bit architecture and if its output is “armv8” then it will have a 64-bit architecture. To know the architecture of our device, execute the command:

$ uname -m

The “arm7l” in the output is confirming the 32-bit architecture of the Raspberry Pi.

Conclusion

The version details of the operating system or the hardware tell the users whether they are using the updated tools and software or not. The Raspberry Pi OS is an operating system that is mostly installed in the Raspberry Pi boards. In this write-up, we have discussed different commands to check the versions of the Raspberry Pi operating system as well as its hardware.

About the author

Hammad Zahid

I'm an Engineering graduate and my passion for IT has brought me to Linux. Now here I'm learning and sharing my knowledge with the world.