LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-09-2005, 11:05 AM   #1
zhouxjgester
LQ Newbie
 
Registered: Aug 2005
Location: canada
Posts: 8

Rep: Reputation: 0
How to build a patch installer with rpm?


My use case is:

I build a package "mypack-1.0" which contains file a, b, and c.
I installed "mypack-1.0".
Then after a while, I think I've got a new version of file a.
So I tried to build a patch package "mypack-1.0-hotfix1", which only contain file a.

Then I want to install "mypack-1.0-hotfix1" on top of "mypack-1.0".

There will be patch package "mypack-1.0-hotfix2" for ever newer a.
patch package "mypack-1.0-sp1" for a and b.

I hope after installed "mypack-1.0", "mypack-1.0-hotfix1", "mypack-1.0-hotfix2". "mypack-1.0-sp1". I can uninstall them one by one without breaking anything.

This is a typical "patching".

Can anyone tell me how rpm can do it?
 
Old 09-10-2005, 07:13 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
With rpm you would want to use -U or --upgrade. The hotfix1 and hotfix2 package would need to contain all the files a, b and c due to the fact that --upgrade will erase old package and install new version.

Also to revert back to original package use rpm --oldpackage.
 
Old 09-12-2005, 08:42 AM   #3
zhouxjgester
LQ Newbie
 
Registered: Aug 2005
Location: canada
Posts: 8

Original Poster
Rep: Reputation: 0
-U is not what I want

I knew -U can do that. But this behavior is not good for me.

1) each patch has to contain all the binaries.
2) it will remove the whole old package. There might be customization in the old package.

I'm looking for patch tick other than -U.
 
  


Reply



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
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 09:15 AM
RPM installer doesn't see my kernel-source ? Biased turkey Mandriva 4 01-21-2005 12:57 PM
madwifi and rpm installer??? munkymonkjr Fedora 1 10-04-2004 03:38 PM
kernel patch to build with intel compiler galad Linux - Software 10 02-10-2004 06:08 PM
The linux kernel ...to patch it or to build it that is the question Rodcl Linux - Software 3 07-13-2002 08:19 PM

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

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

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