转自:http://www.linuxsight.com/blog/1229
当openSUSE使用zypper安装软件时,默认会找光驱上的光盘,找不到会从网络安装。
自从使用硬盘安装http://www.linuxsight.com/blog/1182后,就没刻盘,自然没有光碟,所以需要采用本地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还是命令给力。
jingxun5217 于 2012-05-23 00:10:19发表:
受教了
bennyzeng 于 2012-02-01 09:06:01发表:
好
yiyelin 于 2011-04-08 14:18:28发表:
新手任务,得回帖,谢谢LZ分享?????????????灌水莫怪?????????????有机会一定登门拜访????????????
ba0zhu 于 2011-03-21 08:50:08发表:
学习下,,,也许用得到
Growth兆 于 2011-03-20 10:03:49发表:
感谢fantlam的分享,本贴加入到Linux应用索引贴中
theset 于 2011-03-19 14:42:40发表:
顺路学习