openSUSE / zypper

World's most powerful command line package manager
http://en.opensuse.org/Portal:Zypper
Other
403 stars 110 forks source link

[Feature Request] Use PolKit for graphical authentication when not invoked as superuser. #494

Open RokeJulianLockhart opened 1 year ago

RokeJulianLockhart commented 1 year ago

If I don't use

su root -c "zypper install $package"

the terminal shows

Root privileges are required to run this command.
NativeCommandExitException: Program "zypper" ended with non-zero exit code: 5.

whereas if I invoke

snap install $package

image

appears, and if a password isn't supplied

error: access denied (try with sudo)
NativeCommandExitException: Program "snap" ended with non-zero exit code: 1.