please make default installation enter key behaviour to Y, instead of N, i think installation is safe process comapared to removal and it better to just click enter key, instead of have to type y many times.
my idea is: for installation Y is default and for removal N is default so user not delete accidentally
Not necessarily. The post-install scripts of a package could perform irreversible actions, so you can’t rely on being able to safely roll back an install action.
If you want to change the default on your own system, you can do so by modifying /etc/dnf/dnf.conf and adding a line: