当原始存储库不可用时,是否可以将默认存储库/存储库添加到 SLES? [英] Is it posssible to add default repository/repositories to SLES when the original repository is unavailable?

查看:40
本文介绍了当原始存储库不可用时,是否可以将默认存储库/存储库添加到 SLES?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了一个不可用的人安装的 SLES 服务器.我检查了 /etc/zypp/repos.d ,有一个 repo 文件SUSE-Linux-Enterprise-Server-11-SP4 11.4.4-1.109.repo

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

它的内容是:

[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

CD 存储库 (/dev/sr0) 不可用.

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.

您能否为他们提供 zypper addrepo 命令?

Could you please provide zypper addrepo command for them?

EDIT 这个问题一般适用于任何版本的 SLES,而不仅仅是最初提出的 SLES 11 SP4.

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

推荐答案

此处列出了 suse 的默认"存储库.我想你可能至少想要添加官方存储库 > OSS.

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

这篇关于当原始存储库不可用时,是否可以将默认存储库/存储库添加到 SLES?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆