LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: sunmoon1997

中文portage CVS

[复制链接]
 楼主| 发表于 2004-11-1 09:42:43 | 显示全部楼层

回复: 大哥大,能否开放cvs的public帐号

最初由 patton 发表
大哥大,能否开放cvs的public帐号?
以后以何种方式更新gentoo中文portage呢?

不好意思,出于安全方便的考虑,现在没有开放CVS的公共帐号。
如需下载最新的中文portage,可以使用这个链接:
http://www.magiclinux.org/cgi-bi ... age.tar.gz?view=tar
发表于 2004-11-1 11:05:27 | 显示全部楼层
最初由 sunmoon1997 发表
如需下载最新的中文portage,可以使用这个链接:
http://www.magiclinux.org/cgi-bi ... age.tar.gz?view=tar

怎么下的portage.tar.gz解不开啊。
:help
发表于 2004-11-1 11:57:21 | 显示全部楼层
cat glc_sync

  1. #!/bin/bash
  2. ###
  3. ### sync with the chinese portages
  4. ###

  5. WORKDIR=.
  6. PORTAGEDIR=/usr/local

  7. if [ `whoami` != "root" ]
  8. then
  9.         echo "!!!You are not root"
  10.         exit
  11. fi

  12. echo "Begin download the portage"
  13. wget http://www.magiclinux.org/cgi-bin/viewcvs.cgi/gentoo/portage.tar.gz?view=tar -O ${WORKDIR}/portage.tar.gz

  14. if [ $? -ne 0 ]
  15. then
  16.         echo "!!!Some error happend when downloading"
  17.         exit
  18. fi

  19. echo "Download successed"

  20. echo "Remove the old portage"
  21. rm -rf ${PORTAGEDIR}/portage
  22. echo "Extract the portage file"
  23. tar zxvf ${WORKDIR}/portage.tar.gz -C ${PORTAGEDIR}

  24. if [ $? -ne 0 ]
  25. then
  26.         echo "!!!Some error happend when extracting"
  27.         exit
  28. fi

  29. echo "Clear the temp file"
  30. rm -f ${WORKDIR}/portage.tar.gz

  31. echo "All successed Enjoy it"
复制代码

试试这个代码。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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