Linux

openSUSE11.4添加本地ISO源

当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还是命令给力。

(0)

本文由 Linux视野 作者:fantlam 发表,转载请注明来源!

热评文章

评论:

3 条评论,访客:0 条,博主:0 条
  1. openSUSE user
    openSUSE user发布于: 

    楼主写一个 openSUSE 下如何使用 TeX 的教程吧

  2. aaaa
    aaaa发布于: 

    Specified path ‘/media/SOFTWARE’ is not a directory: dir:///media/SOFTWARE

    Abort, retry, ignore? [a/r/i/?] (a): a

    加了ISO源后安装文件会提示这个,是怎么回事啊?

  3. 廖世勇
    廖世勇发布于: 

    我也一样,把源删除了,还是会出现这个。。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注