remove package with apt code example Example 1: uninstall package ubuntu sudo apt remove <package name> Example 2: sudo apt uninstall sudo apt-get remove pkg