Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save osbm/5260c52faeedb434c2fec9a5d961217c to your computer and use it in GitHub Desktop.
Save osbm/5260c52faeedb434c2fec9a5d961217c to your computer and use it in GitHub Desktop.

First of all, select your version from arch archives for cuda and cuda-tools. I selected the latest 12.1 version: 12.1.1-4

Then just run these lines:

sudo pacman -U https://archive.archlinux.org/packages/c/cuda/cuda-12.1.1-4-x86_64.pkg.tar.zst
sudo pacman -U https://archive.archlinux.org/packages/c/cuda-tools/cuda-tools-12.1.1-4-x86_64.pkg.tar.zst

Now as soon as you install these packages package manager will want to update them, to disable updating these packages.

Modify this line in /etc/pacman.conf

[options]
...
IgnorePkg   = cuda cuda-tools
...

Now when you update your system

 $ sudo pacman -Syu  
[sudo] password for osbm:
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
warning: cuda: ignoring package upgrade (12.1.1-4 => 12.4.1-3)
warning: cuda-tools: ignoring package upgrade (12.1.1-4 => 12.4.1-3)
 there is nothing to do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment