Get rpm2cpio and install that. then do this:
rpm2cpio foo.rpm | pax -r /full/path/to/filename -w /tmp -i
this will write the file interactively, so you can change the name.
for instance, if the specfile you want, when doing an rpm -qpl foo.rpm
shows up like: /usr/src/foo.spec.file but you want that file to go to
/pub/work instead, you run that command wiht the -i, and you should be
prompted to rename the file, so you can change it from
/usr/src/foo.spec.file to /pub/work/foo.spec.file.
Also, from what I hear, midnight commander and GNOrpm will handle that as
well.
cheers
On Wed, 28 Mar 2001, ABrady wrote:
>
> On 28-Mar-01 Wolfgang Pfeiffer opined:
> > I'd like to extract a spec file from a existing SRC.RPM I have here ...
> > didn't manage it until now ... that's what I did:
> >
> > ----------------------------------------------------------
> > $ rpm -q --specfile wget-1.5.3-6.src.rpm
> > line 1: Unknown tag: í«îÛb
> > query of specfile wget-1.5.3-6.src.rpm failed, can't parse
> > $
> > ----------------------------------------------------------
> > I need this spec.file to build it into a wget.tar.gz, which seems to be
> > newer than the source.rpm of wget that I have ... :)
>
> How about rpm -i the source, then copy/move the specfile from
> /usr/src/redhat/SPECS to wherever you need it?
>
> ---
> 99% of lawyers give the rest a bad name.
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
--
(-0-) (-0-) (-0-) (-0-) (-0-) (-0-) <-0-> (-0-) (-0-) (-0-) (-0-) (-0-) (-0-)
Jeffrey D Lane, RHCE, RHCX, EMT-ST 2600 Meridian Parkway (919) 547-0012x168
Wing Leader, Green Wing Durham, NC 27713 (888) REDHAT1x168
# chown -R us:us ./YourBase/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS$/L/O/PA d---@ s:+ a27 C++++(---) UL++++ P+>+++ L+++$>++++ E--- W++$(+++)
N-(+++) o++>++++ K>+++ w--- O(-) M-(--) !V PS+++() PE-(+) Y+>++ PGP++ t+++>+
5++@ X(+) R(+++) tv+>-- b++>++ DI++++ D+ G++>++++ e* h* r++>+++ y**
------END GEEK CODE BLOCK------
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list