Wine as root

so I installed wine 10 stable as root. was this ok as it required this on winehq.org. i uninstalled it after this and re installed wine but it needs root each time when you install

dnf install winehq-stable

for add the repository i had to go to superuser

dnf5 config-manager addrepo --from-repofile=https://dl.winehq.org/wine-builds/fedora/42/winehq.repo

RPM packages can only be installed as root, the source of the packages doesn’t matter (said differently, dnf install always install system-wide for all users, hence it needs admin privileges from sudo).