Is it posssible to add default repository/repositories to SLES when the original repository is unavailable?

quantummind picture quantummind · Apr 15, 2016 · Viewed 49.5k times · Source

I've got a SLES server installed by someone who is not available. I've checked /etc/zypp/repos.d , there is a repo file SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109.repo

It's content is :

[SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109]
name=SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109
enabled=1
autorefresh=0
baseurl=cd:///?devices=/dev/sr0
path=/
type=yast2
keeppackages=0

The CD repository (/dev/sr0) is not available.

I would like to add default net repository/repositories to it however after searching a lot for I could not find how to do that. I know how to add a repository, but I don't know how to add default repositories.

Could you please provide zypper addrepo command for them?

EDIT This question can be applied generically to any version of SLES, not just for SLES 11 SP4 as when it was originally asked.

Answer

Clerenz picture Clerenz · Aug 24, 2016

The "default" repositories of suse are listed here. I guess you might at least want to add Official Repositories > OSS.

zypper addrepo http://download.opensuse.org/distribution/11.4/repo/oss/ oss