Re: patching RPMs
- From: Laurenz Albe <invite@xxxxxxxxxxxxxxx>
- Date: 28 Feb 2006 08:43:15 GMT
Rick Silvers <dev_null@xxxxxx> wrote:
Hello, I have an RPM that consists of already compiled binaries ( about
100 megs worth) and I now have 3 files to patch to that RPM. (which
has already been distributed to several servers) and these three files
replace older versions inside the first RPM.
What I would like to know is if I can generate a patch to my first rpm
that will just apply those three new files but not mess up my first
RPM, i.e myRPM-1-1.i386.rpm for the main package and maybe a
myRPM-1-2.i386.rpm but when I install it, it won't erase the files from
1-1 version... I am kind of new to RPM so I am still trying to figure
it all out. I read up on the %patch tag, but that seems more for sorce
code distributions, and the files I am distributing are already
compiled.
To understand what happens during an RPM upgrade, read
http://www.rpm.org/max-rpm/ch-rpm-upgrade.html#S1-RPM-UPGRADE-WHAT-IT-DOES
(and the surrounding documentation).
The correct approach is to create a myRPM-1-2.i386.rpm that contains all
the files of the original RPM that stayed the same plus the three modified
files.
Apart from that the RPM should be identical to the original.
When you update with RPM -U, only the 3 new files will be replaced and
the RPM database will be updated.
Yours,
Laurenz Albe
.
- Follow-Ups:
- Re: patching RPMs
- From: Robert Hull
- Re: patching RPMs
- References:
- patching RPMs
- From: Rick Silvers
- patching RPMs
- Prev by Date: Re: make rpm packages for all linux distributions
- Next by Date: Help with makefile
- Previous by thread: patching RPMs
- Next by thread: Re: patching RPMs
- Index(es):
Relevant Pages
|