Difference between revisions of "CR48-ForceUpdate"

From eLinux.org
Jump to: navigation, search
(Forcing a Software Update)
(Forcing a Software Update)
Line 16: Line 16:
 
This command should be entered all on one line.
 
This command should be entered all on one line.
 
<br><br><code>
 
<br><br><code>
while true; do update_engine_client -check_for_update; update_engine_client -update; pause 5; done
+
while true; do update_engine_client -check_for_update; update_engine_client -update; sleep 5; done
 
</code>
 
</code>
 
<br><br><br>[[CR48|Back to CR48 Home]]
 
<br><br><br>[[CR48|Back to CR48 Home]]

Revision as of 22:52, 4 February 2011

Forcing a Software Update

Because Google does not prompt all machines to upgrade at once, sometimes your machine may not be on the latest release. If you know that an update is available, and have a reason to upgrade, here are the steps.
NOTE: You will need to be rooted for this procedure.

Stop the normal background update engine process.
It runs at a very low priority by default meaning updates can take a long time

sudo su
initctl stop update-engine


Start the update-engine process running in the foreground and with errors reported to the shell. The & gives us our shell back.

update_engine -foreground -logtostderr &

The following Code runs the upgrade check in a constant loop till Google's servers offer us the update. Once that starts, we can end this process with CTRL+C
This command should be entered all on one line.

while true; do update_engine_client -check_for_update; update_engine_client -update; sleep 5; done


Back to CR48 Home