# Adding SDK repository via command line rug/zypper

**URL:** <https://forums.suse.com/t/adding-sdk-repository-via-command-line-rug-zypper/22604>\
**Category:** SLES Configure-Administer\
**Created:** [May 9, 2012, 4:00pm UTC](https://forums.suse.com/t/adding-sdk-repository-via-command-line-rug-zypper/22604 "2012-05-09T16:00:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![J.M](https://avatars.discourse-cdn.com/v4/letter/j/db5fbb/32.png) [@J.M](https://forums.suse.com/u/J.M)\
**Post date:** [May 9, 2012, 4:00pm UTC](https://forums.suse.com/t/adding-sdk-repository-via-command-line-rug-zypper/22604/1 "2012-05-09T16:00:40Z")

</div>

Hi there,

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

SLES10:

```auto
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/](http://smt/).

```auto
rug ca
```

does not show the SDK, even though it’s available on the SMT server.

I could also use

```auto
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

```auto
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

```auto
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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [May 17, 2012, 3:30pm UTC](https://forums.suse.com/t/adding-sdk-repository-via-command-line-rug-zypper/22604/2 "2012-05-17T15:30:28Z")

</div>

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](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](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](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](http://forums.suse.com)

---

<div class="post-metadata">

**Author:** ![ashbyj](https://avatars.discourse-cdn.com/v4/letter/a/258eb7/32.png) [@ashbyj](https://forums.suse.com/u/ashbyj)\
**Post date:** [May 24, 2012, 8:46pm UTC](https://forums.suse.com/t/adding-sdk-repository-via-command-line-rug-zypper/22604/3 "2012-05-24T20:46:25Z")

</div>

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:

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

List repositories

[CODE]  
myhost:~ # zypper lr

# | Alias | Name | Enabled | Refresh

–±-------------------------------------------------±-------------------------------------------------±--------±-------  
1 | sles11sp1\_sdk | sles11sp1\_sdk | Yes | No[/CODE]

Remove repository

```auto
zypper rr 1
```

I believe you can also specify by alias, e.g. “zypper rr sles11sp1\_sdk”. Hope this helps.
