LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Ship an RPM Patch (https://www.linuxquestions.org/questions/linux-software-2/ship-an-rpm-patch-755914/)

vibhor_agarwalin 09-17-2009 09:14 AM

Ship an RPM Patch
 
Hi,

We have shipped an RPM.

Want to fix defects which will involve sending across a subset of the original files.
Is it possible to create a patch to the rpm like other OS's.

I am aware of patching an source rpm, which delivers the full set of files. Mine case is to deliver only a subset.

If yes, could somebody help me to create it.

Thanks

TB0ne 09-17-2009 09:55 AM

Quote:

Originally Posted by vibhor_agarwalin (Post 3687007)
Hi,

We have shipped an RPM.

Want to fix defects which will involve sending across a subset of the original files.
Is it possible to create a patch to the rpm like other OS's.

I am aware of patching an source rpm, which delivers the full set of files. Mine case is to deliver only a subset.

If yes, could somebody help me to create it.

Thanks

Yes, just make an RPM containing whatever file(s) you want to update. Make it the same way you made the first RPM, which you already can do.

vibhor_agarwalin 09-18-2009 12:57 AM

Quote:

Yes, just make an RPM containing whatever file(s) you want to update. Make it the same way you made the first RPM, which you already can do.
Stuck with the above.
If I create the rpm with the same versions, it says:
package <pkg> is already installed

If I increase the release version:
Install: A new package is created and on its un-installation the files don't revert back to base package
Upgrade: The base package is removed and with it all the files that are not in the patch package.

How do i get around this?

TB0ne 09-19-2009 06:19 PM

Quote:

Originally Posted by vibhor_agarwalin (Post 3688107)
Stuck with the above.
If I create the rpm with the same versions, it says:
package <pkg> is already installed

If I increase the release version:
Install: A new package is created and on its un-installation the files don't revert back to base package
Upgrade: The base package is removed and with it all the files that are not in the patch package.

How do i get around this?

Increase the release version. And supply the entire package, old files and new, so folks can just run an 'upgrade'. If the same program is removed, then put right back where it was, they're in the same spot.

vibhor_agarwalin 09-21-2009 12:08 AM

Yup,
That's always the option.

I was just thinking if there an option to ship a patch comprising of only the changed files.
Similar to other OS's

Looks like there isn't.


All times are GMT -5. The time now is 02:08 PM.