PDA

View Full Version : [ubuntu] update-manager equivalent for command line usage



rsgrimes
July 30th, 2009, 08:24 PM
The update-manager is great for my desktop machine - really makes keeping the system up-to-date so easy. But I have a second Ubuntu machine set up as a server that to which I only have ssh access. What is the best equivalent command that I can run from a ssh shell?

Thanks,
-Bob

birdwin
July 30th, 2009, 09:14 PM
'sudo apt-get update'
'sudo apt-get upgrade'

is the easiest way (use 'apt-get dist-upgrade' instead to upgrade your kernel in between Ubuntu releases; 'apt-get upgrade' will keep the kernel upgrades back). 'sudo aptitude' provides more fine-grained control over upgrades, but isn't as easy.

slakkie
July 31st, 2009, 01:54 PM
For upgrading to a newer release you can use do-release-upgrade. You need to install update-manager-core package for that: sudo aptitude install update-manager-core

rsgrimes
August 4th, 2009, 09:41 PM
'sudo apt-get update'
'sudo apt-get upgrade'

So, the first command updates package status from the Sources, and the second upgrades locally installed packages, right?

Thanks!
-Bob