LinuxSir.cn,穿越时空的Linuxsir!

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

【已解决】能用cdrom做源吗?

[复制链接]
发表于 2006-8-20 19:16:19 | 显示全部楼层 |阅读模式
我下了arch的完整的cd,但安装时只装了base,那么需要安装cdrom里的软件时,怎么用?

谢谢!
发表于 2006-8-20 19:25:19 | 显示全部楼层
直接找到那个文件用pacman -U 安装
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-20 19:30:48 | 显示全部楼层
谢谢!
怎么获得包的名字,如果包比较多的话?
回复 支持 反对

使用道具 举报

发表于 2006-8-20 21:11:45 | 显示全部楼层
你可以将光盘挂载,然后将/arch/pkg目录添加到pacman.conf中做为源。源的名称为[current]。但是这样你就不能用服务器上的current源了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-20 23:06:36 | 显示全部楼层
谢谢!
关键是现在我所有的源都连不上了。在windows下还可以访问,但在arch下,就是无法连接源。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-20 23:38:59 | 显示全部楼层
能帮我看看我的pacman.conf有没有错误吗?

  1. [options]
  2. LogFile     = /var/log/pacman.log
  3. NoUpgrade   = etc/passwd etc/group etc/shadow etc/sudoers
  4. NoUpgrade   = etc/fstab etc/raidtab etc/ld.so.conf
  5. NoUpgrade   = etc/rc.conf etc/rc.local
  6. NoUpgrade   = etc/modprobe.conf etc/modules.conf
  7. NoUpgrade   = etc/lilo.conf boot/grub/menu.lst
  8. HoldPkg     = pacman glibc
  9. #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

  10. #[testing]
  11. #Server = ftp://ftp.archlinux.org/testing/os/i686

  12. [current]
  13. # Add your preferred servers here, they will be used first
  14. #Server = http://mirror.bjtu.edu.cn/ArchLinux/current/os/i686
  15. #Server = http://mirror.lupaworld.com/archlinux/current/os/i686
  16. #Server = http://mirror.vmmatrix.net/ArchLinux/current/os/i686/
  17. #Server = http://dxmirror.vmmatrix.net/ArchLinux/current/os/i686/
  18. #Server = http://cncmirror.vmmatrix.net/ArchLinux/current/os/i686/
  19. #Include = /etc/pacman.d/current

  20. [extra]
  21. # Add your preferred servers here, they will be used first
  22. #Server = http://mirror.bjtu.edu.cn/ArchLinux/extra/os/i686
  23. #Server = http://mirror.lupaworld.com/archlinux/extra/os/i686
  24. #Server = http://mirror.vmmatrix.net/ArchLinux/extra/os/i686/
  25. #Server = http://dxmirror.vmmatrix.net/ArchLinux/extra/os/i686/
  26. #Server = http://cncmirror.vmmatrix.net/ArchLinux/extra/os/i686/
  27. #Include = /etc/pacman.d/extra

  28. #[unstable]
  29. # Add your preferred servers here, they will be used first
  30. #Server = http://mirror.bjtu.edu.cn/ArchLinux/unstable/os/i686
  31. #Include = /etc/pacman.d/unstable

  32. #[community]
  33. # Add your preferred servers here, they will be used first
  34. #Server = http://mirror.bjtu.edu.cn/ArchLinux/community/os/i686
  35. #Server = http://mirror.vmmatrix.net/ArchLinux/community/os/i686/
  36. #Server = http://dxmirror.vmmatrix.net/ArchLinux/community/os/i686/
  37. #Server = http://cncmirror.vmmatrix.net/ArchLinux/community/os/i686/
  38. #Include = /etc/pacman.d/community

  39. # An example of a custom package repository.  See the pacman manpage for
  40. # tips on creating your own repositories.
  41. #[custom]
  42. #Server = file:///home/custompkgs
  43. #Server = file:///mnt/src/
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-8-21 02:36:13 | 显示全部楼层
Post by smallwolf
能帮我看看我的pacman.conf有没有错误吗?

  1. # An example of a custom package repository.  See the pacman manpage for
  2. # tips on creating your own repositories.
  3. #[custom]
  4. [color="Red"]#[/color]Server = file:///home/custompkgs
  5. [color="Red"]#[/color]Server = file:///mnt/src/
复制代码


我眼睛没花的话 你都注释掉了 :ask

那样就没用了

#号说明这一行不起作用 你不会不知道把
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-21 07:12:48 | 显示全部楼层
谢谢jarryson

是这样的,我对源是一个一个测试的,一个连不上,就先注释掉,然后用下一个,结果现在都连不上就都注释掉了。
回复 支持 反对

使用道具 举报

发表于 2006-8-21 09:29:55 | 显示全部楼层
好像只是Server = file:///mnt/src/不行,要指到下一层目录,也就是PKG包所在的目录,比如Server = file:///mnt/src/pkg,还有一点,确保你是将光盘挂到/mnt/src/了,而不是挂在/mnt/cdrom下,或者你直接将上面的Server = file:///mnt/src/改为Server = file:///mnt/cdrom/也可以。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-21 10:03:43 | 显示全部楼层
谢谢狱卒

我把iso挂在了/mnt/src了

那个写的的确是错的,后来改成了/mnt/src/arch/pkg了

但用pacman安装的时候,不认,错误信息好像是需要"refresh"
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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