[Bug 506701] New: offer a distro downgrade option for zypper/YaST2
http://bugzilla.novell.com/show_bug.cgi?id=506701 Summary: offer a distro downgrade option for zypper/YaST2 Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: estellnb@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.10 (like Gecko) SUSE By now zypper only offers two options for installing new software: in & dup. My request would be to supplement dup with a ddn-option (distribution downgrade). It just happens quite often that one has to remove all the packages just installed via dup from the buildservice because they do not work properly. As zypper does not offer an undo function providing ddn would probably be the only way to achieve this. It could do something like the follwing commands: zypper in -f $( grep '|X11-Xorg|' /var/log/zypp/history | grep 'install' | cut -f 3 -d '|') 2>&1 | tee /dev/stderr | grep "not found in repositories"| cut -f 2 -d " " >todel zypper rm $(cat todel) i.e. downgrade all packages of X11-Xorg that are available fromout of another source; remove all other packages (although this time I had to use Yast manually to do this because zypper has complained about a lot of packages not being available which could in deed be downgraded via Yast after disabling the X11-Xorg repo.) Reproducible: Always -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506701 Elmar Stellnberger ATK <estellnb@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Normal |Enhancement -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506701 User estellnb@gmail.com added comment http://bugzilla.novell.com/show_bug.cgi?id=506701#c1 --- Comment #1 from Elmar Stellnberger ATK <estellnb@gmail.com> 2009-05-23 04:00:16 MDT --- See Bug 506701 for a basic problem description this enhancement is meant to solve. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506701 User dmacvicar@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=506701#c2 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEW |NEEDINFO CC| |dmacvicar@novell.com Info Provider| |estellnb@gmail.com --- Comment #2 from Duncan Mac-Vicar <dmacvicar@novell.com> 2009-05-23 10:59:01 MDT --- Why you just don't do a dup with the repository with the new Xorg packages disabled? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506701 User estellnb@gmail.com added comment http://bugzilla.novell.com/show_bug.cgi?id=506701#c3 Elmar Stellnberger ATK <estellnb@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|estellnb@gmail.com | --- Comment #3 from Elmar Stellnberger ATK <estellnb@gmail.com> 2009-05-23 12:39:36 MDT --- Basically I could try it with a dup on repo-oss, at least if all affected packages were not distributed over different repos. ... but that would downgrade all packages offered by repo-oss which is definitely not what I want. f.i. having installed X11:/XOrg an doing a dup on repo-oss would downgrade all my Packman packages as well. Letting a dup on Packman follow is as well definitely something I do not want because I do only prefer certain packages distributed by Packman over their Opensuse counterpart (To me dup is just a sledgehammer and is therefore only useful with small repos for a specific application like those provided by the buildservice). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506701 User estellnb@gmail.com added comment http://bugzilla.novell.com/show_bug.cgi?id=506701#c4 --- Comment #4 from Elmar Stellnberger ATK <estellnb@gmail.com> 2009-07-08 05:23:31 MDT --- Perhaps also worth to be taken in consideration for os11.2/Openfate. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506701 http://bugzilla.novell.com/show_bug.cgi?id=506701#c5 Michael Andres <ma@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #5 from Michael Andres <ma@novell.com> 2010-08-04 13:55:45 CEST --- 11.2 has 'zypper dup --from <repo>' to perform dup on a specific repo only. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=506701 http://bugzilla.novell.com/show_bug.cgi?id=506701#c6 Elmar Stellnberger <estellnb@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED | --- Comment #6 from Elmar Stellnberger <estellnb@gmail.com> 2010-08-08 10:10:15 UTC --- No. This is not what I have been asking for. I have been asking for an "undo" which completely drops a certain repository so that no more packages from this repo remain installed. In detail this means that zypper will have to look for all packages currently installed from the offending repo and look which repos offer alternative packages (possibly multiple other repos - no zypper dup --from). If no other repo can provide an alternative the given package needs to be uninstalled. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=506701 https://bugzilla.novell.com/show_bug.cgi?id=506701#c7 --- Comment #7 from Ján Kupec <jkupec@novell.com> 2010-08-24 13:04:32 UTC --- (In reply to comment #0)
As zypper does not offer an undo function providing ddn would probably be the only way to achieve this.
Not really. IMO it would be much more worth to invest in implementation of proper undo/rollback function instead of this (it's not that easy to do anyway). The rollback is even planned and will have higher priority, so let's focus on that. One more thing comes to my mind: why not enable "keeppackages" for all repos and create a snapshot (hardlink all /var/cache/zypp/packages files recursively to some dir) and use this snapshot as a repository to go back to using 'zypper dup --repo snapshot' with solver.upgradeRemoveDroppedPackages = true. This could be even one way of doing real rollback... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=506701 https://bugzilla.novell.com/show_bug.cgi?id=506701#c8 --- Comment #8 from Ján Kupec <jkupec@novell.com> 2010-09-07 15:27:04 UTC --- (In reply to comment #2)
Why you just don't do a dup with the repository with the new Xorg packages disabled?
Because that would that would trigger upgrade/downgrade of all packages, not just those from the repository you want to get rid of. That's something you want to avoid in this case. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=506701 https://bugzilla.novell.com/show_bug.cgi?id=506701#c9 --- Comment #9 from Elmar Stellnberger <estellnb@gmail.com> 2010-12-14 18:31:27 UTC --- In consecution to Comment #6: Once again having run into needing such a feature my idea is to do the following: Disable the offending repo. Query all packages installed from that repo (by an own python program of mine), uninstalling and reinstalling them as kept in a package list file. That should help. I hope. (breamfishing around with vim and elinks because a zypper dup of Xorg has once more broken my X.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=506701 https://bugzilla.novell.com/show_bug.cgi?id=506701#c10 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |WONTFIX --- Comment #10 from Duncan Mac-Vicar <dmacvicar@novell.com> 2011-05-17 14:45:47 UTC --- We accept patches for this, but we will not implement it ourselves. For a more generic undo functionality, wait for snapper in Factory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com