apt-get manpage section for simulating and update/install:
Code: Select all
-s, --simulate, --just-print, --dry-run, --recon, --no-act
No action; perform a simulation of events that would occur but do not actually change the
system. Configuration Item: APT::Get::Simulate.
Code: Select all
$ apt-get -s upgrade | grep "Inst "
Code: Select all
Inst debconf [1.5.53] (1.5.55 Debian:unstable [all])
Inst libuuid1 [2.25.2-3] (2.25.2-4 Debian:unstable [amd64])
Inst libblkid1 [2.25.2-3] (2.25.2-4 Debian:unstable [amd64])
Inst libmount1 [2.25.2-3] (2.25.2-4 Debian:unstable [amd64])
Inst libpcre3-dev [1:8.35-3.2] (2:8.35-3.3 Debian:unstable [amd64]) []
...
Code: Select all
$ apt-get -s upgrade | grep "Inst " | sort -f
Code: Select all
Inst apt-utils [1.0.9.3] (1.0.9.4 Debian:unstable [amd64])
Inst autopoint [0.19.3-1] (0.19.3-2 Debian:unstable [all])
Inst avahi-autoipd [0.6.31-4+b1] (0.6.31-4+b2 Debian:unstable [amd64])
Inst avahi-daemon [0.6.31-4+b1] (0.6.31-4+b2 Debian:unstable [amd64])
Inst bind9-host [1:9.9.5.dfsg-5] (1:9.9.5.dfsg-7 Debian:unstable [amd64]) []
...
Code: Select all
$ apt-get -s upgrade | grep "Inst " | sort -f | sed 's/^.....//'
Code: Select all
apt-utils [1.0.9.3] (1.0.9.4 Debian:unstable [amd64])
autopoint [0.19.3-1] (0.19.3-2 Debian:unstable [all])
avahi-autoipd [0.6.31-4+b1] (0.6.31-4+b2 Debian:unstable [amd64])
avahi-daemon [0.6.31-4+b1] (0.6.31-4+b2 Debian:unstable [amd64])
bind9-host [1:9.9.5.dfsg-5] (1:9.9.5.dfsg-7 Debian:unstable [amd64]) []
This method does not display packages that are "kept back".