1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Raspberry pi 4】OSバージョン確認

Posted at

環境

(追記予定)

CLI接続方法

参考:Tera Termを利用してCLI接続する(追記予定)
参考:コマンドプロンプトでSSH接続する(追記予定)

ハードウェア情報の確認方法

Modelを確認する

model
admin@TKY-RP001:~ $ cat /proc/device-tree/model
Raspberry Pi 4 Model B Rev 1.4 admin@TKY-RP001:~ $
admin@TKY-RP001:~ $

*プロンプトの表記が改行されずに出てくるのはバグか仕様のようです。

CPU-infoを確認する

cpuinfo
admin@TKY-RP001:~ $ cat /proc/cpuinfo
processor       : 0
BogoMIPS        : 108.00
Features        : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant     : 0x0
CPU part        : 0xd08
CPU revision    : 3

processor       : 1
(中略)

processor       : 2
(中略)

processor       : 3
(中略)

Hardware        : BCM2835
Revision        : d03114
Serial          : 100000008a57c336
Model           : Raspberry Pi 4 Model B Rev 1.4
admin@TKY-RP001:~ $

OSバージョン情報の確認方法

debian_versionを利用する

debian_version利用
admin@TKY-RP001:~ $ cat /etc/debian_version
11.3

admin@TKY-RP001:

issueを利用する

issue利用
sit-admin@TKY-RP001:~ $ cat /etc/issue
Debian GNU/Linux 11 \n \l
admin@TKY-RP001:

lsb-releaseを利用する

lsb-releaseのInstall
admin@TKY-RP001:~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
Codename:       bullseye

admin@TKY-RP001:~ $

*lsb-releaseはパッケージインストールが必要です。
インストールされていない場合は下記コマンドでインストールしましょう。

lsb-releaseのInstall
admin@TKY-RP001:~ $ sudo apt-get install lsb-release
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
lsb-release is already the newest version (11.1.0).
lsb-release set to manually installed.
The following package was automatically installed and is no longer required:
  libfuse2
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

admin@TKY-RP001:

カーネルバージョンの確認方法

unameを利用する

uname
admin@TKY-RP001:~ $ uname -a
Linux TKY-RP001 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux

admin@TKY-RP001:~ $

hostnamectlを利用する

hostnamectl
admin@TKY-RP001:~ $ hostnamectl
   Static hostname: TKY-RP001
         Icon name: computer
        Machine ID: a467b64477be4c6cbc88916ec1a206a4
           Boot ID: 117f2b2f45d2445bb5ed65358ef347fc
  Operating System: Debian GNU/Linux 11 (bullseye)
            Kernel: Linux 5.15.32-v8+
      Architecture: arm64

admin@TKY-RP001:~ $
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?