apt list installed uninstall code example Example: apt-get uninstall sudo apt-get --purge autoremove pkg