Skip to content

Instantly share code, notes, and snippets.

@Kyungpyo-Kim
Created October 12, 2023 06:41
Show Gist options
  • Save Kyungpyo-Kim/61bfcaa7a40caa77b7d38c5fcb45d6b5 to your computer and use it in GitHub Desktop.
Save Kyungpyo-Kim/61bfcaa7a40caa77b7d38c5fcb45d6b5 to your computer and use it in GitHub Desktop.
script for holding nvidia drivers version using apt-mark
#!/bin/bash
for i in $(dpkg -l | grep nvidia | awk '{print $2}'); do
echo "apt-mark hold $i"
sudo apt-mark hold $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment