|
Bugzilla – Full Text Bug Listing |
| Summary: | offer a distro downgrade option for zypper/YaST2 | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 11.1 | Reporter: | Elmar Stellnberger <estellnb> |
| Component: | libzypp | Assignee: | E-mail List <zypp-maintainers> |
| Status: | RESOLVED WONTFIX | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Enhancement | ||
| Priority: | P4 - Low | CC: | dmacvicar |
| Version: | Final | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | openSUSE 11.1 | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Elmar Stellnberger
2009-05-23 09:47:15 UTC
See Bug 506701 for a basic problem description this enhancement is meant to solve. Why you just don't do a dup with the repository with the new Xorg packages disabled? 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). Perhaps also worth to be taken in consideration for os11.2/Openfate. 11.2 has 'zypper dup --from <repo>' to perform dup on a specific repo only. 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. (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... (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. 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.) We accept patches for this, but we will not implement it ourselves. For a more generic undo functionality, wait for snapper in Factory. |