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.

Attachment: pgpaabByBJR7a.pgp
Description: PGP signature



Relevant Pages

  • The utility of alien (Re: Aptitude wants to remove OpenOffice.org)
    ... available does not mean that the deb produced is good. ... So much of the result depends upon the quality of the original rpm ... This is in direct violation of Debian Policy. ... For example if the rpm package contains a daemon it will usually ...
    (Debian-User)
  • Re: Linux, the final decision
    ... > support for both deb and rpm packages is brilliant. ... How Xandros support both deb and rpm? ... Whilst linux is layered and windows is ...
    (comp.os.linux.misc)
  • Re: rpm experiences [was: Backing up whole system]
    ... pages pointed at as the simplest possible intro document for ... building an rpm: It was a 97 page long pdf file. ... you can often skip some of the Fedora packaging guidelines. ... with the .deb packaging tools, then with amazement, they emerged ...
    (Fedora)
  • Re: Whats all the hype over Ubuntu?
    ... on several occasions I've heard Ubuntu fans cite the fact it doesn't use ... they don't like the "dependency hell" of rpm. ... Well I've never extensively used any deb based distro but then I've been pretty stuck with RH and friends for about that last 10 years since starting out with RH 5.1 rough cuts on an Amiga of all things:) But I must admit, I never really understood that viewpoint as yum has basically eliminated "dependency hell" and wondered what was magically different about deb. ... With ubuntu, you enable the pre-configured extra repositories, pick what you want and you are ready to run it. ...
    (Fedora)
  • Re: Contributing to a linux distribution
    ... What proprietary formats? ... DEB and RPM are both publicly documented, ... `- GPG Public Key: 0x25BFB848 Please GPG sign your mail. ...
    (comp.os.linux.development.apps)