[opensuse] package rollback in openSUSE
Hello: Is it possible to roll back packages to a previous state in openSUSE (10.3 or 11.2)? What are the necessary steps to prepare the system for rollback capability and what programs can be used? I searched up2date in webpin but could not find. Or is it feasible just using rpm as it mentioned in this article? http://www.linuxjournal.com/print/7034 Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 12/08/2009 11:45 AM, Istvan Gabor pecked at the keyboard and wrote:
Hello:
Is it possible to roll back packages to a previous state in openSUSE (10.3 or 11.2)? What are the necessary steps to prepare the system for rollback capability and what programs can be used? I searched up2date in webpin but could not find. Or is it feasible just using rpm as it mentioned in this article? http://www.linuxjournal.com/print/7034
Thanks, Istvan
If you are looking to "rollback" just a couple of packages open YaST package manager, select the package you want to change click on versions tab. There you can select an older version. -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
If you are looking to "rollback" just a couple of packages open YaST package manager, select the package you want to change click on versions tab. There you can select an older version.
This is not what I meant. For this I would have to know all the package names that were updated. What I want is: I want to install a given package but this package requres _a_lot_ of dependency packages to be installed. Later should I decide to remove that given package, I also want to remove these dependencies. The rollback just could restore that state easliy. (Sorry for explaining, probably you know this.) Is this possible/supported in openSUSE. Is there package for this? Thanks, Istvan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12/09/2009 09:11 PM, Istvan Gabor wrote:
This is not what I meant. For this I would have to know all the package names that were updated. What I want is: I want to install a given package but this package requres _a_lot_ of dependency packages to be installed. Later should I decide to remove that given package, I also want to remove these dependencies. The rollback just could restore that state easliy. (Sorry for explaining, probably you know this.)
No, the explanation is appropiate. I didn't quite understand what you meant.
Is this possible/supported in openSUSE. Is there package for this?
No, as far as I know. You can list all packages sorted by installation date (using rpm and some options), and thus, know what you installed recently, and manually, uninstall them, using yast, or zypper or rpm. - -- Cheers / Saludos, Carlos E. R. (from 11.2 "Emerald" GM (bombadillo)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAksgOM4ACgkQU92UU+smfQW2QACcDhYY1dApodTlUButBPJwz61h CzUAn2ulHJPVO6mkpxLegRLMHIMLk/ED =u8Ni -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09/12/09 23:54, Carlos E. R. wrote:
Is this possible/supported in openSUSE. Is there package for this?
No, as far as I know.
There are long-standing (and popular) feature requests to change to a transaction-based installation system so that such things are possible, and it is being worked on, but its not ready yet. See for example fate#300758 and fate#305305. Hopefully there will be some progress by 11.3. ( fate is openFATE, the openSUSE Feature Tracking system - at features.opensuse.org )
You can list all packages sorted by installation date (using rpm and some options), and thus, know what you installed recently, and manually, uninstall them, using yast, or zypper or rpm.
Using ' rpm --qa --last ' would work, but the better way is to look at /var/log/zypp/history - it is trivial to figure out what was installed recently, for example grep '|install|' /var/log/zypp/history | tail -n20 | cut -f3 -d'|' gives a list of the last 20 installed packages (though not taking into account if they were immediately removed again) grep '|install|' /var/log/zypp/history | tail -n20 | cut -f3 -d'|' | xargs sudo zypper remove would uninstall them all. Regards, Tejas -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thursday, 2009-12-10 at 10:20 -0000, Tejas Guruswamy wrote:
On 09/12/09 23:54, Carlos E. R. wrote:
Is this possible/supported in openSUSE. Is there package for this?
No, as far as I know.
There are long-standing (and popular) feature requests to change to a transaction-based installation system so that such things are possible, and it is being worked on, but its not ready yet. See for example fate#300758 and fate#305305. Hopefully there will be some progress by 11.3.
Interesting :-)
You can list all packages sorted by installation date (using rpm and some options), and thus, know what you installed recently, and manually, uninstall them, using yast, or zypper or rpm.
Using ' rpm --qa --last ' would work, but the better way is to look at /var/log/zypp/history - it is trivial to figure out what was installed recently, for example
grep '|install|' /var/log/zypp/history | tail -n20 | cut -f3 -d'|'
gives a list of the last 20 installed packages (though not taking into account if they were immediately removed again)
grep '|install|' /var/log/zypp/history | tail -n20 | cut -f3 -d'|' | xargs sudo zypper remove
That file is new, it doesn't exist in my 11.0. My method is: rpm -q -a --queryformat "%{INSTALLTIME}\t%{INSTALLTIME:day} \ %{BUILDTIME:day} %-30{NAME}\t%15{VERSION}-%-7{RELEASE}\t%{arch} \ %25{PACKAGER}\n" | sort | cut --fields="2-" | less -S it lists all installed packages sorted by date. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkshTG8ACgkQtTMYHG2NR9WGpwCeOqkbgy2tVY2WLgczfCpIbTVg h60An1WnmU48nyMOwzfXnS2+lFUfKd3I =I120 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 08/12/09 13:45, Istvan Gabor wrote:
Hello:
Is it possible to roll back packages to a previous state in openSUSE (10.3 or 11.2)?
No, It is being worked on as far as I know.. See also https://fedoraproject.org/wiki/Features/SystemRollbackWithBtrfs (not implying it is going to work like that though) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 08 December 2009 10:45:00 Istvan Gabor wrote:
Is it possible to roll back packages to a previous state in openSUSE (10.3 or 11.2)?
You can use workaround with YaST Software Management ability to Export list of packages. When you Import that list later Software Management will attempt to remove all packages installed after list was created. -- Regards Rajko, openSUSE Wiki Team: http://en.opensuse.org/Wiki_Team People of openSUSE: http://en.opensuse.org/People_of_openSUSE/About -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Carlos E. R.
-
Cristian Rodríguez
-
Istvan Gabor
-
Ken Schneider - openSUSE
-
Rajko M.
-
Tejas Guruswamy