Results 1 to 5 of 5

Thread: Adding a repository via term?

  1. #1

    Default Adding a repository via term?

    I wanted to add a repository so I took the steps of zypper ar -f ((repo directory)) and got:

    Code:
    zypper ar -f http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_11.4
    If only one argument is used, it must be a URI pointing to a .repo file.
    addrepo (ar) [options] <URI> <alias>
    addrepo (ar) [options] <file.repo>
    
    Add a repository to the sytem. The repository can be specified by its URI or can be read from specified .repo file (even remote).
    
      Command options:
    -r, --repo <file.repo>  Just another means to specify a .repo file to read.
    -t, --type <type>       Type of repository (yast2, rpm-md, plaindir).
    -d, --disable           Add the repository as disabled.
    -c, --check             Probe URI.
    -C, --no-check          Don't probe URI, probe later during refresh.
    -n, --name <name>       Specify descriptive name for the repository.
    -k, --keep-packages     Enable RPM files caching.
    -K, --no-keep-packages  Disable RPM files caching.
    -f, --refresh           Enable autorefresh of the repository.
    Um my commands are correct so why isn't it working? upon going zypper ref it doesnt display in the "updated" list

  2. #2
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Adding a repository via term?

    adrienk wrote:

    > zypper ar -f
    > http://download.opensuse.org/reposit.../openSUSE_11.4

    Code:
    zypper ar -f
    http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_11.4 X11
    Just give it a short name after the url

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.1 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | Gnome 2.32 | nVidia
    ION | 3GB Ram

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Adding a repository via term?

    On 2011-04-13 15:06, adrienk wrote:
    >
    > I wanted to add a repository so I took the steps of zypper ar -f ((repo
    > directory)) and got:
    >
    >
    > Code:
    > --------------------
    > zypper ar -f http://download.opensuse.org/reposit.../openSUSE_11.4
    > If only one argument is used, it must be a URI pointing to a .repo file.
    > addrepo (ar) [options] <URI> <alias>
    > addrepo (ar) [options] <file.repo>


    Check with a command line browers (links, lynx) that there is a .repo file
    in there. It is giving you the reason, so do your part.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  4. #4

    Default Re: Adding a repository via term?

    Hello adrienk,

    Quote Originally Posted by adrienk
    Um my commands are correct so why isn't it working? upon going zypper ref it doesnt display in the "updated" list
    Currently you're using the addrepo command wrongly.
    Either you miss an argument or you should change the URI.

    If you use "zypper ar" with only one argument it should be an URI pointing to a .repo file.
    In your case it would become: http://download.opensuse.org/reposit.../X11:XOrg.repo

    The second option is to use two arguments, one containing the link and the other an alias for the repo.
    In your case it would become something like this:
    Code:
    zypper ar -f http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_11.4 X11
    X11 would become the name of the repo.

    Good luck!
    Where did I put my coffee cup?
    dir -R /home/* | grep "coffee cup"

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

    Default Re: Adding a repository via term?

    Leap 15.1_KDE
    My Articles Was I any help? If yes: Click the star below

Posting Permissions

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