I'm trying to write a script to upgrade a bunch of remote machines and would like to verify that one package in particular is upgraded.
With yum, I could say yum upgrade specific-package, and it would complain if it fails to upgrade the package. With apt, as far as I know, I can only say apt-get upgrade, and if apt fails to find the new version or fails to resolve the dependencies for the new version, it will silently decide not to install it.
Is there any way to get apt-get to complain if it decides to not upgrade a package (short of scripting a call to dpkg --compare-versions)?
