repositorysusesleszypper

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


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 (such as e.g. this, which zypper puts to /etc/zypp/repos.d). However after searching a lot, 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 a zypper addrepo/zypper ar command for these?

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


Solution

  • 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