Re: insert a file into a binary rpm - how?



Sam wrote:
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?

The easiest thing for you to do is to simply create a separate rpm package, that installs the files you want, rather than screwing around with the binary rpm database, and end up hosing your entire system.

Of course I'll play safe, I can always do backup and restore, can't I.
The rpm database itself can also be rebuilt. To the worst, I can restore the whole system from backup, can't I. Your wording sounds a bit fear-spreading. :)

Had I have the source (be it the source rpm or the raw source), I knew how to create binary rpm and do upgrade. But the situation is that I don't get hold of the source - and still I want my added files managed by the rpm package system. This actually is what I did when I patched skype for my debian box (rpm downloaded from skype website, converted to deb with alien, and need to be patched to work, so I patched it and created a new deb). Am I expecting too much from rpm format?

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



Relevant Pages

  • Re: Latest Seamonkey update
    ... Adding enforcing=0 to the kernel line in the grub.conf will set it to permissive mode on boot. ... I just wanted an editor that can render decent in Linux or Windows and displays very similar in any brand of browser that the user employs. ... A couple of minutes ago i checked and the rpm version was gone but due to some error the rpm database wasn't notified. ...
    (Fedora)
  • Re: Latest Seamonkey update
    ... I usually apply updates only after putting SELinux into permissive mode before proceeding with upgrades. ... Either with rpm packaged versions or with the installer version, I prefer the suite over firefox/thunderbird.Unless some better ... I just wanted an editor that can render decent in Linux or Windows and displays very similar in any brand of browser that the user employs. ... A couple of minutes ago i checked and the rpm version was gone but due to some error the rpm database wasn't notified. ...
    (Fedora)
  • SUG: Automatic RPM database verification and repair
    ... The RPM database is vital to the maintenace of Fedora or any Redhat-branch ... of silent corruption, ... RPM may be able to rebuild the database if corruption is found (by RPM, ...
    (Fedora)
  • Re: SUG: Automatic RPM database verification and repair
    ... The RPM database is vital to the maintenace of Fedora or any Redhat-branch ... Yum uses it for updates. ... of silent corruption, ...
    (Fedora)
  • Re: Totem=noshow
    ... RPM version 3.0.3 ... clearly the RPM database was completely out of usage. ... to fill a package database without really installing anything (not ... since some packages I have upgraded or modified the ...
    (Fedora)