"sudo dnf autoremove" list wlroots on fedora 42 sway

❯ sudo dnf autoremove
Package Arch Version Repository Size
Removing:
cjson x86_64 1.7.18-2.fc42 anaconda 63.9 KiB
jemalloc x86_64 5.3.0-11.fc42 anaconda 817.5 KiB
libavc1394 x86_64 0.5.4-25.fc42 anaconda 151.4 KiB
libdc1394 x86_64 2.2.7-7.fc42 anaconda 354.9 KiB
libiec61883 x86_64 1.2.0-37.fc42 anaconda 90.0 KiB
librabbitmq x86_64 0.15.0-2.fc42 anaconda 89.6 KiB
libraw1394 x86_64 2.1.2-23.fc42 anaconda 158.8 KiB
librist x86_64 0.2.7-9.fc42 anaconda 153.3 KiB
mbedtls x86_64 3.6.5-1.fc42 updates 1.3 MiB
wlroots x86_64 0.19.2-1.fc42 updates 1.3 MiB

Transaction Summary:
Removing: 10 packages

Why does the dnf autoremove command list wlroots as no longer needed(orphaned) i mean if i am not wrong the sway tiling wm is based on wlroots? I have only fedora sway spin installed from the offical sway spin with no other OS or DE installed. I can ignore the issue but i just want answer why does dnf do it is a bug or I am missing something. Thank You.

Maybe it is an old version.

If you do remove it and Sway breaks, it is easy to reinstall wlroots or Sway.

1 Like

If wlroots is updated but Sway has not yet been built for the new version, a package named wlroots0.x will be installed. Your current version of Sway depends on it. When Sway is updated, the new update will install wlroots, and autoremove will attempt to remove wlroots0.x

Can you post the output of:

rpm -qa "wlroots*"

and

rpm -q --requires sway | grep wlroots
3 Likes

Sorry for the late reply. Below are the outputs of the commands.

❯ rpm -qa “wlroots*”
wlroots-0.19.2-1.fc42.x86_64
wlroots0.18-0.18.3-1.fc42.x86_64

❯ rpm -q --requires sway | grep wlroots
libwlroots-0.18.so()(64bit)

If I am not wrong, does the Fedora Sway Spin use the old 0.18 package rather than 0.19? But why doesn’t Fedora upgrade the compositor library to the latest rather than using the old version? I didn’t install the wlroots package. It came pre-installed with Fedora Sway Spin.

So i just ran “sudo dnf autoremove” command as @manonthestreet said and it deleted the wlroots i think generic package 0.19 version the latest one because the default was 0.18, the system runs perfectly fine. Thanks @ersen and @theprogram for guiding me.

1 Like

On F43 I have

[user@fedora ~]$ rpm -qa wlroots*
wlroots-0.19.2-1.fc43.x86_64
wlroots0.18-0.18.3-1.fc43.x86_64

and dnf autoremove does not want to remove anything

yeah the default is 0.18 the 0.19 is just installed but not in use. Is there a way to upgrade to latest or the fedora will do it automatically as time passes?

current wlroots packages

❯ rpm -qa “wlroots*”
wlroots0.18-0.18.3-1.fc42.x86_64

❯ rpm -q --requires sway | grep wlroots
libwlroots-0.18.so()(64bit)

1 Like

I believe you will have to upgrade to F43 to get the latest version,
in Fedora, with its quick 6 month versions, incremental versions are usually deployed on upgrade.

1 Like

F43

[user@fedora ~]$ rpm -q --requires sway | grep wlroots
libwlroots-0.19.so()(64bit)

I have not seen any of the upgrade problems like in the bigger desktops with this upgrade of Sway.

1 Like

Sway in Fedora 42 was built with wlroots 0.18, while Sway in Fedora 43 was built with wlroots 0.19. I don’t know the reason behind this.

1 Like