In your terminal window use the following commands:
To install a package:
sudo apt-get install "your package name"
To remove a package:
sudo apt-get remove "your package name"
To cleanup left over files after removing a package:
sudo apt-get purge "your package name"
To check it was successfully removed:
sudo apt-cache show "your package name"