Comment # 12 on bug 1175678 from Moritz Duge
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/de255f3cfff42c3a3d147d2280f9887bbb6d86bc
> - 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/zypper.33401/files/zypper.changes?expand=1

https://github.com/openSUSE/zypper/commit/aeec0c91191629af992cf6197ca43f69c7e8e9f3

https://github.com/openSUSE/zypper/blob/aeec0c91191629af992cf6197ca43f69c7e8e9f3/doc/zypper.8.txt#L924




BY THE WAY:
I didn't know that one yet :-)
zypper install-new-recommends


You are receiving this mail because: