From this tweet: sudo apt --purge remove "*cublas*" "cuda*" "nsight*" '^nvidia-.*' sudo apt autoremove