Debian – How to list currently not installed packages

aptdebiandpkgpackage-managementUbuntu

I'd like to output a list of all, currently not installed, packages (they are visible in Synaptic for example) using only shell commands.
How do I do this?

Best Answer

aptitude search '!~i'

See the Search Term Reference in the aptitude user's manual for details.