Link to home
Start Free TrialLog in
Avatar of Nick Upson
Nick UpsonFlag for United Kingdom of Great Britain and Northern Ireland

asked on

writing rpm spec handle conditional actions

I'm trying to write an rpm spec file to handle upgrades of a package, currently rpm --erase followed by rpm --install is necessary whereas I want to just do rpm --upgrade.

This is on fedora core 8 and it's a customer package I'm involved with.

The problem I'm having is that there is a database involved where I need to run, possibly several, upgrade scripts. so I need logic that goes something like the code snippet attached
say current version is 2.3.0 and the new one is 2.3.6, ?how to do this within the rpm spec file
 
apply, in order, with error checking, each update script that exists between 2.3.0 and 2.3.6

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of m1tk4
m1tk4
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial