insert a file into a binary rpm - how?



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.

Of course I know how to do it if I have the source rpm or the raw source, but unfortunately I don't.

I can also manually put files there but it would be nice that they were covered by the rpm package manager, thereby it would be easier to install/uninstall or port to other machines.

Ideally could someone tell/hint/suggest me how I append the added files into the rpm?

If this isn't even possible, can someone at least tell me how I can edit the rpm database (in Berkeley DB format?) so that (1) the new manually added file would appear belonging to the rpm and (2) a "rpm -e" will erase the files as well?

Many thanks,

KB
--
Let's play my favorite game at http://www.xbill.org/
.



Relevant Pages

  • Re: SeLinux and mail relaying
    ... It looks like you need the source RPM for selinux-policy-targeted instead of how they packaged things for FC4 and earlier with a separate package called selinux-policy-targeted-sources. ... the link from one of the other responses will provide enough information about how to make a custom policy for FC5 although "policygentool" sounds like a likely suspect. ...
    (Fedora)
  • Re: SeLinux and mail relaying
    ... It looks like you need the source RPM for selinux-policy-targeted instead of how they packaged things for FC4 and earlier with a separate package called selinux-policy-targeted-sources. ... the link from one of the other responses will provide enough information about how to make a custom policy for FC5 although "policygentool" sounds like a likely suspect. ...
    (Fedora)
  • Re: Install from .tar.gz
    ... If you grab the source RPM from ... grab the my modifies spec file from here: ... instead of script-based command line tools. ...
    (alt.os.linux.suse)
  • New KMail Feature: Leave on Server for N Days
    ... Recently this new feature was committed to KDE CVS. ... I took the SuSE source RPM and applied the patches and rebuilt ... This feature was a big deal to me, ...
    (alt.os.linux.suse)
  • Re: How to build a RPM for Suse
    ... sudo rpm -Uvh *.rpm ... This is exactly what I have been doing, also I am running Suse 9.2 ... The spec file was written for RedHat/Fedora and uses their ... source RPM does build on 9.1, and so should build on 9.2. ...
    (alt.os.linux.suse)