Results 1 to 4 of 4

Thread: Adding repositories from CLI

  1. #1
    Join Date
    Jul 2008
    Location
    Poland
    Posts
    260

    Default Adding repositories from CLI

    I was using debian/ubuntu for a long time so I'm not much familiar with zypper
    So... I am adding repos in terminal, for example:

    Code:
    zypper ar http://opensuse-community.org/subpixel/openSUSE_11.1 Subpixel
    Is it possible to set repository autorefreshing when adding it by CLI? Cause I didn't find anything about it...

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,733
    Blog Entries
    20

    Default Re: Adding repositories from CLI

    Quote Originally Posted by rozbarwinek View Post
    I was using debian/ubuntu for a long time so I'm not much familiar with zypper
    So... I am adding repos in terminal, for example:

    Code:
    zypper ar http://opensuse-community.org/subpixel/openSUSE_11.1 Subpixel
    Is it possible to set repository autorefreshing when adding it by CLI? Cause I didn't find anything about it...
    -r is the command, but as you say it doesn't seem to show it in the zypper ar

    you could try adding as in your quote and put -r at the end

    or
    add the repo then do
    zypper mr -r Subpixel
    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: Adding repositories from CLI

    The option is "-f". To see a list of options for a zypper command cmd, enter

    zypper help cmd

  4. #4
    Join Date
    Jul 2008
    Location
    Poland
    Posts
    260

    Default Re: Adding repositories from CLI

    Thanks for help

Posting Permissions

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