Page 1 of 1

how to upgrade to rpm-4.13

Posted: 2023/01/15 19:04:09
by LMHmedchem
Hello,

I would like to upgrade to rpm 4.13 if that is possible. I tried downloading the rpm file from here

https://cbs.centos.org/kojifiles/packag ... x86_64.rpm

I tried to install this through Yum Extender but I get a dependency resolution failed error.

Code: Select all

Dependency Resolution Errors:

Package: rpm-python-4.11.3-48.el7_9.x86_64 (@updates)
    Requires: rpm = 4.11.3-48.el7_9
    Removing: rpm-4.11.3-48.el7_9.x86_64 (@updates)
        rpm = 4.11.3-48.el7_9
    Updated By: rpm-4.13.0.2-1.el7.c8.x86_64 (/rpm-4.13.0.2-1.el7.c8.x86_64)
        rpm = 4.13.0.2-1.el7.c8
    Available: rpm-4.11.3-45.el7.x86_64 (base)
        rpm = 4.11.3-45.el7
    Available: rpm-4.11.3-46.el7_9.x86_64 (updates)
        rpm = 4.11.3-46.el7_9Package: rpm-build-4.11.3-48.el7_9.x86_64 (@updates)
    Requires: rpm = 4.11.3-48.el7_9
    Removing: rpm-4.11.3-48.el7_9.x86_64 (@updates)
        rpm = 4.11.3-48.el7_9
    Updated By: rpm-4.13.0.2-1.el7.c8.x86_64 (/rpm-4.13.0.2-1.el7.c8.x86_64)
        rpm = 4.13.0.2-1.el7.c8
    Available: rpm-4.11.3-45.el7.x86_64 (base)
        rpm = 4.11.3-45.el7
    Available: rpm-4.11.3-46.el7_9.x86_64 (updates)
        rpm = 4.11.3-46.el7_9Package: rpm-devel-4.11.3-48.el7_9.x86_64 (@updates)
    Requires: rpm = 4.11.3-48.el7_9
    Removing: rpm-4.11.3-48.el7_9.x86_64 (@updates)
        rpm = 4.11.3-48.el7_9
    Updated By: rpm-4.13.0.2-1.el7.c8.x86_64 (/rpm-4.13.0.2-1.el7.c8.x86_64)
        rpm = 4.13.0.2-1.el7.c8
    Available: rpm-4.11.3-45.el7.x86_64 (base)
        rpm = 4.11.3-45.el7
    Available: rpm-4.11.3-46.el7_9.x86_64 (updates)
        rpm = 4.11.3-46.el7_9Package: rpm-libs-4.11.3-48.el7_9.x86_64 (@updates)
    Requires: rpm = 4.11.3-48.el7_9
    Removing: rpm-4.11.3-48.el7_9.x86_64 (@updates)
        rpm = 4.11.3-48.el7_9
    Updated By: rpm-4.13.0.2-1.el7.c8.x86_64 (/rpm-4.13.0.2-1.el7.c8.x86_64)
        rpm = 4.13.0.2-1.el7.c8
    Available: rpm-4.11.3-45.el7.x86_64 (base)
        rpm = 4.11.3-45.el7
    Available: rpm-4.11.3-46.el7_9.x86_64 (updates)
        rpm = 4.11.3-46.el7_9
I don't see anything in this output that tells me where the install failed and how to resolve the issue.

Is the operation I am attempting possible if I get the dependencies right? Can anyone suggest what to do next?

LMHmedchem

Re: how to upgrade to rpm-4.13

Posted: 2023/01/15 19:17:00
by TrevorH
You definitely should not even try to upgrade rpm. If you are attempting to install something that says it wants a newer rpm then that package is the one that should not be installed. It means it is designed to run on a newer version of CentOS than you have and thus is the wrong one. You need to find a version of the package you are trying to install that is designed to run on CentOS 7, not randomly upgrade essential system packages.

Re: how to upgrade to rpm-4.13

Posted: 2023/01/15 20:33:29
by LMHmedchem
The error I was running into with the install resulted from the rpm .spec file using the "or" operator when checking for dependencies and apparently this operator is not supported until rpm-4.13. This caused the install to fail at the dependency check since the operator was not recognized. I thought that this was a relatively minor issue. There is no guarantee that if the install is able to run past this point that there will not be other issues that arise.

I am in contact with the developers to find a version that has been better checked on CentOS 7 but I thought I would run down the possibility of upgrading rpm as a workaround.

Thanks,

LMHmedchem