[fedora-india] How to write spec file with upgrade option?

Debayan Banerjee debayanin at gmail.com
Mon Jan 17 10:22:46 UTC 2011


On 17 January 2011 15:42, Lakshmipathi.G <lakshmipathi.g at gmail.com> wrote:
> Sorry for late reply (came online after pongal holidays :P ). I think,there
> is some misunderstanding on my question . May be I should be more clearer.I
> have written an rpm spec file and built binary rpm using "rpmbuild" and
> installing this rpm (-i) works well.
> Now I want to provide rpm -U option - so that user can upgrade to next
> version easily (Currently user have to use rpm -e and rpm -i <new-version>).
> Google gave me this  http://www.ibm.com/developerworks/library/l-rpm2/  but
> I'm looking for more info/links -on how to create upgradable
> packages.(writting rpm spec file that supports rpm -U )

You do not need to do anything special to make the package
"upgradable". Simply increase the version number for the new package
in the spec file. The RPM system has the upgrade logic built into it.
-- 
Debayan Banerjee
Software Engineer


More information about the india mailing list