Bug 2058426
Summary: | Cannot extract rpms from RHEL9 on RHEL7.8 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | kartthik.raghunathan |
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED NOTABUG | QA Contact: | swm-qe |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.8 | CC: | pmatilai |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-02-25 07:40:17 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
kartthik.raghunathan
2022-02-24 22:04:04 UTC
This is to be expected, RHEL 9 uses a payload compression (zstd) which is not be available on RHEL 7. Rpm tracks these incompatibility via rpmlib() dependencies so an attempt to 'rpm -U' the package on RHEL 7 will fail cleanly but rpm2cpio does not use these mechanisms. Arguably rpm2cpio should detect an unsupported payload format though and error out instead of spitting the compressed data out as-is, OTOH that flaw can be utilized by piping to an external extractor if available. For this case, if 'zstd' is available, you should be able to extract the contents by piping through that, ie rpm2cpio foo.rpm | zstd -d | cpio There should probably be an explicit switch to enable this behavior though, but this is not something that will get addressed in RHEL 7 at this point. |