I think I solved it. The problem was that I had two cuda repos.
I solved it by disabling one of them.
#1 Determine which cuda package to keep
First I needed to determine which cuda package to keep. I decided to keep the more recent one. The command I used to determine that is.
[julius@joy yum.repos.d]$ ls -lt | grep cuda
-rw-r--r--. 1 root root 210 Nov 11 17:15 cuda.repo
-rw-r--r--. 1 root root 210 Nov 11 17:08 cuda-fedora29.repo
#2 Disable the one I don’t want to keep
Go to the dir where the repos are stored
edit the cuda.repo file
sudo nano cuda.repo
Then I did
sudo dnf update and restarted and it works now.
[julius@joy yum.repos.d]$ sudo dnf update
[sudo] password for julius:
Repository cuda is listed more than once in the configuration