I seek a command line solution to list all packages that synaptic displays as "local or obsolete".
This answer to this question gives the command aptitude search ~o which gives a partial list. I suspect that other options after the ~ might help, but haven't found them documented.
Output of aptitude search ~o:
$ aptitude search ~o
i hexen2-data - Hexen II commercial data files
i hexen2-portals-data - Hexen II Mission Pack: Portal of Praevus
i libdvdcss-dev - library for accessing encrypted DVDs - dev
i libdvdcss2 - library for accessing encrypted DVDs
i quake2-full-data - Quake II data files
i quake2-groundzero-data - Quake II Mission Pack 2: Ground Zero data
i quake2-reckoning-data - Quake II Mission Pack 1: The Reckoning dat
i scangearmp2 - ScanGear MP for Linux.
Note that the packages 'orphaned' when Canonical pulled updates to them out of the repos are not listed by this command. Neither is pcmanfm which I installed using gdebi.
What's a command I can run in the terminal to give me the same list as synaptic produces?
