Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Which command should I use to download security uodates for Ubuntu Hardy?

Ideally would like the command to also create a log file listing files downloaded, install and any errors.

Thanks for help.

share|improve this question
up vote 0 down vote accepted

A good start:

$ apt-get update
$ apt-get upgrade

And check /var/log/dpkg.log and /var/log/apt/term.log

share|improve this answer
@rkthkr. I thought apt-get upgrade will upgrade a package to the newsest version, which I do not want. I only want to update and install security updates for a package. Can you please clarify? Thanks. – April Apr 26 '10 at 10:55
Yes it will be a newer package, but the upstream version will be the same, no new features added only security fixes (sometimes there are a new version if the fix is not backportable or the upgrade is safe.) – rkthkr Apr 26 '10 at 11:08
Excellent. Thanks for help – April Apr 26 '10 at 11:40
For someone not familiar with it: The reason you get the same upstream version is the policy of the distribution maintainers and not a technical one. The maintainers of Ubuntu try to give you a stable (not requiring configuration changes or changed user experience while the distribution version stays the same) and secure (most recent security patches: maybe they even backport fixes if upstream has advanced their software in the meantime) platform over the maintenance timeframe. In extreme cases (ClamAV) they would also switch to a new upstream version if security/functionality requires it. – Paul Apr 26 '10 at 12:03
Thanks Paul for clarifying... +1 – rkthkr Apr 26 '10 at 12:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.