Getting Back to a Pure Gnome on Ubuntu

If you used aptitude to install other desktop environments, you will not need this tutorial, as you can just type

sudo aptitude remove kubuntu-desktop
or
sudo aptitude remove xubuntu-desktop
to get back to your "pure Gnome."

If you didn't have as much foresight and chose instead to install KDE or XFCE through Synaptic or apt-get, this is how to remove those desktop environments from your Gnome.

Note, this applies only to Ubuntu Edgy. If you're using Dapper, go here.

Remove Kubuntu
Paste this command into the terminal:

sudo apt-get remove adept adept-batch adept-common adept-installer adept-manager adept-notifier adept-updater akregator amarok amarok-xine apt-index-watcher ark arts bogofilter bogofilter-bdb bogofilter-common dcraw debtags digikam enscript gtk2-engines-gtk-qt gwenview hwdb-client-kde k3b kaddressbook kaffeine kaffeine-xine kamera karm katapult kate kaudiocreator kbstate kcontrol kcron kde-guidance kde-guidance-powermanager kde-icons-mono kde-systemsettings kdeadmin-kfile-plugins kdebase-bin kdebase-data kdebase-kio-plugins kdebluetooth kdegraphics-kfile-plugins kdelibs-data kdelibs4c2a kdemultimedia-kfile-plugins kdemultimedia-kio-plugins kdenetwork-filesharing kdenetwork-kfile-plugins kdepasswd kdepim-kio-plugins kdepim-kresources kdepim-wizards kdeprint kdesktop kdm kdnssd keep kfind kghostview khelpcenter kicker kio-apt kio-locate kipi-plugins klipper kmag kmail kmailcvt kmenuedit kmilo kmix kmousetool kmplayer-base kmplayer-konq-plugins knetworkconf knotes koffice-data koffice-libs konq-plugins konqueror konqueror-nsplugins konsole kontact konversation kooka kopete korganizer kpdf kpf kppp krdc krfb krita krita-data kscd kscreensaver ksmserver ksnapshot ksplash ksplash-engine-moodin ksvg ksysguard ksysguardd ksystemlog ktorrent kubuntu-artwork-usplash kubuntu-default-settings kubuntu-desktop kubuntu-docs kubuntu-konqueror-shortcuts kwalletmanager kwin kwin-style-crystal language-selector-qt libakode2 libarts1-akode libarts1c2a libartsc0 libavahi-compat-libdnssd1 libavahi-qt3-1 libc6-dev libcurl3-gnutls libdbus-qt-1-1c2 libexif-dev libflac++5c2 libgmp3c2 libgpgme11 libgphoto2-2-dev libgsl0 libifp4 libimlib2 libjasper-runtime libjpeg-progs libk3b2 libkcal2b libkcddb1 libkdepim1a libkexif1 libkipi0 libkleopatra1 libkmime2 libkonq4 libkpimexchange1 libkpimidentities1 libkscan1 libksieve0 libktnef1 liblockdev1 liblua50 liblualib50 libmagick++9c2a libmimelib1c2a libmodplug0c2 libmpcdec3 libmysqlclient15off libnjb5 libnss-mdns liboggflac3 libopenexr2c2a libpcre3 libpoppler1-qt libpq4 libpythonize0 libqt3-mt libqt4-core libqt4-gui libqt4-qt3support libqt4-sql librsync1 libruby1.8 libsamplerate0 libskim0 libsqlite0 libtdb1 libtunepimp3 libungif4g libvorbisfile3 libxcomposite1 libxine1 libxvmc1 linux-libc-dev mysql-common openoffice.org-kde openoffice.org-style-crystal perl-suid poster psutils pykdeextensions python-elementtree python-kde3 python-qt3 python-qt4 python-sip4 python2.4-dev qca-tls qobex rdiff-backup ruby ruby1.8 scim-qtimm skim speedcrunch vorbis-tools wlassistant

Remove Xubuntu
Paste this command into the terminal:

sudo apt-get remove abiword abiword-common abiword-plugins anthy gnumeric-common gnumeric-gtk gqview gtk2-engines-xfce gxine libaiksaurus-1.2-0c2a libaiksaurus-1.2-data libaiksaurusgtk-1.2-0c2a libanthy0 libchewing3 libchewing3-data libexo-0.3-0 libgdome2-0 libgdome2-cpp-smart0c2a libglib2.0-data libgoffice-0-common libgoffice-gtk-0-3 libgsf-gnome-1-114 libgtkmathview0c2a libjpeg-progs libmodplug0c2 libots0 libpcre3 libt1-5 libtagc0 libthunar-vfs-1-2 libwpd-stream8c2a libxcomposite1 libxfce4mcs-client3 libxfce4mcs-manager3 libxfce4util4 libxfcegui4-4 libxine1 libxvmc1 mousepad mozilla-thunderbird orage python-cups python-exo scim-anthy scim-chewing scim-hangul scim-pinyin system-config-printer thunar thunar-archive-plugin thunar-media-tags-plugin vim-runtime xarchiver xfburn xfce4-appfinder xfce4-battery-plugin xfce4-clipman-plugin xfce4-cpugraph-plugin xfce4-dict-plugin xfce4-fsguard-plugin xfce4-icon-theme xfce4-mailwatch-plugin xfce4-mcs-manager xfce4-mcs-plugins xfce4-mixer xfce4-mixer-alsa xfce4-mount-plugin xfce4-netload-plugin xfce4-notes-plugin xfce4-panel xfce4-quicklauncher-plugin xfce4-screenshooter-plugin xfce4-session xfce4-smartbookmark-plugin xfce4-systemload-plugin xfce4-taskmanager xfce4-terminal xfce4-utils xfce4-verve-plugin xfce4-weather-plugin xfce4-xkb-plugin xfdesktop4 xfprint4 xfwm4 xfwm4-themes xscreensaver xubuntu-artwork-usplash xubuntu-default-settings xubuntu-desktop xubuntu-docs