[Bug 1175678] complete packages --unneeded featureset (mostly "apt-mark auto")

https://bugzilla.suse.com/show_bug.cgi?id=1175678 https://bugzilla.suse.com/show_bug.cgi?id=1175678#c12 --- Comment #12 from Moritz Duge <duge@pre-sense.de> --- The patches mentioned in the automatic comment 4 and comment 7 add new options. Thanks for that! Unfortunately zypper is still missing an "apt-mark auto" equivalent (workaround below). https://github.com/openSUSE/zypper/commit/de255f3cfff42c3a3d147d2280f9887bbb...
- packages: Add --autoinstalled and --userinstalled options to list them.
zypper-1.14.71 Patches for openSUSE 15.3, 15.4 and 15.5. Tumbleweed since Snapshot20240429 NEW: # apt-mark showauto zypper packages --autoinstalled # old workaround: zypper search '' | grep -E '^i ' # ("zypper search" and "zypper packages" work too) # apt-mark showmanual zypper packages --userinstalled # old workaround: zypper search '' | grep -E '^i\+' STILL MISSING: # A counterpart to this command is still missing: # (marks as automatically installed) apt-mark auto PACKAGE # Workaround: # Add the package name to the text file /var/lib/zypp/AutoInstalled EXISTING: zypper remove --clean-deps PACKAGE zypper packages --unneeded # apt-mark manual PACKAGE zypper install --force PACKAGE # similar to "apt autoremove" and "apt autopurge" zypper packages --unneeded zypper remove --clean-deps PACKAGE # Workaround from Hans in comment 1 # zypper rm -u $(zypper pa --unneeded | grep 'i |' | cut -d'|' -f3 | tr -d ' ' | uniq | tr '\n' ' ') SEE ALSO: https://build.opensuse.org/projects/openSUSE:Leap:15.5:Update/packages/zyppe... https://github.com/openSUSE/zypper/commit/aeec0c91191629af992cf6197ca43f69c7... https://github.com/openSUSE/zypper/blob/aeec0c91191629af992cf6197ca43f69c7e8... BY THE WAY: I didn't know that one yet :-) zypper install-new-recommends -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com