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.

link|improve this question

14% accept rate
feedback

2 Answers

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

link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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