How do I install and uninstall kubuntu desktop environment?

I just want to try kde. How do I install it through the command line? If I don't like it, how do I uninstall it through the command line?


Open a terminal (CTRL+ALT+T). To install Kubuntu desktop use the following command:

sudo apt-get install kubuntu-desktop

To remove Kubuntu desktop use the following commands in a terminal:

sudo apt-get purge kubuntu-desktop
sudo apt-get autoremove

Note: You can replace Kubuntu for any other Desktop Environment.