Try sudo rpm --restore -a
(Haven’t used it, but it should reset permissions, uids, and caps of files back to what they should be according to the packages they came from.)
you see why it can not work? no execution permissions. I would like to see the output of ls -l /bin/ to see if another permissions are mangled too, but maybe it’s a little too much for this thread, I don’t know.
[Errno 13] Permission denied: ‘/bin/rpmkeys’
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing ‘dnf clean packages’.
$ ls -l /bin/rpm
-rwxr-xr-x. 1 root root 21304 Nov 9 15:34 /bin/rpm
$ ls -l /bin/rpmkeys
-rwxr-xr-x. 1 root root 17232 Nov 9 15:34 /bin/rpmkeys
Yes, but not because the file permissions. I don’t know what’s going on.
Some ideas for next steps:
check the permissions of directories /usr/bin and /usr
look for selinux AVCs
try without sudo but with root
maybe try without the non default polyinstantiation, turn it off again.
try other rpm commands like $ rpm -qa … does this fail too?
check for errors in the log, e.g.: