View Single Post

  #5 (permalink)  
Old 06-30-2006
Sam
 
Posts: n/a
Default Re: insert a file into a binary rpm - how?

Kill Bill writes:

> Kill Bill wrote:
>> Hi, Group,
>>
>> I am asking this question because I would like to insert several
>> pre-prepared files into a binary rpm, and I know this is possible for
>> the debian packages (since .deb can be manipulated with standard unix
>> facilities such as ar, tar, gzip). Also I know how to extract a
>> specified file within a rpm using rpm2pico and pico. Just the other way
>> around I don't know.

>
> And I am thinking a possible work around for this issue:
> 1) use alien to convert the original rpm into a deb;
> 2) use ar, tar, gzip to decompose the deb;
> 3) add prepared files in;
> 4) use md5sum, tar, gzip ar, etc to re-assemble a new deb;
> 5) use alien again, to convert the deb to a new version of rpm.
>
> The potential danger of this work around is the compatibility issue. I
> haven't try it but it is likely the final rpm doesn't work on the
> original platform.
>
> Does anyone have any suggestion?


It won't work.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBEpQP0x9p3GYHlUOIRAgVAAJ9Q5Hjy8mTnF3JDfpv8GK tQsLATJQCcDuK1
xwZFvSps1/6dF43RTNsGuuQ=
=WL7s
-----END PGP SIGNATURE-----

Reply With Quote