LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 576|回复: 0

openSUSE11.4添加本地ISO源

[复制链接]
发表于 2011-3-19 12:47:37 | 显示全部楼层 |阅读模式
转自:http://www.linuxsight.com/blog/1229



当openSUSE使用zypper安装软件时,默认会找光驱上的光盘,找不到会从网络安装。

自从使用硬盘安装http://www.linuxsight.com/blog/1 ... ISO来配置源。

如果是Fedora可以看一下:fedora 13 设置ISO源

查看一下源。

fantlam@linux-4k5v:~> zypper repos

# | Alias | Name | Enabled | Refresh

—+———————————-+———————————-+———+——–

1 | Packman Repository | Packman Repository | Yes | Yes

2 | Updates-for-openSUSE-11.4-11.4-0 | Updates for openSUSE 11.4 11.4-0 | Yes | Yes

3 | google-chrome | google-chrome | Yes | Yes

4 | libdvdcss repository | libdvdcss repository | Yes | Yes

5 | openSUSE-11.4-11.4-0 | openSUSE-11.4-11.4-0 | Yes | Yes

6 | repo-debug | openSUSE-11.4-Debug | No | Yes

7 | repo-debug-update | openSUSE-11.4-Update-Debug | No | Yes

8 | repo-non-oss | openSUSE-11.4-Non-Oss | Yes | Yes

9 | repo-oss | openSUSE-11.4-Oss | Yes | Yes

10 | repo-source | openSUSE-11.4-Source | No | Yes

添加ISO

fantlam@linux-4k5v:~> sudo zypper addrepo iso:/?iso=/media/SOFTWARE/openSUSE-11.4-DVD-i586.iso DVDISO

正在添加安装源 ‘DVDISO’ [done]

Repository ‘DVDISO’ successfully added

Enabled: Yes

Autorefresh: No

URI: iso:///?iso=/media/SOFTWARE/openSUSE-11.4-DVD-i586.iso

再次安装软件,已经可以读到本地的ISO源了。

fantlam@linux-4k5v:~> sudo zypper in smplayer

正在构建 ‘DVDISO’ 安装源缓存 [done]

Loading repository data…

Reading installed packages…

Resolving package dependencies…

The following NEW package is going to be installed:

smplayer

1 new package to install.

Overall download size: 914.0 KiB. After the operation, additional 2.5 MiB will

be used.

Continue? [y/n/?] (y):

当然openSUSE也提供了图形化界面,不过用Linux还是命令给力。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表