Bug 1228069

Summary: Add option --allow-obsolete to zypper
Product: [openSUSE] openSUSE Tumbleweed Reporter: Björn Tantau <suse.com>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Enhancement    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Björn Tantau 2024-07-17 13:31:57 UTC
Very often for me a `zypper dup` operation fails for me because the dependencies of some packages still require an obsolete package.

````
Problem: 1: the installed libcholmod3-3.0.12-150100.9.2.3.x86_64 requires 'libopenblas_pthreads.so.0()(64bit)', but this requirement cannot be provided
deleted providers: libopenblas_pthreads0-0.3.25-150500.4.5.2.x86_64

 Solution 1: Following actions will be done:
  deinstallation of hipsolver-2.1.1.60101-sles154.90.x86_64
  deinstallation of hipsolver-devel-2.1.1.60101-sles154.90.x86_64
  deinstallation of rocm-hip-libraries-6.1.1.60101-sles154.90.x86_64
  deinstallation of rocm-hip-sdk-6.1.1.60101-sles154.90.x86_64
  deinstallation of rocm-ml-libraries-6.1.1.60101-sles154.90.x86_64
  deinstallation of rocm-ml-sdk-6.1.1.60101-sles154.90.x86_64
  deinstallation of rocm-6.1.1.60101-sles154.90.x86_64
 Solution 2: keep obsolete libopenblas_pthreads0-0.3.25-150500.4.5.2.x86_64
 Solution 3: break libcholmod3-3.0.12-150100.9.2.3.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/c/d/?] (c):
````

It would be great if we had an option to always take the "keep obsolete" solution. Especially for automated updates or for cases where this applies to lots of packages (like in #1214303). I think keeping a few obsolete packages is preferable to not updating everything else or breaking or removing something.