Saturday, February 14, 2009

Command line updates to Ubuntu DEB packages

Ubuntu Desktop provides Synaptic which automatically informs you of the available updates, weekly/daily based on your choices (daily, every two days, weekly or every two weeks)
But, with the Ubuntu server distribution you do not have a GUI and what to do to check the available updates automatically?

Here are the commands.


sudo apt-get update


will update the meta-data of all the packages that are "known" i.e known to the package repositories added to your /etc/apt/sources.list

sudo apt-get upgrade

will download and install any updates that available to the currently installed packages.
However, this will need a user intervention that asks your approval to go ahead and install the packages
It is recommended you download and install the available fixes regularly to ensure your system is free of any know vulnerabilities.

No comments: