Sylvester Lykkehus wrote:
On 2008-11-05 13:56, Joachim Schrod wrote:
Hi,
I try to unpack postgresql-server-8.3.4-1.9.i586.rpm from factory without installing it. (I want to look if an error in the 10.3 init.d script is still there.) No problem, I think:
rpm2cpio postgresql-server-8.3.4-1.9.i586.rpm >p.cpio
Well, just, except: No error message, but the produced file is no cpio file either. (file p.cpio outputs just "data".)
I called rpm2cpio both on a 10.0 and a 10.3 system with identical results; I don't have 11.0 running at the moment.
If i remember correctly, this is because of the change to the lzma payload in newer rpm versions. You need a version of rpm2cpio which is aware of that to extract the contents, and that is also why you cannot install rpms build for opensuse 11 with the rpm version provided in 10.3.
Here is what you can do to extract it on 10.3: Save http://rpm.org/gitweb?p=rpm.git;a=blob_plain;f=scripts/rpm2cpio.sh;hb=HEAD as rpm2cpio.sh and do: sh rpm2cpio.sh <rpm-package> | cpio -id
That script doesn't work here, it computes the payload offset wrong. But it provided the missing clue: I just have to call unlzma on the result of my rpm2cpio run to get the cpio. So, luckily no 11.0 install is neeeded. Thanks a lot to all who answered, you helped me a lot. Joachim PS: And the 10.3 error in init.d/postgresql (wrong PID file) is repaired in factory as well. :-) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org