$ dpkg -l
Gives you a list of all packages installed on your system. Now some bugs on the Debian BTS are tagged patch . Now is there a way to list all packages which are installed on your system for which patches are out there in the Debian BTS. Building, test and reporting as in feedback would make the packages better and in turn Debian better. Is there a way to do it ?
Update - Bonus points if this can be done with a help of a CLI tool and not writing a script.