PDA

View Full Version : Adding SDK repository via command line rug/zypper



jmroth
09-May-2012, 14:00
Hi there,

how do I add an SDK repository on the command line (both SLES 10 and 11)? I tried the following:

SLES10:


rug sub --strict --service http://smt/ SLE10-SDK-SP4-Pool
It says
ERROR: 'SLE10-SDK-SP4-Pool' is not a valid catalog in the specified service http://smt/.


rug ca
does not show the SDK, even though it's available on the SMT server.

I could also use

rug sa -t ZYPP http://user@smt/repo/\$RCE/SLE10-SDK-SP4-Pool/sles-10-x86_64 SLE10-SDK-SP4-Pool
but this adds an entire service instead of only a catalog of the already existing SMT service. I feel that is not right.

SLES11:

Here I can use

zypper ar -t yum -n SLE11-SDK-SP1-Pool http://smt/repo/\$RCE/SLE11-SDK-SP1-Pool/sle-11-x86_64/ SMT-http_smt:SLE11-SDK-SP1-Pool

But, Yast does not show

Service: SMT-http_smt
in the repository details for that repository, however all repositories from the SMT added via yast will have that line. Is that bad? What is the difference?

Thanks for any info or documentation you might have on that subject.

Automatic reply
17-May-2012, 13:30
jmroth,

It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.

Has your issue been resolved? If not, you might try one of the following options:

- Visit http://www.suse.com/support and search the knowledgebase and/or check all
the other support options available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.suse.com)

Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.suse.com/faq.php

If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your SUSE Forums Team
http://forums.suse.com

ashbyj
24-May-2012, 18:46
I don't have a direct answer to your questions, but this is how I remove and add repositories in SLES 11 with zypper:

Add repository

Mine is via nfs, but I'm sure an http path would work just as well:


zypper ar nfs://192.168.20.22/sles11sp1/SLE-11-SP1-SDK-DVD-x86_64-GM-DVD1 sles11sp1_sdk

List repositories



myhost:~ # zypper lr
# | Alias | Name | Enabled | Refresh
--+--------------------------------------------------+--------------------------------------------------+---------+--------
1 | sles11sp1_sdk | sles11sp1_sdk | Yes | No

Remove repository


zypper rr 1

I believe you can also specify by alias, e.g. "zypper rr sles11sp1_sdk". Hope this helps.