Skip to content

Instantly share code, notes, and snippets.

AlexDel /
Last active August 27, 2019 06:11 — forked from allenday/
Install CUDA debian package
echo "Checking for CUDA and installing."
# Check for CUDA and try to install.
if ! dpkg-query -W cuda; then
# The 16.04 installer works with 16.10.
curl -O
dpkg -i ./cuda-repo-ubuntu1604_9.2.148-1_amd64.deb
apt-get update
apt-get install cuda -y