Thursday, July 31, 2014

CentOS: missing repo

If you get this error with yum:
yum install ...
Error: Cannot find a valid baseurl for repo: base
Then:
vi /etc/yum.repos.d/CentOS-Base.repo
and add
baseurl=http://vault.centos.org/6.3/os/i386/
given that 6.3 is your CentOS version