Im trying to install an rpm file on CentOS 5 and Im not sure how to resolve this issues it brings up:
$ rpm --install epel-release-6-5.noarch.rpm
warning: epel-release-6-5.noarch.rpm: Header V3 RSA/SHA256 signature: NOKEY, key ID 0608b895
error: Failed dependencies:
rpmlib(FileDigests) <= 4.6.0-1 is needed by epel-release-6-5.noarch
rpmlib(PayloadIsXz) <= 5.2-1 is needed by epel-release-6-5.noarch
What do the lines rpmlib(FileDigests) <= 4.6.0-1 mean? is rpmlib out of date or FileDigests out of date? Whats with the syntax of something followed by parentheses?
Ive tried to use yum so that it can resolve dependencies automatically but it is unable:
$ sudo yum --nogpgcheck install epel-release-6-5.noarch.rpm
...
Running rpm_check_debug
ERROR with rpm_check_debug vs depsolve:
rpmlib(FileDigests) is needed by epel-release-6-5.noarch
rpmlib(PayloadIsXz) is needed by epel-release-6-5.noarch
Complete!
(1, [u'Please report this error in https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%205&component=yum'])
On this page https://bugzilla.redhat.com/show_bug.cgi?id=665073, they say my rpm is out of date but then say I should request an rpm file that works with my version of rpm (which is 4.4.2.3) but I don't want to do that. How do I make my system compatible with this rpm file?
Bonus points if you tell me how I can fix the public key error.
From http://jfearn.fedorapeople.org/en-US/RPM/0.1/html/RPM_Guide/ch-advanced-packaging.html:
In this case, it is referring to particular features of the rpm library.
This suggests you're trying to install the
epel-release
rpm on a system for which it was not designed. In fact, in your question, you state you're installing this on CentOS 5, while the package you're attempting to install is designed for CentOS 6 (or RHEL 6). For CentOS 5, you want epel-release-5-4.noarch.rpm. You might want to read the EPEL documentation before you proceed, which would have answered this question as well as others you might have.Right, because those features aren't available on CentOS 5. From the perspective of
yum
you've asked it for magic unicorns. It can't find any.Install the EPEL signing key. If you read the EPEL documentation -- it's amazing what you'll find there -- you'll get a link to https://fedoraproject.org/keys, which includes instructions on installing the public keys used by the Fedora project.
You want EPEL release 5.x (not 6.x).
http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
You're running CentOS 5. CentOS 6 is not out yet.
The current rmp link that worked for me on CentOS 5.5 is:
Handles dependencies automagically.
Also note it can be helpful to peruse the repost at eg: http://dl.fedoraproject.org/pub/epel/5/i386/ (/6/i386/ etc) to find the most appropriate/correct address.
The best command will be
$ yum install epel-release
and yum will get the correct rpmYou can further run the below commands to fix the public key error.
i've got similar error when tried to install keyboard locale input language switcher on CentOS8
...
The problem was in zstd payloads (compression) https://bugzilla.redhat.com/show_bug.cgi?id=1715799 that is not supported in RHEL8/CentOS8 yet
https://fedoraproject.org/wiki/Changes/Switch_RPMs_to_zstd_compression
then i downloaded RPM and libs version 4.14.2-36 from official CentOS Stream Repo
where zstd support added:
and install via (BE CAREFULL YOU CAN BROKE YOUR SYSTEM with
allowerasing
option! do it on your own risk)some packages were removed
dont know how to fix selinux and what othe things affected but now i can install fresh RPMs from Fedora/EPEL
off course i installed Facebook's Zstandard archiver (*.zst application/zstd) itself
If you are building your own RPMs and run into this problem, it's because rpmbuild uses different digest algorithms and different compression based on the operating system packaging the RPM. The following can be added to your spec file for improved compatibility. I had to add this so I could install RPMs in Oracle Linux that were built in Fedora 33. These settings are pulled from a spec file that was generated by fpm.
So if you're seeing this issue installing something, it's because you're probably using packages built for a different distro.
My problem was described in this thread: http://comments.gmane.org/gmane.linux.redhat.fedora.general/410408
The links posted on the documentation are redirects that (somehow?) cause problems with the download. Did what the thread said and then the rest of the EPEL docs worked out.