LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-17-2009, 09:14 AM   #1
vibhor_agarwalin
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Rep: Reputation: 0
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
 
Old 09-17-2009, 09:55 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,827

Rep: Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983
Quote:
Originally Posted by vibhor_agarwalin View Post
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.
 
Old 09-18-2009, 12:57 AM   #3
vibhor_agarwalin
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Original Poster
Rep: Reputation: 0
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?
 
Old 09-19-2009, 06:19 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,827

Rep: Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983Reputation: 6983
Quote:
Originally Posted by vibhor_agarwalin View Post
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.
 
Old 09-21-2009, 12:08 AM   #5
vibhor_agarwalin
LQ Newbie
 
Registered: Apr 2009
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to build a patch installer with rpm? zhouxjgester Linux - Software 2 09-12-2005 08:42 AM
Which patch rpm to use? bvknapp Fedora 11 02-21-2005 08:12 PM
Building a kernel RPM with applying a patch barisdemiray Programming 1 08-04-2004 06:50 AM
rpm error-> patch: command not found Bosnja Linux - Software 5 01-30-2004 12:59 PM
RPM Rollback (Patch installation) adme Linux - General 3 04-15-2003 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration