I have an RHEL OS running as a VM that my team wants to update two specific RPMS (the agent/program is already installed but is an outdated version, so we want to update).
I was having issues downloading the RPM using yum (pointed to the jfrog artifactory in the
MyRepo.repo file in the
/etc/yum.repos.d directory), I kept getting
404 - Error not found errors
So I decided to just use curl and download the RPMs manually to the VM. There are only (2) RPMs, one named something like
my-prog-app-8.0.rpm and the other
my-prog-libs-8.0.rpm in the
/root/rpms directory I created.
NOW, my only issue is when I run something like:
yum update my-prog-app or
yum update my-prog-libs, it fails each time with a failure like:
failure: repodata/repomd.xml from MyRepo: [Errno 256] No more mirrors to try. file:///root/rpms/repodata/repomd.xml: [Errno 14] curl#37 - "Couldn't open file /root/rpms/repodata/repomd.xml"
I'm not sure what the heck this
/repodata directory or the
repomd.xml file its looking for is. I did see this same error when I was trying to use yum to download the RPM by pointing to the artifactory in the
MyRepo.repo file earlier. I figured I would be safe now because I have the RPMs locally and they are defined in the
/etc/yum.repos.d directory as:
# cat /etc/yum.repos.d/MyRepo.repo [MyRepo] name=My Local Repo baseurl=file:///root/rpms enabled=1 gpgcheck=0
Can anyone tell me what I could be doing wrong here? It can't be my connection/firewall issues, as the RPMs are already installed/downloaded/located locally on this OS (at
what is this
/repodata/repod.xml? How can I just update these (2) rpms?? or would I bet better off doing a fresh install with them or something?