jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
530 stars 227 forks source link

JFrog CLI 1.53.1 RPMs fail to install due to zstd #1421

Open IwoTens opened 2 years ago

IwoTens commented 2 years ago

Describe the bug JFrog CLI RPMs from https://releases.jfrog.io/artifactory/jfrog-rpms/jfrog-cli/ are packaged with zstd since version 1.53.1 . Zstd is unavailabe on older platforms. I'm trying to install jfrog-cli on amazon linux 2 and get the following error message rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by jfrog-cli-1.53.1-1.x86_64

To Reproduce After adding the repo to yum, install jfrog cli on amazon linux 2: yum install jfrog-cli

This yields the following error: rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by jfrog-cli-1.53.1-1.x86_64

Expected behavior Jfrog CLI should be installed.

Versions

eyalbe4 commented 2 years ago

Thank you for reporting this issue @IwoTens! Till that version, JFrog CLI's release pipeline used CentOS 8 for creating the RPM.
When we tried releasing version 1.53.1, we noticed that the stage that packs the RPM failed. When looking into the issue, we saw that we can't install packages on CentOS 8 anymore, probably due to its end of life. The solution we found was to use CentOS steam8 instead. Testing the resulting RPM passed, but it looks like it can't be installed on some systems following your report... In case you (or anyone else that reads this) have some experience with this, please share it with us here - we'd like to find a way to get this resolved.

mwilson-edc commented 2 years ago

Seeing the same issue with a RHEL7 attempted install. my RHEL yum repos don't seem to have zstd available as a bundle option to install. My RHEL8 install worked fine. I guess I'll stick with jfrog-cli-1.52.0-1 for now.

jbroome commented 2 years ago

You can't expect the same RPM to work on CentOS Stream 8 and CentOS/RHEL/Whatever 7.

hopenbr commented 2 years ago

We are seeing same issue on Amazon Linux

yum is pointed to virtual repo in Artifactory which has a remote repo for jfrog https://releases.jfrog.io/artifactory/jfrog-rpms

artifactory v 7.31.16

RPM needs to be updated

ERROR You need to update rpm to handle:

rpmlib(PayloadIsZstd) <= 5.4.18-1 is needed by jfrog-cli-1.53.1-1.x86_64

You could try running: rpm -Va --nofiles --nodigest

Your transaction was saved, rerun it with:

yum load-transaction /tmp/yum_save_tx.2022-03-10.15-05.iw4n8B.yumtx