How do I add the SLE 12 SDK online repositories from CLI ?

This article here shows you how to add the SLE 11 SDK online repositories without media from the command line:
https://www.novell.com/support/kb/doc.php?id=7015337

However I cannot determine how to do this in SLE 12.

This forum post:
https://forums.suse.com/showthread.php?7003-How-to-add-SDK-ISO-file-repository-successfully&p=30176#post30176
instructs you to go into YaST to do it.

However I would like to automate this from the command line.

How do I add the SLE 12 SP1 SDK from the command line?

Hi
If you look at the man page (man zypper) and search for iso there are some examples, you just need the iso type, iso image name and path (url) to the iso image and an alias (name) for example;

zypper ar 'iso:/?iso=SLE-12-SP1-SDK-DVD-x86_64-DVD1.iso&url=/path/to/iso_image' SLE-12-SP1-SDK
zypper ref

Thanks for the reply.

I don’t want to use ISO’s. I’m trying to automate it.

Like in this article:
https://www.novell.com/support/kb/doc.php?id=7015337
You can wget the files the article references, install them scripted without any need for ISO’s.

Is there a reason why there is not a Knowledgebase article for 12.x just like there is one for 11.x ?

[QUOTE=box293;32981]Thanks for the reply.

I don’t want to use ISO’s. I’m trying to automate it.

Like in this article:
https://www.novell.com/support/kb/doc.php?id=7015337
You can wget the files the article references, install them scripted without any need for ISO’s.

Is there a reason why there is not a Knowledgebase article for 12.x just like there is one for 11.x ?[/QUOTE]
Hi
For the online repos you need your mirror credentials and use the url’s from SCC, so if the system is first registered, then the mirror credentials should be stored, visit https://scc.suse.com and under Subscriptions → Base and Extension products you can expand the relevant links for the urls to use.

zypper ar -f https://<rest_of_link> your_repo_name

With the move to SCC things are a bit different now, however during the install if you register the system you can select the repos to add?

On 15/06/16 04:54, box293 wrote:
[color=blue]

This article here shows you how to add the SLE 11 SDK online
repositories without media from the command line:
https://www.novell.com/support/kb/doc.php?id=7015337

However I cannot determine how to do this in SLE 12.

This forum post:
https://forums.suse.com/showthread.php?7003-How-to-add-SDK-ISO-file-repository-successfully&p=30176#post30176
instructs you to go into YaST to do it.

However I would like to automate this from the command line.

How do I add the SLE 12 SP1 SDK from the command line?[/color]

If you’re using SLES12 SP1 (as per the prefix you chose when starting
this thread) you can use “SUSEConnect -p sle-sdk/12.1/x86_64” but if
you’re using SLES12 (as per message text) use “SUSEConnect -p
sle-sdk/12/x86_64”.

For a list of all the SUSEConnect commands to register products via the
command line use “SUSEConnect --list-extensions”.

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

[QUOTE=smflood;32992]If you’re using SLES12 SP1 (as per the prefix you chose when starting
this thread) you can use “SUSEConnect -p sle-sdk/12.1/x86_64” but if
you’re using SLES12 (as per message text) use “SUSEConnect -p
sle-sdk/12/x86_64”.

For a list of all the SUSEConnect commands to register products via the
command line use “SUSEConnect --list-extensions”.[/QUOTE]

Thanks very much, those commands were exactly what I was looking for.

Appreciate you answering my question as well as the extra command for extensions.