If you are using Fedora 22 or later, where dnf has replaced yum as the default package manager, then you can use this command taken from herehere:
dnf config-manager --add-repo repository_url
where repository_url is a link to the .repo file.
And you can enable it by:
dnf config-manager --set-enabled repository
where repository is the unique repository ID.