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