1
1

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稼働環境を最新に保つ

Last updated at Posted at 2020-12-25

概要

Raspberry Piの稼働環境を常に最新状態に保つため、必要なコマンドをまとめておきます。

Raspberry Pi OSをアップデート

  1. Raspbian OS/Raspberry Pi OSのバージョンを確認します。

    cat /etc/debian_version
    
    9.13
    
    cat /etc/issue
    
    Raspbian GNU/Linux 9 \n \l
    
    cat /etc/os-release
    
    PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="9"
    VERSION="9 (stretch)"
    VERSION_CODENAME=stretch
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
    
    lsb_release -a
    
    No LSB modules are available.
    Distributor ID: Raspbian
    Description:    Raspbian GNU/Linux 9.13 (stretch)
    Release:        9.13
    Codename:       stretch
    
  2. Raspbian OS/Raspberry Pi OSを最新版に更新します。

    sudo apt update
    sudo apt upgrade
    sudo apt autoremove
    
    sudo vi /etc/apt/sources.list
    
    #deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
    deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
    
    sudo apt update
    sudo apt dist-upgrade
    
  3. Raspbian OS/Raspberry Pi OSのバージョンを確認します。

    cat /etc/debian_version
    
    10.7
    
    cat /etc/issue
    
    Raspbian GNU/Linux 10 \n \l
    
    cat /etc/os-release
    
    PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="10"
    VERSION="10 (buster)"
    VERSION_CODENAME=buster
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
    
    lsb_release -a
    
    No LSB modules are available.
    Distributor ID: Raspbian
    Description:    Raspbian GNU/Linux 10 (buster)
    Release:        10
    Codename:       buster
    
  • 参考

    バージョンとコードネームの一覧はこちらを参照してください。
    Debian のリリース

ファームウェアをアップデート

  1. ファームウェアのバージョンを確認します。

    vcgencmd version
    
    Nov 30 2020 22:14:49 
    Copyright (c) 2012 Broadcom
    version ab1181cc0cb6df52bfae3b1d3fef0ce7c325166c (clean) (release) (start_x)
    
  2. ファームウェアをアップデートします。

    sudo rpi-update
    
  3. アップデート完了後、リブートします。

    sudo reboot
    
  4. ファームウェアのバージョンを確認します。

    vcgencmd version
    
    Dec 15 2020 18:35:32 
    Copyright (c) 2012 Broadcom
    version 4b4aff21f72c5b9ba39d83c7b0f8fa910a6ef99b (clean) (release) (start_x)
    
1
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?