How to Check if Raspberry Pi Operating System is 32-bit or 64-bit
IoT

How to Check if Raspberry Pi Operating System is 32-bit or 64-bit

2024-01-24 · 2 分鐘 · Ray Lee (System Analyst)

To determine whether your Raspberry Pi is running a 32-bit or 64-bit operating system, you can use various methods. Here are some steps:

1. Using the Command Line (Terminal):

Open the Terminal and enter the following command:

uname -m

If it displays armv7l, it’s a 32-bit system; if it shows aarch64, it’s a 64-bit system.

2. View the contents of the /proc/cpuinfo file by entering the following command:

cat /proc/cpuinfo

Look for the model name or Features section. If it includes aarch64, it’s a 64-bit system.

How to Check if Raspberry Pi Operating System is 32-bit or 64-bit

3. Using the lscpu Tool:

Install the lscpu tool (if not already installed) and run:

sudo apt-get install lscpu
lscpu

Check the “Architecture” field in the output. If it shows aarch64, it’s a 64-bit system.

4. Using the dpkg Tool:

dpkg --print-architecture

If it shows armhf, it’s a 32-bit system; if it shows arm64, it’s a 64-bit system.

Choose any of these methods to determine whether your Raspberry Pi’s operating system is 32-bit or 64-bit.

English Version

To determine whether your Raspberry Pi is running a 32-bit or 64-bit operating system, you can use various methods. Here are some steps:

1. Using the Command Line (Terminal):

Open the Terminal and enter the following command:

uname -m

If it displays armv7l, it’s a 32-bit system; if it shows aarch64, it’s a 64-bit system.

2. View the contents of the /proc/cpuinfo file by entering the following command:

cat /proc/cpuinfo

Look for the model name or Features section. If it includes aarch64, it’s a 64-bit system.

How to Check if Raspberry Pi Operating System is 32-bit or 64-bit

3. Using the lscpu Tool:

Install the lscpu tool (if not already installed) and run:

sudo apt-get install lscpu
lscpu

Check the “Architecture” field in the output. If it shows aarch64, it’s a 64-bit system.

4. Using the dpkg Tool:

dpkg --print-architecture

If it shows armhf, it’s a 32-bit system; if it shows arm64, it’s a 64-bit system.

Choose any of these methods to determine whether your Raspberry Pi’s operating system is 32-bit or 64-bit.

日本語版

Raspberry Piのオペレーティングシステムが32ビットか64ビットかを判別するには、さまざまな方法があります。以下に手順を示します:

1. コマンドライン(ターミナル)を使用する方法:

ターミナルを開き、以下のコマンドを入力します:

uname -m

armv7lと表示された場合は32ビットシステム、aarch64と表示された場合は64ビットシステムです。

2. 以下のコマンドを入力して/proc/cpuinfoファイルの内容を確認します:

cat /proc/cpuinfo

model nameまたはFeaturesセクションを確認します。aarch64が含まれている場合は64ビットシステムです。

How to Check if Raspberry Pi Operating System is 32-bit or 64-bit

3. lscpuツールを使用する方法:

lscpuツールをインストールし(まだインストールされていない場合)、実行します:

sudo apt-get install lscpu
lscpu

出力の「Architecture」フィールドを確認します。aarch64と表示されている場合は64ビットシステムです。

4. dpkgツールを使用する方法:

dpkg --print-architecture

armhfと表示された場合は32ビットシステム、arm64と表示された場合は64ビットシステムです。

これらの方法のいずれかを選んで、Raspberry Piのオペレーティングシステムが32ビットか64ビットかを判別してください。

Ray Lee (System Analyst)
作者 Ray Lee (System Analyst)

iDempeire ERP Contributor, 經濟部中小企業處財務管理顧問 李寶瑞