This question already has an answer here:
- How to safely try KDE? 5 answers
i use Ubuntu 12.04 with GNOME as default desktop environment. How to remove GNOME and install KDE as desktop environment ?
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
You can install KDE using this command
To remove Gnome: