Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Revert Recent Changes

  1. #1

    Default Revert Recent Changes

    I have recently had a couple of problems with updates messing things up (mostly my own fault due to repo issues).
    These were fairly serious in that crucial parts of KDE segfaulted on login and also caused problems with the network.
    This meant that I ended up reinstalling more than once.
    Although it isn't that hard to do, it does get a bit time consuming by the time you reconfigure everything how you want and install all the necessary codecs and applications.

    Is there any way to get YaST to store the current state before updating so that if the update messes anything up you can easily revert to the previous state?
    This would probably mean storing the previous versions of the files locally.

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,719
    Blog Entries
    20

    Default Re: Revert Recent Changes

    You can Export to file a list of packages at any time, like this:
    http://dl.dropbox.com/u/10573557/SUS...ckage-list.png
    Leap 15_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3

    Default Re: Revert Recent Changes

    Thanks, but is there anyway to store the packages themselves as well?
    Otherwise, reverting to the versions list will require you to be online to download them wont it?
    I guess in the scenario I am thinking of, I wouldn't have network access and/or the download size might be quite large.

    Is this the right way to do it from the command line?
    Code:
    zypper addrepo export.xml
    zypper update

  4. #4
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: Revert Recent Changes

    If you want to revert you disk drive to a previous state, there is cloning and imaging software for this task. Personally I didn't find it to be worth the trouble of maintaining the backup images, as problems can nearly always be resolved in text mode or with a live CD.

  5. #5

    Default Re: Revert Recent Changes

    I know what you mean.
    Cloning and imaging is a bit far for me.
    However, I am interested in the occasions where text mode and a live CD are still difficult to resolve.
    I guess some way of doing something like the Windows "Restore Points" is what I am after.
    Some way of keeping the existing crucial system files until I have check that after an update things aren't messed up.

    If YaST can't backup the files it is going to update, maybe a crude way would be to just backup/compress the key directories and revert to them (and the list as mentioned above).
    How would I best do that?

  6. #6
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: Revert Recent Changes

    /etc contains most of the system config files. Backing this up as you back up your data would be useful. There may be others, but that's the only one that comes to mind right now.

  7. #7
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Revert Recent Changes

    On 2010-12-13 02:06, opticyclic wrote:

    > I guess some way of doing something like the Windows "Restore Points"
    > is what I am after.


    No, AFAIK it only saves configuration changes, and you need to save also
    program files.

    I have seen this feature in a "serious" unix system. We did the updates,
    tested the system for a day or two, then we could decide to consolidate the
    changes or revert them. I think that the files were moved somewhere,
    hardlinks changed... :-? I don't know how they did it. Probably the new
    files were stored into a common directory, and the old on another. Then
    hardlinks were done to the new or the old version.


    You can keep downloaded rpms, and then force install the older version. But
    there is no application to do this automatically. We would have to record
    somewhere every package that is installed in a session, and what it
    replaces - then undo reinstalling the old one.

    Hold on! I heard that the GTK version of YaST has this undo feature in
    11.3. It is little known and tested, everybody saying the QT version is better.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  8. #8

    Default Re: Revert Recent Changes

    Is it possible to use yast2-gtk in KDE?

  9. #9
    Join Date
    Jul 2010
    Location
    Adelaide, Australia
    Posts
    963

    Default Re: Revert Recent Changes

    Quote Originally Posted by opticyclic View Post
    Is it possible to use yast2-gtk in KDE?
    I think you can by just installing the yast2-gtk package then as root in the terminal:
    Code:
    /sbin/yast2 --gtk
    Desktop: Gigabyte GA-Z270-HD3 - Core i7 7700K - openSUSE Leap 42.2 KDE
    Laptop: HP EliteBook 8770W - Core i7 3940XM - openSUSE Leap 42.2 KDE

  10. #10
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,719
    Blog Entries
    20

    Default Re: Revert Recent Changes

    Settings here
    This shows setting it to QT
    But obviously you can set GTK here too
    ImageBam - Fast, Free Image Hosting and Photo Sharing
    Leap 15_KDE
    My Articles Was I any help? If yes: Click the star below

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •