I wanted to add a repository so I took the steps of zypper ar -f ((repo directory)) and got:
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
adrienk wrote:
> zypper ar -f
> http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_11.4
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
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/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>
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)
Hello adrienk,
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/repositories/X11:/XOrg/openSUSE_11.4/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:
zypper ar -f http://download.opensuse.org/repositories/X11:/XOrg/openSUSE_11.4 X11
X11 would become the name of the repo.
Good luck!