[CentOS] Deconstruct an rpm

Tue Aug 8 12:51:24 UTC 2006
Ralph Angenendt <ra+centos at br-online.de>

Tom Brown wrote:
> 
> >"rpm2cpio file.rpm | cpio -i --make-directories" will unpack the rpm to
> >the directory you are momentarily in.
> 
> thanks for this it was a great help - Is it possible to modify the files 
> within the rpm and then just 'tar' it back up again or some other such 
> like to repackage it? I need to change something within an rpm but i 
> don't have the spec files etc.

Don't you have the src.rpm? There's alien, but that really sucks, as you
cannot really put scripts into the rpm.

Ralph
-- 
Ralph Angenendt......ra at br-online.de | .."Text processing has made it possible
Bayerischer Rundfunk...80300 München | ....to right-justify any idea, even one
Programmbereich.Bayern 3, Jugend und | .which cannot be justified on any other
Multimedia.........Tl:089.5900.16023 | ..........grounds." -- J. Finnegan, USC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20060808/988dc6a9/attachment-0005.sig>