To create the local yum repository you have to create the files ending with extension .repo in the location /etc/yum.repos.d