How to force a rollback on an upgrade failure.
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat RPM > How to force a rollback on an upgrade failure.




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    How to force a rollback on an upgrade failure.  
watzinaneihm


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-20-05 10:54 PM

Hi,
Does anybody know of a way of rolling back a failed upgrade without
user needing to know about it?
http://www.linuxjournal.com/article/7034  describes a way the user can
do a rollback. My question is how a packager can do something similar.

I have a package A-1.rpm , which has a set of dependency checks in its
preinstall section, if they are not met the install exits. These checks
cannot be done using standard rpm dependency checks, since I need to
look for the presence of a few PCI devices etc.

A later Package depends on a different set of PCI devices, but it is
still called package A. When a user tries to upgrade from older
version, package A.1 to newer package A-2.rpm , The pre-install section
of package A-2.rpm fails since it cannot detect the newer PCI cards. At
the same time since rpm treats an upgrade as an install+uninstall, the
older package gets removed even though the upgrade fails.

If I could be sure that the user uses the --repackage option, then I
could leave it as it was. But I cannot be sure that user will do so. Is
there a possibility of checking for this in the .spec file of A.2 rpm?

It would also be OK if I can force the rpm engine to treat an upgrade
as a single transaction, not two seperate transactions for an install
and uninstall.






[ Post a follow-up to this message ]



    Re: How to force a rollback on an upgrade failure.  
DiskMan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-22-05 12:49 PM

I don't believe that one is possible... but I could be wrong. Will L G

"watzinaneihm" <rajkumar.vj@gmail.com> wrote in message
news:1124551520.720038.138320@z14g2000cwz.googlegroups.com...
> Hi,
> Does anybody know of a way of rolling back a failed upgrade without
> user needing to know about it?
> http://www.linuxjournal.com/article/7034  describes a way the user can
> do a rollback. My question is how a packager can do something similar.
>
> I have a package A-1.rpm , which has a set of dependency checks in its
> preinstall section, if they are not met the install exits. These checks
> cannot be done using standard rpm dependency checks, since I need to
> look for the presence of a few PCI devices etc.
>
> A later Package depends on a different set of PCI devices, but it is
> still called package A. When a user tries to upgrade from older
> version, package A.1 to newer package A-2.rpm , The pre-install section
> of package A-2.rpm fails since it cannot detect the newer PCI cards. At
> the same time since rpm treats an upgrade as an install+uninstall, the
> older package gets removed even though the upgrade fails.
>
> If I could be sure that the user uses the --repackage option, then I
> could leave it as it was. But I cannot be sure that user will do so. Is
> there a possibility of checking for this in the .spec file of A.2 rpm?
>
> It would also be OK if I can force the rpm engine to treat an upgrade
> as a single transaction, not two seperate transactions for an install
> and uninstall.
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:38 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register