I found this: Check for old packages in the official SLES 15.7 Upgrade Guide.
I think this is the final word, consistent with what @shundhammer reported.
1 Like
Another big miss by AI, check:
LT-B:~ # cat /var/lib/zypp/AutoInstalled |head
# AutoInstalled generated gio 5 feb 2026, 00:48:28
#
7zip
AppStream
ImageMagick
ImageMagick-config-7-SUSE
Mesa-demo-x
MozillaFirefox-branding-openSUSE
NetworkManager-applet-openconnect
NetworkManager-applet-openvpn
LT-B:~ #
Interesting find. But it seems to me like some commands there are outdated? I found the version for SLES 16 (Finishing the upgrade), and there they show the following command “To remove all orphaned and unneeded packages with a single command […]”:
sudo zypper rm $(zypper --no-refresh packages --orphaned --unneeded | gawk '{print $5}' | tail -n +5)
However, when I run it on my machine with Leap 16, I get the following error:
maschinami@mercuriana:~> sudo zypper rm $(zypper --no-refresh packages --orphaned --unneeded | gawk '{print $5}' | tail -n +5)
Installierte Pakete werden gelesen...
'|' wurde in den Paketnamen nicht gefunden. Fähigkeiten werden durchsucht.
Keine Anbieter von '|' gefunden.
Paketabhängigkeiten werden aufgelöst...
Keine auszuführenden Aktionen.
maschinami@mercuriana:~>
Am I missing something?
This is what zypper pa --unneeded shows on my machine with Leap 16:
maschinami@mercuriana:~> zypper pa --unneeded
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...
S | Repository | Name | Version | Arch
---+-----------------+-----------------------------+------------------------------------+-------
i | repo-oss (16.0) | acpica | 20240927-160000.2.2 | x86_64
i | repo-oss (16.0) | avahi-lang | 0.8-160000.4.1 | noarch
i | repo-oss (16.0) | canberra-gtk-play | 0.30+2-160000.2.2 | x86_64
i | repo-oss (16.0) | clutter-lang | 1.26.4-bp160.1.1 | noarch
i | repo-oss (16.0) | cogl-lang | 1.22.8-bp160.1.1 | noarch
i | repo-oss (16.0) | dejavu-fonts | 2.37-160000.2.2 | noarch
i | repo-oss (16.0) | fixmath | 2022.07.20-bp160.1.13 | x86_64
i | repo-oss (16.0) | freerdp | 3.10.3-160000.2.2 | x86_64
i | repo-oss (16.0) | gegl-0_4-lang | 0.4.62-bp160.1.2 | noarch
i | repo-oss (16.0) | gnome-logs-lang | 45.0-bp160.1.12 | noarch
i | repo-oss (16.0) | gnome-maps-lang | 48.4-bp160.1.3 | noarch
i | repo-oss (16.0) | google-carlito-fonts | 1.1.03.beta1-bp160.1.10 | noarch
i | repo-oss (16.0) | gtk-vnc-lang | 1.5.0-160000.2.2 | noarch
i | repo-oss (16.0) | klogd | 1.5.1-160000.2.2 | x86_64
i | repo-oss (16.0) | libabw-0_1-1 | 0.1.3-bp160.1.13 | x86_64
i | repo-oss (16.0) | libappindicator3-1 | 12.10.1~bzr20200706.298-160000.2.2 | x86_64
i | repo-oss (16.0) | libargon2-1 | 20190702-160000.2.2 | x86_64
i | repo-oss (16.0) | libavahi-gobject0 | 0.8-160000.4.1 | x86_64
i | repo-oss (16.0) | libavahi-ui-gtk3-0 | 0.8-160000.4.1 | x86_64
i | repo-oss (16.0) | libb64-0 | 1.2.1-bp160.1.13 | x86_64
i | repo-oss (16.0) | libboost_locale1_86_0 | 1.86.0-160000.2.2 | x86_64
i | repo-oss (16.0) | libbox2d2 | 2.4.1-bp160.1.13 | x86_64
i | repo-oss (16.0) | libcdr-0_1-1 | 0.1.7-160000.3.2 | x86_64
i | repo-oss (16.0) | libcfitsio10 | 4.5.0-bp160.1.8 | x86_64
i | repo-oss (16.0) | libclucene-contribs-lib1 | 2.3.3.4-bp160.1.13 | x86_64
i | repo-oss (16.0) | libclutter-gtk-1_0-0 | 1.8.4-bp160.1.1 | x86_64
i | repo-oss (16.0) | libcmis-0_6-6 | 0.6.2-bp160.1.13 | x86_64
i | repo-oss (16.0) | libe-book-0_1-1 | 0.1.3-bp160.1.13 | x86_64
i | repo-oss (16.0) | libeot0 | 0.01-bp160.1.13 | x86_64
i | repo-oss (16.0) | libepubgen-0_1-1 | 0.1.1-bp160.1.13 | x86_64
i | repo-oss (16.0) | libetonyek-0_1-1 | 0.1.10-bp160.1.13 | x86_64
i | repo-oss (16.0) | libexttextcat-2_0-0 | 3.4.7-bp160.1.13 | x86_64
i | repo-oss (16.0) | libfreehand-0_1-1 | 0.1.2-bp160.1.13 | x86_64
i | repo-oss (16.0) | libgimp-3_0-0 | 3.0.8-bp160.1.1 | x86_64
i | repo-oss (16.0) | libgimpui-3_0-0 | 3.0.8-bp160.1.1 | x86_64
i | repo-oss (16.0) | libgnome-games-support-lang | 2.0.1-bp160.1.10 | noarch
i | repo-oss (16.0) | libgsttranscoder-1_0-0 | 1.26.2-160000.2.2 | x86_64
i | repo-oss (16.0) | liblpsolve55-0 | 5.5.2.0-bp160.1.13 | x86_64
i | repo-oss (16.0) | libminiupnpc17 | 2.2.6-bp160.1.14 | x86_64
i | repo-oss (16.0) | libmspub-0_1-1 | 0.1.4-bp160.1.13 | x86_64
i | repo-oss (16.0) | libmwaw-0_3-3 | 0.3.21-bp160.1.13 | x86_64
i | repo-oss (16.0) | libmypaint0 | 1.6.1-bp160.1.12 | x86_64
i | repo-oss (16.0) | libmythes-1_2-0 | 1.2.5-bp160.1.11 | x86_64
i | repo-oss (16.0) | libnumbertext-1_0-0 | 1.0.11-bp160.1.13 | x86_64
i | repo-oss (16.0) | libodfgen-0_1-1 | 0.1.8-bp160.1.13 | x86_64
i | repo-oss (16.0) | liborcus-0_18-0 | 0.19.2-bp160.1.14 | x86_64
i | repo-oss (16.0) | libpagemaker-0_0-0 | 0.0.4-bp160.1.13 | x86_64
i | repo-oss (16.0) | libqqwing2 | 1.3.4-bp160.1.1 | x86_64
i | repo-oss (16.0) | libQt6MultimediaWidgets6 | 6.9.1-160000.2.2 | x86_64
i | repo-oss (16.0) | libqxp-0_0-0 | 0.0.2-bp160.1.13 | x86_64
i | repo-oss (16.0) | librdf0 | 1.0.17-bp160.1.10 | x86_64
i | repo-oss (16.0) | libshumate-lang | 1.4.0-bp160.1.7 | noarch
i | repo-oss (16.0) | libspice-client-gtk-3_0-5 | 0.42-bp160.1.18 | x86_64
i | repo-oss (16.0) | libstaroffice-0_0-0 | 0.0.7-bp160.1.13 | x86_64
i | repo-oss (16.0) | libvisio-0_1-1 | 0.1.7-160000.2.2 | x86_64
i | repo-oss (16.0) | libvncclient1 | 0.9.14-160000.2.2 | x86_64
i | repo-oss (16.0) | libwmf-0_2-7 | 0.2.13-160000.3.2 | x86_64
i | repo-oss (16.0) | libwpg-0_3-3 | 0.3.4-160000.3.2 | x86_64
i | repo-oss (16.0) | libwps-0_4-4 | 0.4.14-bp160.1.13 | x86_64
i | repo-oss (16.0) | libxmlsec1-nss1 | 1.2.41-160000.2.2 | x86_64
i | repo-oss (16.0) | libzmf-0_0-0 | 0.0.2-bp160.1.11 | x86_64
i | repo-oss (16.0) | libzxcvbn0 | 2.5-bp160.1.13 | x86_64
i | repo-oss (16.0) | mcelog | 204-160000.2.2 | x86_64
i | repo-oss (16.0) | myspell-de | 20240321-160000.3.2 | noarch
i | repo-oss (16.0) | myspell-en | 20240321-160000.3.2 | noarch
i | repo-oss (16.0) | nano-lang | 8.6-bp160.1.1 | noarch
i | repo-oss (16.0) | openldap2_6-client | 2.6.10+10-160000.3.1 | x86_64
i | repo-oss (16.0) | prctl | 1.7-160000.2.2 | x86_64
i | repo-oss (16.0) | procinfo | 18-bp160.1.12 | x86_64
i | repo-oss (16.0) | procmail | 3.24-160000.2.2 | x86_64
i | repo-oss (16.0) | sharutils-lang | 4.15.2-160000.2.2 | noarch
i | repo-oss (16.0) | smp_utils | 0.99-bp160.1.6 | x86_64
i | repo-oss (16.0) | spax | 1.6.1-160000.2.2 | x86_64
i | repo-oss (16.0) | strace | 6.14-160000.2.2 | x86_64
i | repo-oss (16.0) | system-config-printer | 1.5.18-bp160.1.3 | x86_64
i | repo-oss (16.0) | terminfo | 6.5.20250531-160000.2.2 | x86_64
i | repo-oss (16.0) | tnftp | 20230507-bp160.1.13 | x86_64
i | repo-oss (16.0) | tuned | 2.25.1.0+git.889387b-160000.2.2 | noarch
i | repo-oss (16.0) | typelib-1_0-Gegl-0_4 | 0.4.62-bp160.1.2 | x86_64
i | repo-oss (16.0) | vlan | 1.9-bp160.1.6 | x86_64
i | repo-oss (16.0) | wireless-tools | 30.pre9-160000.2.2 | x86_64
i | repo-oss (16.0) | wol-lang | 0.7.1-bp160.1.13 | noarch
maschinami@mercuriana:~>
@Maschinami It’s zypper rm $(zypper --no-refresh packages --orphaned --unneeded | gawk '{print $6}' | tail -n +5)
2 Likes