Get list of the packages installed in the system
$ dpkg --list
Remove the packages from Ubuntu
sudo apt-get --purge remove <package-name>
Get list of the packages installed in the system
$ dpkg --list
Remove the packages from Ubuntu
sudo apt-get --purge remove <package-name>