I *think* all backports packages have a version with 'bpo' in the version string. Therefore, the following should be close to correct (if I'm right, there will be no omissions, but there may be false positives): $ COLUMNS=255 dpkg -l | tail -n +6 | awk '{if ($3~/bpo/) print $2 }'