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

I have a script that executes apt-get update on several servers and I have to find out whether there are upgrades available or not in order to schedule apt-get upgrades etc...

Looking at the docs I don't see how I could do this task.

share|improve this question

You can use apt-get -s dist-upgrade and parse it's output. -s means simulation: no real actions will be done

share|improve this answer

On one of my Ubuntu servers I use a program called unattended-upgrades. It sends me an email every night with a list of available updates.

share|improve this answer

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.