To get rid of all installed packages with "postgresql" in their name try aptitude purge '~ipostgresql' If the dependencies of the postgresql packages are marked "automatically installed", purge them also with aptitude purge '~c' -- Best regards, Jörg-Voolker.