I am trying to keep my TW installation mostly minimal. As of the most recent snapshot(20240311-0), Zypper is trying to install 161 new packages, at least a 3rd of which are kf6 which seem to all be KDE related. I use Xfce, and do not use Plasma or anything KDE related(except for Kdenlive). I’m assuming a lot of these are related to Plasma 6 and not Kden.
My question is, why is Zypper trying to install all of these unwanted packages/dependencies?
I have already made the following configurations to both the zypper.conf and zypp.conf files:
/etc/zypp/zypp.conf:# solver.onlyRequires = true
/etc/zypp/zypper.conf:# installRecommends = no
Zypper dup is still trying to install these packages after I refreshed the repos. What to do?
The next thing I am going to try is going into Yast and manually turn off kde related items.
Outside VirtualBox, some of these may be related to Libre Office. However, I doubt it would add this many new packages without being a full version upgrade.
The only thing I can think of, is to delete KDenlive and its KDE dependencies. And check for any “KDE patterns” selected in the Yast GUI and deselect any.
Then run a zypper ref and zypper dup, and see what the response is.
Backup your configs just in case!
This makes me think OP might’ve installed KDenlive prior to the solver config updates.
If so, it would’ve pulled a bunch of recommended stuff along with it that now needs to be updated for the KDE 6 release.
The only thing I can think of, is to delete KDenlive and its KDE dependencies. And check for any “KDE patterns” selected in the Yast GUI and deselect any.> Blockquote
Yes, that is exactly what I was thinking. I am going to try that next. If that doesn’t work, I’m going to try uninstalling kdenlive and replacing it with the flatpak.
Editing comments does not change anything in zypper behavior.
In the config file, everything is commented. If that is the case, what do you have to do to change it, and for that matter, what is the point of the config file where everything is commented?
please post computer text as preformatted (button </> in editor).
You have to add configuration directive without comment sign.
It shows you supported configuration directives and their default values and rather extensive explanation what they do. And no, not everything is commented out by default, try to look more carefully. Or run
grep -Ev '^#|^\[|^$' /etc/zypp/zypp.conf
Of course you may have edited this file and comment out everything but then I expect you to remember it.
It has been resolved. Turns out, it was indeed kdenlive that was the reason for all the Plasma 6 packages. It looks like because I changed the configs after the fact, it was still pulling recommended packages for Plasma 6. Still not sure why desktop packages/dependencies would be recommends for a single application though. Seems a bit over the top, but perhaps that’s just how KDE packages work.
It was an assumption on my part, since there are bare apps in openSuse repos that are enhanced … I figured it there’s a Flatpak app in Discover, it’s openSuse-modded. Looks like my assumption is incorrect.
I have no idea what you call “desktop packages”. You are trying to install KDE application which is built against KDE libraries and requires KDE components. So this application requires these components to be installed. Most of these dependencies are auto-generated. The package list shown by you does not include packages related to desktop environment - it includes components of KDE framework needed to run specific application.
Okay, so yesterday evening, I installed a fresh, current TW (20240313 iso) with XFCE into a VBox VM. Then I installed the Flatpak system.
Then I installed KDenlive Flatpak from KDE.org. Works great! I even copied a KDenlive project from the Host machine (which runs TW wKDE Plasma X11) and works.
And no extra KDE fluff. Did a zypper dup … nothing to do
That complete, fresh install of TW with XFCE, plus the additional Flatpak system, and KDenlive Flatpak, consumes about 3.5 GB of disk space (I checked using:
.# btrfs filesystem usage -T /)
It does not install unwanted packages.
But please do the plasma 6 upgrade in a tty/IceWm. Otherwise you will be having problems.
My instructions are:
sudo zypper dup --no-recommends -d
After you’ve finished downloading all the updates, switch to a TTY using Ctrl+alt+f4.
Then type in:
sudo zypper dup --no-recommends
This will make sure the upgrade goes smoothly. If you get switched to a login screen, like i did, switch back to the TTY using CTRL+ALT+F4. The upgrade will still continue.
I’m gonna do the update (still waiting another 2-3 TW updates) a slightly different way.
Download latest TW full iso, burn it. Boot to it. Mount laptop’s / partition. Select Upgrade.
— end.
.
But, back to subject of booting into a running system and doing the zypper dup to the KDE6 upgrade.
Heck, I would not run ANY desktop environment… even IceWM !!
So how? Boot into system. Do Ctrl-Alt-F1. Login as root. Execute the command
.# telinit 3
That brings the system to “networking but no Desktop” init mode
Now run zypper dup
telinit is a prehistoric SysV command which is obsolete since ages. These commands are translated into systemd unit activation requests. Instead of using obsolete commands which are only translated for compatibility (historic) reasons, one should use correct and actual systemd commands like:
systemctl isolate multi-user.target
-> this will start a CLI/TTY session
systemctl isolate graphical.target
-> this will switch back to GUI session
It is clearly stated in the systemd documentation for the telinit command: