[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
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
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
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
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
http://bugzilla.novell.com/show_bug.cgi?id=506701
http://bugzilla.novell.com/show_bug.cgi?id=506701#c5
Michael Andres
http://bugzilla.novell.com/show_bug.cgi?id=506701
http://bugzilla.novell.com/show_bug.cgi?id=506701#c6
Elmar Stellnberger
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
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
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
https://bugzilla.novell.com/show_bug.cgi?id=506701
https://bugzilla.novell.com/show_bug.cgi?id=506701#c10
Duncan Mac-Vicar
participants (1)
-
bugzilla_noreply@novell.com