To see if I had hugo installed, I opened up a console and simply typed “hugo”.
Fedora told me it was not installed and offered to install it. I just had to press “y”. (Case A).
Doing:
dnf install hugo
Gives:
The requested operation requires superuser privileges.
(Case B)
I cancelled this and did not install Hugo in this way.
So my question is:
How come I am not asked for my su password in the case A, but I am asked in Case B?
Because I am installing the same package, I would presume Fedora would apply the same security policy. It seems insecure to me to not be asked my su password in the Case A.
I thought it maybe it is because I did not install hugo in Case A, but I simply typed “hugo” in console and Hugo ran right away, meaning to me it is installed.
Any enlightenment would be appreciated - thanks ahead of time.
PS I am not an IT person so an explanation in simpler language would be great.
In Case A, the installation happened via the “PackageKit-command-not-found” plugin. This only works if your user account has admin rights (i.e. it’s in the wheel group) but, unlike dnf (Case B) it doesn’t demand your password.
Of course, that means you won’t get the functionality that guesses the package name from the command you type, and you’ll need to know the package name to give to DNF. (It’s easy in this case if package hugo provides command hugo, but they won’t always match.)