Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Learn how to use your zypper

  1. #1
    Join Date
    Jun 2008
    Location
    Albuquerque, NM, USA
    Posts
    86

    Default Learn how to use your zypper

    First off, zypper has more fun.

    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.

    Add a new group zypper.


    Add your favorite user to the zypper group.


    User,group, or user alias %zypper
    Host or Host Alias ALL
    No Password check
    Add command /usr/bin/zypper


    Now your user is ready to rock out with zypper.

    Add a repository
    zypper addrepo (ar) [options] <URI> <alias>
    # sudo zypper ar
    Index of /distribution/11.0/repo/oss "openSUSE 11.0 OSS"

    List all repositories with URI
    zypper repos (lr) [options]
    # zypper lr -u

    Refresh all repositories
    zypper refresh (ref) [alias|#|URI]
    # sudo zypper ref

    List all uninstalled patterns
    zypper patterns (pt) [options] [repository]
    # zypper pt -u

    Install a pattern
    zypper install (in) [options] <capability|rpm_file_uri>
    # sudo zypper in -t pattern kde4_xgl

    Perform a distribution upgrade
    zypper dist-upgrade (dup) [options]
    # sudo zypper dup

    See the zypper wiki
    man zypper
    #zypper in konqueror
    It's really that much fun!
    Geeko Samurai (cc)
    My Recent Tracks

  2. #2
    Join Date
    Mar 2008
    Location
    Europe
    Posts
    25,619
    Blog Entries
    29

    Default Re: Learn how to use your zypper

    MANY THANKS for this!

    One comment ... Reference:
    Quote Originally Posted by benstein View Post
    List all repositories with URI
    zypper repos (lr) [options]
    # zypper lr -u
    I think you mean
    zypper -v lr

  3. #3

    Default Re: Learn how to use your zypper

    Quote Originally Posted by benstein View Post
    Add a repository
    zypper addrepo (ar) [options] <URI> <alias>
    # sudo zypper ar
    Index of /distribution/11.0/repo/oss "openSUSE 11.0 OSS"
    if you put [noparse][/noparse] tags around the URL, it won't be parsed by vB. so it will look like this

    Add a repository
    zypper addrepo (ar) [options] <URI> <alias>
    # sudo zypper ar http://download.opensuse.org/distribution/11.0/repo/oss/ "openSUSE 11.0 OSS"
    "If it ain't broke, find something wrong with it"

  4. #4

    Default Re: Learn how to use your zypper

    Quote Originally Posted by some-guy View Post
    if you put [noparse][/noparse] tags around the URL, it won't be parsed by vB. so it will look like this ...
    Nice tip.

  5. #5
    Join Date
    Jun 2008
    Location
    Albuquerque, NM, USA
    Posts
    86

    Default Re: Learn how to use your zypper

    zypper lr -u means list all repositories with URI.
    It's really that much fun!
    Geeko Samurai (cc)
    My Recent Tracks

  6. #6
    Join Date
    Mar 2008
    Location
    Europe
    Posts
    25,619
    Blog Entries
    29

    Default Re: Learn how to use your zypper

    Quote Originally Posted by benstein View Post
    zypper lr -u means list all repositories with URI.
    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).

  7. #7
    Join Date
    Jun 2008
    Location
    Albuquerque, NM, USA
    Posts
    86

    Default Re: Learn how to use your zypper

    You're absolutely correct. I should have clearly stated that this was regarding zypper in openSUSE 11.0.
    It's really that much fun!
    Geeko Samurai (cc)
    My Recent Tracks

  8. #8
    Join Date
    Jun 2008
    Location
    The Netherlands
    Posts
    1,306

    Default Re: Learn how to use your zypper

    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

    Thanks for the info!
    Wj
    Have a lot of fun!

  9. #9

    Default Re: Learn how to use your zypper

    Zypper is great.

    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

  10. #10

    Default Re: Learn how to use your zypper

    Quote Originally Posted by gregosmith View Post
    Zypper is great.

    I still love Yast especially now with how fast it is, but Zypper is still a handy way to add stuff.


    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

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •