Outdated and thus unnecessarily confusing instructions.
Code: Select all
`sudo yum install cuda-repo-rhel7-10-1-local-10.1.168-418.67-1.0-1.x86_64.rpm`
`sudo yum clean all`
`sudo yum install cuda`
The
yum can install a local package file. The
yum can download and install a package file from URL too. There is no need to call
rpm at all.
In fact, yum keeps track of what it has done. Calling rpm directly act behind the back of yum and then yum's history becomes less trustworthy.
What is in that " cuda-repo-rhel7-10-1-local-*.rpm"? Definition of a yum repository. Yum can find/see/access that repository after the package is installed.
The repository contains packages for a CUDA release. You have to install (some of) those packages if you want to use CUDA. You cannot install those packages unless you/yum know where they are. That is why you have to add the repository config first.
The 'clean all' is debatable; if you did not have cuda repository previously, then yum has nothing outdated in the cache.