User Tools

Site Tools


update_raspbian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
update_raspbian [2016/09/14 09:08] – created walkeradminupdate_raspbian [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Update Raspbian ====== ====== Update Raspbian ======
-\\  
 \\  \\ 
 To upgrade and update Raspbian, enter the following from the command line: To upgrade and update Raspbian, enter the following from the command line:
Line 9: Line 8:
 \\  \\ 
 \\  \\ 
 +==== Update Firmware =====
 +\\ 
 +    sudo apt-get install rpi-update
 +\\ 
 +\\ 
 +===== Automatic Updates =====
 +\\ 
 +If you want to automate these procedures it can be done by configuring apt's Periodic options. The Raspberry Pi comes with apt installed (it provides the apt-get commands, etc.), and as part of that package an automated script is installed (in /etc/cron.daily/apt) for doing automated updates on a daily basis (using the cron daemon). These may be controlled by creating (as root) a file /etc/apt/apt.conf.d/10periodic putting the following into it:
 +\\ 
 +<file>
 +APT::Periodic::Update-Package-Lists "1";
 +APT::Periodic::Download-Upgradeable-Packages "0";
 +APT::Periodic::AutocleanInterval "0";
 +APT::Periodic::Unattended-Upgrade "0";
 +</file>
 +\\ 
 +This configuration will just run update every day for you so when you run sudo apt-get upgrade you'll install the latest packages (without having to first run apt-get update).
 +\\ 
 +\\ 
 +===== Automatic Upgrades =====
 +\\ 
 +To configure apt to automatically upgrade packages as well - firstly you'll need to install a new package to make the unattended upgrades work:
 +
 +<file>
 +sudo apt-get install unattended-upgrades
 +</file>
 +Then you change the following option to "1" in /etc/apt/apt.conf.d/10periodic to enable automated upgrades:
  
 +<file>
 +APT::Periodic::Unattended-Upgrade "1";
 +</file>
 +For more details see the comments inside the /etc/cron.daily/apt and then put the relevant options into the /etc/apt/apt.conf.d/10periodic file.
update_raspbian.1473840483.txt.gz · Last modified: 2023/03/09 22:35 (external edit)