I’m inexperienced with rpm/yum but have used Artifactory for Maven for a long time, so I have some idea how it works.
How do I get or install an rpm repo file to my server that has been “corrected” to point to Artifactory instead of the remote vendor repo?
Without Artifactory, it appears one would typically use curl to grab the repo file from the remote repo and add it to /etc/yum.repos.d. However in my case the point of using Artifactory is to eliminate the need to talk outside the company’s network.
I can certainly grab the repo file from Artifactory itself, but that’s just a copy of the vendor’s file with a baseurl and gpgkey that are external. Seems like these are the options:
- Edit that file after fetching it
- Create it from scratch
- Edit it in Artifactory
I don’t like the first two options because there is a lot of room for error. I’m not crazy about the third option because I’m not sure what would happen if that file needed to change (because the vendor changed it in their repo, for example.)
Thanks
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…