Cuda installation on Centos 7

I want to install cuda version 8, not 9. I’m running Centos 7. There might be a previous installation of cuda on my machine already. How do I verify if it’s installed? If it’s a different version than 8, how to remove it? Then finally how to install version 8?

P.s. I’m a bit new to linux.

Thanks a lot.