There is a process of the installation of cuda 10.0 How to install NVIDIA CUDA Toolkit on CentOS 7 Linux where a repository is installed through, and then cuda can be installed by
rpm -i cuda-repo-rhel7-10.0.130-1.x86_64.rpm
yum install cuda
but installation fails because cuda 7.5 was already installed. Then I need to remove cuda 7.5 but I can't. There is no /usr/local/cuda directory and cannot find uninstallation command and nvcc locates in /usr/bin. I do not remember how to install cuda 7.5 then how can I remove coda 7.5 and install cuda 10.0?
The error message for "yum install cuda" which I remember is
Cuda 1:7.5... is already installed and it is the newest version.