This guide will show you how to update Ubuntu from the command line, this is critical for keeping your Ubuntu server up to date with the latest security patches.
Using the popular Ubuntu command “apt-get” to resync the apt sources and upgrade Ubuntu, other commands such as aptitude or GUI tools could be used as an alternative.
To resync the apt sources:
sudo apt-get update
To upgrade all packages on Ubuntu to the latest version run:
sudo apt-get upgrade
This will update the package if it’s installed or install it from the apt repository if not:
sudo apt-get install PACKAGENAME
Note than an alternative to using apt-get would be aptitude or a GUI tool if you are on a desktop.

February 17th, 2012
KJS
Posted in
Tags: