apt-get uninstall package code example
Example 1: uninstall package ubuntu
sudo apt remove <package name>
Example 2: apt-get uninstall
sudo apt-get --purge autoremove pkg
Example 3: apt uninstall
sudo apt-get remove [pkg]
Example 4: sudo apt uninstall
sudo apt-get remove pkg