Itâs not about disk space, but about stale libraries. The most blatant issue was with vlc. It worked fine for a long time, but recently started to deteriorate and automatic settings would no longer work. Deleting some 100 unnecessary packages fixed that. Vlc is now great again and works like a fresh install.
That is then an example of something that should never have happened and where the effort to solve it was dumped onto the users.
That is different from what the OP does and asks for. Installing a package apparently for some testing, not taking notes on what it draws in. Then, not wanting to use it anymore, he removed the package and remembers that there were dependencies installed also. For some reason (unknown to me) he wants to remove them also.
It is a question we see here asked more often and I assume that providing a solution that works in a special case for a special purpose isnât really helping. My approach is to try to make clear that it is not that obvious to program something for what they think is easy to achieve.
I thought that superseded packages were removed as part of the dependency handlingâŠ
Removing works perfectly with a fixed set of never changing repositories. However repos are changing. They get deleted and new ones are added. As a result stale packages (âunneededâ) are left behind.
As an aside VLC is working here without problems on both Leap 15.2 and TW systemsâŠ
The same here. Upon removing these packages vlc works pretty perfect again on all openSUSE systems here.
At the time of repository deletion would you not then have âorphanedâ packages, and wouldnât that be an opportune moment to decide if they should be kept or deleted?
(Or maybe Iâve the wrong end of the stick here, perhaps I should read the entire thread from the start)âŠ
Iâm on Tumbleweed, but I guess there should be no difference.
I also tried to uninstall all dependencies from last install, but zypper didnât work properly, no matter what command I used.
For example:
**sudo zypper in lxappearance **
[sudo] Passwort fĂŒr root:
Repository-Daten werden geladen...
Installierte Pakete werden gelesen...
PaketabhÀngigkeiten werden aufgelöst...
Die folgenden 11 NEUEN Pakete werden installiert:
libImlib2-1 libobrender32 libobt2 libstartup-notification-1-0 lxappearance lxappearance-lang lxappearance-obconf lxappearance-obconf-lang obconf openbox xdg-menu
Die folgenden 4 empfohlenen Pakete wurden automatisch gewÀhlt:
lxappearance-lang lxappearance-obconf lxappearance-obconf-lang obconf
11 neue Pakete zu installieren.
GesamtgröĂe des Downloads: 1,0 MiB. Bereits im Cache gespeichert: 0 B. Nach der Operation werden zusĂ€tzlich 3,1 MiB belegt.
**Fortfahren? [j/n/v/...? zeigt alle Optionen] (j):**
and then
**sudo zypper rm lxappearance **
[sudo] Passwort fĂŒr root:
Installierte Pakete werden gelesen...
PaketabhÀngigkeiten werden aufgelöst...
Die folgenden 4 Pakete werden GELĂSCHT:
lxappearance lxappearance-lang lxappearance-obconf lxappearance-obconf-lang
4 zu entfernende Pakete.
Nach dem Vorgang werden 670,4 KiB freigegeben.
**Fortfahren? [j/n/v/...? zeigt alle Optionen] (j):**
or
**sudo zypper rm -u lxappearance **
Installierte Pakete werden gelesen...
PaketabhÀngigkeiten werden aufgelöst...
Die folgenden 4 Pakete werden GELĂSCHT:
lxappearance lxappearance-lang lxappearance-obconf lxappearance-obconf-lang
4 zu entfernende Pakete.
Nach dem Vorgang werden 670,4 KiB freigegeben.
**Fortfahren? [j/n/v/...? zeigt alle Optionen] (j):**
or
**sudo zypper rm --clean-deps lxappearance **
Installierte Pakete werden gelesen...
PaketabhÀngigkeiten werden aufgelöst...
Die folgenden 4 Pakete werden GELĂSCHT:
lxappearance lxappearance-lang lxappearance-obconf lxappearance-obconf-lang
4 zu entfernende Pakete.
Nach dem Vorgang werden 670,4 KiB freigegeben.
**Fortfahren? [j/n/v/...? zeigt alle Optionen] (j):**
So why Zypper thinks these 7 left packages are needed/used by something else if I havenât done anything in between?
Zypper works properly. âzypper installâ selects recommended packages too. âzypper removeâ does not select recommended packages. You need to remove recommended packages explicitly.