The following lines were added (+) and removed (-):
dpkg-query -W -f '${status} ${package} ${version}\n' | sed -n 's/^install ok installed //p' dpkg --get-selections dpkg --get-selections | sed 's:install$::'You can make a shell script called 'apt-installed' and put whatever format you like.