Getting Started with Raspberry Pi: How to Update Your Raspberry Pi

Getting Started with Raspberry Pi: How to Update Your Raspberry Pi

In our seventh guide on getting started with Raspberry Pi, we learn how to patch the Raspberry Pi.

— Anderson Silva

Like tablets, phones, and laptops, you need to update your Raspberry Pi. The latest enhancements not only help your Pi run smoothly but also make it more secure, especially if you are connected to a network. Our seventh guide on getting started with Raspberry Pi will share two tips on keeping your Pi running well.

Updating Raspbian

Updating Raspbian involves two steps[1]:

1. Type in the terminal:

sudo apt-get update

.

The sudo command allows you to run apt-get update as an administrator (i.e., root). Note that apt-get update does not install anything new on the system but updates the list of packages and dependencies that need to be updated.

2. Then type:

sudo apt-get dist-upgrade

.

According to the documentation: “Generally, performing this operation regularly will keep your installation up to date, as it will be equivalent to the latest image released on raspberrypi.org/downloads[2].”

Getting Started with Raspberry Pi: How to Update Your Raspberry Pi

Be Cautious with rpi-update

Raspbian comes with another update tool called rpi-update[3]. This program can be used to upgrade the Pi to the latest firmware, regardless of whether that firmware has issues or bugs. You may find information on how to use it, but it is recommended that you never use this program unless you have a very good reason to do so.

In short: Keep your system updated!

via: https://opensource.com/article/19/3/how-raspberry-pi-update

Author: Anderson Silva[5] Topic: lujun9972 Translator: geekpi Proofreader: wxy

This article is originally translated by LCTT and proudly presented by Linux China

Getting Started with Raspberry Pi: How to Update Your Raspberry Pi

Leave a Comment

×