How do I remove GNOME (just the core, not all the applications) in ubuntu 6.10 (edgy)?

I want to do this so I can reduce the iso size yet have icewm as my main wm.