I'm new to nexus. I have a remote build system that I don't controll. The Nexus server has been configured to act as a yum repo. I do not have the ability to run a "real" yum server at the moment without jumping through major hoops.
I want to be able to use Nexus to serve up a large number of RPMS as a yum repo. However, I'm a little confused on how to actually use this. I've read the documentation, but it's more geared toward configuring it for YUM, rather than using it.
So, I have a few hundred RPMS for RHEL 6 and 7 that we maintain and deploy, as well as the SRPMS, albeit the SRPMS are less important here.
1. when looking at the artifact uploader on the website, I have selected to enter GAV parameters.
Group=RPMS_EL7
Artifact=TestRPM
Version=1
There is an option for Packaging, but none of the options appear to be relevant for me.
2. Then I add the file(s) for Upload by browsing.
someRPM-0.0.1.el7.rpm
3. upload is complete and I can browse to the RPM via YUM. great. However, the RPM is now named TestRPM-1.rpm instead of the name of the "artifact" that I uploaded.
4. There are a bunch of Maven-metadata.xml files that I don't need/use.
So I have the following questions:
1. Do I have to set the Artifact and version number to the actual RPM or is there a way to have nexus to be configured to use the uploaded RPM as-is?
2. Is there a tool available for mass upload of RPMS? I've looked around but only found a maven script that might/might not work for me.
I'm assuming that using a scripted uploader and curl would work well enough.
Something like:
myuploadScript.sh
FILENAME=myNewRPM-0.0.1.el7.rpm
curl -v -u admin:password --upload-file ${FILENAME} ${DESTINATION}
3. What packaging format should I be using?
4. Should I just give up this idea and instead go through the pain of setting up a yum server in a VM, which would require me to setup VPN solutions on ALL of our client machines?
Thanks!