On Fri, 9 Mar 2018, Rick Stevens wrote:
On 03/09/2018 11:38 AM, Robert P. J. Day wrote:
subject says it all ... what is the purpose of the file /usr/lib/rpm/rpm2cpio.sh given the existing binary executable /usr/bin/rpm2cpio?
I believe /usr/lib/rpm/rpm2cpio.sh validates that the given file IS an RPM in the first place, then uncompresses it based on what version of RPM was used. IIRC, different versions of RPM used different compression schemes (bzip2, gzip, xz, lzma and zstd to name a few). Not sure that /usr/bin/rpm2cpio can handle the older RPMs. I could be wrong (and probably am).
i see nothing to suggest that rpm2cpio invokes rpm2cpio.sh for that purpose, can anyone else weigh in here?
rday