Fedora 42 RPM /usr/sbin and /usr/bin

There appears to be a change in Fedora 42 regarding the use of /usr/sbin.
I have an RPM package that uses the variable %{_sbindir}. It has resolved to
/usr/sbin in all versions prior to F42 but in F42 it is resolving to /usr/bin.

Can anyone tell me if this is a bug or a feature? If it’s a bug I’ll put in a ticket but I don’t want to anoy anyone if it is a deliberate action.

Michael

forty-one $ cat /etc/fedora-release && rpm --eval %{_sbindir}
Fedora release 41 (Forty One)
/usr/sbin
forty-two $ cat /etc/fedora-release && rpm --eval %{_sbindir}
Fedora release 42 (Forty Two)
/usr/bin

It is a feature, see Changes/Unify bin and sbin - Fedora Project Wiki

4 Likes

"The change should be mostly invisible for users. "

I guess not me :weary_cat:

1 Like

First it has been said it will not go for F42, but then there has been done already a lot of work. If you find errors in packages you are installing, please report so that it can be fixed.

Its in F42

Yes, have a look here:

It is done gradually. Commands found in /usr/sbin are moved to /usr/bin and a symbolic link to the command is created in /usr/sbin. This hasn’t happened for all packages yet.

In the future, when all commands have been moved, /usr/sbin will become a symbolic link to /usr/bin, just like /bin is a symbolic link to /usr/bin.

You are in the role of a developer not a user.
Thus you see the change ss you build an rpm for f42.

Actually it’s already merged and symlinked from the start for new F42 installations, and
only upgrading from previous releases may require manual action:
F42 Change Proposal: Unify /usr/bin and /usr/sbin (System-Wide) - #33 by vgaetera

3 Likes