Add a group so your favorite user can use zypper through sudo.
Use YaST to add a group “zypper” with GID 32000
Modify your favorite user to belong to the group zypper. This is used for password-less zypper usage. Then add the rule to sudo.
Ok, this is more clear now. Your post is for openSUSE-11.0 zypper and NOT for openSUSE-10.3 zypper. I missed the point where the distinction was made.
In openSuSE-10.3, if one types “zypper lr -u” one gets “Unknown option -u”
In openSUSE-11.0, if one types “zypper lr -u” one gets what you noted.
In openSuSE-10.3, if one types “zypper -v lr” one gets the same as if one typed “zypper lr -u” in openSUSE-11.0
In openSUSE-11.0, if one types “zypper -v lr” one gets the same as typing “zypper lr” in openSUSE-10.3/11.0 (ie the “-v” option is ignored in this case in 11.0).
Very nice post benstein! Zypper has a lot of power, and this does make it more fun to use.
The only word of caution that comes to mind is that anything could be installed by this user without any restrictions… Which is what you want, but just good to keep in mind
I still love Yast especially now with how fast it is, but Zypper is still a handy way to add stuff.
Yast to install KDE4-Kshisen the game kept trying to do impossible updates to konqueror plugins it couldn’t find and needed a higher kde4 base along other things that weren’t in the normal repos. so I couldn’t get that game on.
I could just go onto zypper and put in the name and get did get that other issue occuring at all
Read this part of my post ignore the rest. I meant to edit something by mistake and messed up, now the edit option is gone after hitting submit early. so if my first post makes no sense ignore it
Thanks for the good introduction!
And in contrast to many other tools, zypper’s man page is excellent.
However, I’m desperately looking for the old YaST2 feature of “install all matching -devel packages”. With just one click, you got all header and include files you might ever need…
Formerly under “Extras” in YaST2, this appears to be gone in favor of -debuginfo and -debugsource…
Does anyone know how to do that with zypper? I cannot do
zypper in -t pattern \*-devel
Reading installed packages…
‘*-devel’ not found.
Resolving package dependencies…
Nothing to do.
I’ve tried this in Yast except in the last step there is now another option “Run as or run as alias”. I tried “as root” or “as (my user name)”. Neither works. What do I miss here plz?
$su
password:
#zypper <and whatever command and software I want>
Now $ represents someone running on a user account with out root/admin priveledges. Where as # represents someone running with root priveledges. Don’t forget to use