PDA

View Full Version : [SOLVED] dnf default -y



theking2
16th October 2017, 10:56 PM
When I install something I want to install something. I don't understand why the default is [yN] How do I change this to [Yn]?

nsnbm
17th October 2017, 01:36 AM
You could try adding the config: assumeyes=True to /etc/dnf/dnf.conf

bob
17th October 2017, 01:37 AM
Simply, "dnf install packagename" without using the "y" will list not only the package but also the dependencies so you can see if you want to install them. For instance, if you're running Gnome and want to install a KDE package, you're going to install a ton of other KDE packages as dependencies.

So, once you have the list, then you're prompted to either use the "y" or "n" to agree or to dump it.

Edit: Or, I'll bet that nsnbm already answered your question... ;)

glennzo
17th October 2017, 10:18 AM
Probably not a good idea to have dnf default to yes.

lsatenstein
18th October 2017, 04:04 AM
Or if you truly want that Y as default

yes | dnf upgrade

Danger of upgrading some piece of software that you really didn't want

theking2
18th October 2017, 08:01 AM
You could try adding the config: assumeyes=True to /etc/dnf/dnf.conf
Thanks

(I would have left it like that, but the board thinks the answer is to short, therefor:

I would like to express my sincere thanks, nsnbm! It is because of people like you the internet is a better place and we all could take a page from you book.
Hoping that all is well with you and this message meets you in good health.)

nsnbm
18th October 2017, 08:24 AM
Thank you for a most gracious reply, though I'm not sure I merit such, but I try.