18

Is raspbian for the Raspberry Pi 2 B 32 bit or a 64 bit OS? Just wondering because I am unable to find this information online.

16

It is a 32 bit OS, as all current Raspberry Pi hardware (except the new Raspberry Pi 3) uses 32 bit ARM CPUs.

The statement that the distinction between 32 bit and 64 bit is really only pertinent to x86 OS's is pure nonsense - as goldilocks points out there are both 32 and 64 bit ARM CPUs, and thus both 32 and 64 bit ARM OSes. Just like there are both 32 and 64 bit OSes for PowerPC, Sparc, MIPS and a number of less common ISAs.

  • 1
    @Bex, the question specifically asks about Raspbian for the Raspberry Pi 2 B, and that will always have to be a 32 bit OS as the Pi 2 used a 32 bit CPU. The Pi 3 using a 64 bit CPU is already mentioned in the answer. – Marcus May 29 '17 at 16:20
19

With following command, you can determine if your OS is 32 or 64 bit:

getconf LONG_BIT
  • 1
    Handy command. Answers the question perfectly. – SDsolar Nov 25 '17 at 22:33
  • 1
    Should be the accepted answer and nothing else... – GeertVc Jun 29 at 8:23
4

The distinction between 32 bit and 64 bit is really only pertinent to x86 OS's. I expect you are asking in regards to installing software, all software you use on the Pi must be compiled for the ARM processor (ARM 7). Having said that the ARM instructions are 32 bits. You can read more in this forum post

  • 2
    There's a 64-bit ARMv8; Apple and some other smartphones use it. But there are no raspberry pis in this category, yet... – goldilocks Aug 23 '15 at 18:19
  • 4
    And now, with the Pi 3, there is a 64-bit Pi. – armb Feb 29 '16 at 13:18
  • 1
    @armb give it a try " getconf LONG_BIT " ... it works fine :) – kris Dec 2 '17 at 15:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.