Save this update script in your homedir to easily maintain and cleanup your Ubuntu packages using apt-get. The process is wrapped in a screen session so it continues and can still be accessed when your connection is dropped.
update -y to skip all prompts.
Update 27 january 2016:
– Wrap process in screen session
Update 7 october 2014:
– Added &&’s to only continue if the previous command succeeded