[opensuse] How to unpack an RPM without installing?
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'm rather sure that the RPM file is OK: rpm -ql on that file produces no error, and I downloaded it twice to make sure that I don't got an error on a mirror. Can anybody give me a hint, either why rpm2cpio is not working or how one can unpack a RPM file in other ways? In case you want to try it yourself: http://download.opensuse.org/factory/repo/oss/suse/i586/postgresql-server-8.... 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. Thanks in advance for any answer, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 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
On Wednesday 05 November 2008 14:56:53 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'm rather sure that the RPM file is OK: rpm -ql on that file produces no error, and I downloaded it twice to make sure that I don't got an error on a mirror.
Can anybody give me a hint, either why rpm2cpio is not working or how one can unpack a RPM file in other ways? In case you want to try it yourself: http://download.opensuse.org/factory/repo/oss/suse/i586/postgresql-server-8 .3.4-1.9.i586.rpm
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.
Thanks in advance for any answer,
Joachim
-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany
You could convert your rpm to tgz http://bashcurescancer.com/rpm2tgz.ws -- Bogdan Cristea -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 11/05/2008 08:56 PM, 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'm rather sure that the RPM file is OK: rpm -ql on that file produces no error, and I downloaded it twice to make sure that I don't got an error on a mirror.
Can anybody give me a hint, either why rpm2cpio is not working or how one can unpack a RPM file in other ways?
I would suggest using mc. This can enter and view the files inside the rpm, viewing not just the directory structure, but the init script itself. -- Joe Morris Registered Linux user 231871 running openSUSE 10.3 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Joachim Schrod wrote:
Hi, Hi Joachim,
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'm rather sure that the RPM file is OK: rpm -ql on that file produces no error, and I downloaded it twice to make sure that I don't got an error on a mirror.
Can anybody give me a hint, either why rpm2cpio is not working or how one can unpack a RPM file in other ways?
I use unrpm to unpack rpms.
In case you want to try it yourself: http://download.opensuse.org/factory/repo/oss/suse/i586/postgresql-server-8....
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.
Thanks in advance for any answer,
Joachim
-- Rui Santos http://www.ruisantos.com/ Veni, vidi, Linux! -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hello,
In the Message;
Subject : [opensuse] How to unpack an RPM without installing?
Message-ID :
On Wed, Nov 05, 2008 at 01:56:53PM +0100, Joachim Schrod wrote:
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".)
That's because older rpms can't uncompress lzma compressed cpio files. Please run the command on a 11.0 system. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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'm rather sure that the RPM file is OK: rpm -ql on that file produces no error, and I downloaded it twice to make sure that I don't got an error on a mirror.
Can anybody give me a hint, either why rpm2cpio is not working or how one can unpack a RPM file in other ways? In case you want to try it yourself: http://download.opensuse.org/factory/repo/oss/suse/i586/postgresql-server-8....
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.
Thanks in advance for any answer,
Joachim
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 Best regards Sylvester Lykkehus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2008-11-05 14:27, Sylvester Lykkehus wrote:
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
Sorry, that was the wrong link, the script from rpm5 works though, get it here: http://rpm5.org/cvs/getfile?f=rpm/scripts/rpm2cpio&v=1.5
Best regards Sylvester Lykkehus
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On November 5, 2008 05:56:53 am 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".)
<snip>
Can anybody give me a hint, either why rpm2cpio is not working or how one can unpack a RPM file in other ways?
As I recall rpm packages starting using a new compression scheme between 10.3 and 11.0. I would guess you need a newer version of rpm2cpio.
In case you want to try it yourself:
http://download.opensuse.org/factory/repo/oss/suse/i586/postgresql-server-8....
Works here on 11.0 (by works I mean that file p.cpio says it is a cpio archive).
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.
I think that is the problem -- Don -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Joachim Schrod escribió:
Hi,
I try to unpack postgresql-server-8.3.4-1.9.i586.rpm from factory without installing it.
use "unrpm" from the package "build" -- "Good, Fast, Cheap: Pick any two (you can't have all three)." Cristian Rodríguez R. Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/
Cristian Rodríguez writes:
Joachim Schrod escribió:
I try to unpack postgresql-server-8.3.4-1.9.i586.rpm from factory without installing it.
use "unrpm" from the package "build"
That uses rpm2cpio | cpio internally, which doesn't work. As I wrote later, calling unlzma on the result of rpm2cpio is the way to go. Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 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
Joachim Schrod wrote:
Cristian Rodríguez writes:
Joachim Schrod escribió:
I try to unpack postgresql-server-8.3.4-1.9.i586.rpm from factory without installing it.
use "unrpm" from the package "build"
That uses rpm2cpio | cpio internally, which doesn't work. As I wrote later, calling unlzma on the result of rpm2cpio is the way to go.
Joachim
The easiest way is to use mc to open and copy whatever you want where you want it. Click on the rpm and it opens then click on the cpio and that opens too, then copy whichever file you want. If you don't have a mouse then press enter. Regards Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 06 November 2008 02:57:25 am Dave Plater wrote:
Joachim Schrod wrote:
Cristian Rodríguez writes:
Joachim Schrod escribió:
I try to unpack postgresql-server-8.3.4-1.9.i586.rpm from factory without installing it.
use "unrpm" from the package "build"
That uses rpm2cpio | cpio internally, which doesn't work. As I wrote later, calling unlzma on the result of rpm2cpio is the way to go.
Joachim
The easiest way is to use mc to open and copy whatever you want where you want it. Click on the rpm and it opens then click on the cpio and that opens too, then copy whichever file you want. If you don't have a mouse then press enter. Regards Dave P
mc is using rpm (or rpm libraries) and if rpm can't open the file than mc is useless. Joachim is using versions prior to 11.0 and lzma compression, so his rpm is using bzip2 compression and he has to do the work manually, as describer in his mail. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Rajko M. wrote:
mc is using rpm (or rpm libraries) and if rpm can't open the file than mc is useless. Joachim is using versions prior to 11.0 and lzma compression, so his rpm is using bzip2 compression and he has to do the work manually, as describer in his mail.
Thats why I suggested he install the new lzma and rpm from the build service link http://download.opensuse.org/repositories/home:/coolo/openSUSE_10.3/ in a previous mail. Regards Dave P -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 06 November 2008 06:04:05 am Dave Plater wrote:
Rajko M. wrote:
mc is using rpm (or rpm libraries) and if rpm can't open the file than mc is useless. Joachim is using versions prior to 11.0 and lzma compression, so his rpm is using bzip2 compression and he has to do the work manually, as describer in his mail.
Thats why I suggested he install the new lzma and rpm from the build service link http://download.opensuse.org/repositories/home:/coolo/openSUSE_10.3/ in a previous mail.
OK. I see. Got to look in src.rpm to clear my confusion, which was that lzma replaced older compression methods, while it was just added to the list. -- Regards, Rajko -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2008-11-06 at 20:12 -0600, Rajko M. wrote:
OK. I see. Got to look in src.rpm to clear my confusion, which was that lzma replaced older compression methods, while it was just added to the list.
Perhaps because it became the default method to use on suse. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkkTmHMACgkQtTMYHG2NR9Uq6gCeNPhh1wkvrmqtztP/FijqYWHP Z5UAnjCZrQQ4tOZ8hClvFic04xtvx5y0 =Bg9/ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Wed, 05 Nov 2008 13:56:53 +0100, you wrote:
Can anybody give me a hint, either why rpm2cpio is not working or how one can unpack a RPM file in other ways?
Use unrpm, been part of the distribution for a long time and has always worked for me. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (13)
-
Bogdan Cristea
-
Carlos E. R.
-
Cristian Rodríguez
-
Dave Plater
-
Don Raboud
-
Joachim Schrod
-
Joe Morris
-
Masaru Nomiya
-
Michael Schroeder
-
Philipp Thomas
-
Rajko M.
-
Rui Santos
-
Sylvester Lykkehus