Is there a way to use
apt to apply a pending upgrade to a package, but do nothing if it's not installed?
I have many Debian systems, all with different sets of packages, and I want to apply specific patches as they become available. I'd like to run the same command across all my systems but without installing missing packages. Ordinarily I would use
apt-get install package to do the upgrade, but this will install it where it's not already there.
I could work around this with something along the lines of
(dpkg -l package | grep '^ii') && apt-get install package
but is there a better way?