Is there a sort of update tool for my Raspbian Debian 7 (Wheezy) package?
lighttpd, and I want to keep those automatically updated for when bugs are found.
You need to enter some commands into the command line. First of all:
(this will update the sources of software)
(this will upgrade everything to the latest version)
Basically you have to install the package:
and add to
Additionally (since it seems like the porting of the package has not been flawless), change the following line at the first section of
Now your system keeps itself up-to-date automatically.
Rpi-update first time: install git and certifications for reach github.
rpi-update can now be fetched directly via apt-get, so there would be no need to deal with Wget. So here is now the updated way:
You need to reboot the Raspberry Pi now, otherwise the new kernel would not be used!
You could also write a little script with your apt-get steps in there and run it on a schedule once a day / however often you like, that's what I've done.
How to set up a cron job on the Pi:
How to write a bash script:
My script was just a simple
and I had it logging the output to a file with
It's debatable as to how good an idea it is to do this though!
The Art of Web site has a wonderfull guide for Debian Wheezy that I only had to modify one line for it to work on my testing RPi. The link will take you to thier guide on
Default configuration, actions, and custom configs can be found with
Append the following to
Logging is dumped to :
Make new action file for updating only security related packeges with touch command and add one line with sudo tee command; others will be downloaded but wait for sys-admin to install non-security updates. Allerts of updates and output will be emailed to root user or sys-admin for further review and/or actions to be taken.
Make new configuration file to use above action; spicifficly using
Wait a day for
This has been tested on one RPi to work for updating every package as well as an Unbuntu PC that only updates security related packages. So I feel that it is one of the more portable options availabe. The other package for automated updates, suggested by grassroot (thank you, I'm going to test it next),