LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-07-2003, 12:17 PM   #1
adme
Member
 
Registered: Jan 2003
Distribution: Redhat Psyche, Redhat Shrike, Solaris 9
Posts: 51

Rep: Reputation: 15
RPM Rollback (Patch installation)


Hi Geeks,

with up2date --configure --nox i enabled the option "enableRollbacks Yes". Now I am interesting in knowing how do this rollback when a patch isnt stable enough

i use redhat psyche. i didnt find any documents on redhat.com or google.

thanx

greetz
adme
 
Old 03-07-2003, 04:28 PM   #2
adme
Member
 
Registered: Jan 2003
Distribution: Redhat Psyche, Redhat Shrike, Solaris 9
Posts: 51

Original Poster
Rep: Reputation: 15
sorry i found the answer

[root@cpq01 rpm-4.1]# pwd
/usr/share/doc/rpm-4.1
[root@cpq01 rpm-4.1]# cat rollbacks
The term "transaction rollback" is jargon for a method of maintaining
sets of packages that are applied to boxen sequentially. In a nutshell,
packages that are to be installed/removed are aggregated into something
called a "transaction set". Each transaction set is then assigned a unique
identifier so that the packages in the set can be distinguished, Finally,
since the transaction set identifier (TID) can be ordered, transaction sets
can be managed just like packages, since each TID will identify the sets
of packages to be installed/removed at each stage in a software life
maintenance cycle. The approach is very similar to what rpm already does
when encapsulating sets of files in packages which are then ordered
according to the package epoch, version and release.

The current release of rpm (rpm-4.0.2) has added TID's to every package
installed. In addition, an image of the header is preserved in the rpm
database that is identical to what was in the original package file.
This permits rpm to reconstruct the original package from the installed
components at any time.

The next version of rpm (rpm-4.0.3, now in a release cycle now) has added the
ability to repackage all the components to construct a copy of the original
package as part of a software upgrade. The reconstituted package as well
as the newly installed packages in the transaction set are all marked with
a TID that identifies the software upgrade uniquely. Thus software
replaced on a boxen is repackaged, and the packages can be archived
(or otherwise saved) as part of normal software management.

What remains to be done is to use the ordering property of TID's so that
transactions can be "rolled back" to any point in the past for which
the old packages are available. This will require a B-tree database
index for the currently installed transaction sets, and saving the names
of the packages that were removed. For the commonest case, a software
upgrade, each installed package can carry the names of replaced
(and repackaged) packages that were performed as a side effect of the
package upgrade. Other means will be needed to keep track of transaction
sets that only removed packages, however. Finally, a "transaction rollback"
loop still needs to be written that will walk backwards through the ordered
TID's, reconstructing the transaction set but reversing what packages
are removed and/or installed.

In addition to "transaction rollbacks", rpm will soon have the ability
to apply/commit/undo software transactions atomically. The next version of
rpm (rpm-4.0.3) already has the ability to apply/commit/undo file changes.
The term "apply" means that the file is installed with a temporary name
(currently just the original file name with the TID appended), "commit"
is the operation of renaming the file and setting it's mode and ownership,
while an "undo" is just a removal of the temporary file. The concepts
of apply/commit/undo are being extended to packages as a set of
file operations, and will need to be extended yet further to transaction
sets as well.
[root@cpq01 rpm-4.1]#
 
Old 04-15-2003, 02:41 PM   #3
djjhouse
LQ Newbie
 
Registered: Apr 2003
Posts: 3

Rep: Reputation: 0
Cool RPM Rollback

Just found this --

up2date --undo

see
https://rhn.redhat.com/help/basic/up2date-setup.html


Didn't like a glibc undo, but other packages appear to have rolled back fine.
 
Old 04-15-2003, 03:27 PM   #4
adme
Member
 
Registered: Jan 2003
Distribution: Redhat Psyche, Redhat Shrike, Solaris 9
Posts: 51

Original Poster
Rep: Reputation: 15
thank you

I will try this!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rollback of gcc failed and rpm is not working syavne Fedora 2 12-01-2005 05:52 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:51 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