当前位置:操作系统 > Unix/Linux >>

建NetBSD及OpenBSD本地源码库

一.NetBSD

  到目录/congli/cvsd/NetBSD,建cvs-supfile,内容如下:

  *default host=cvsup.us.NetBSD.org*default base=/congli/cvsd/NetBSD*default prefix=/congli/cvsd/NetBSD*default release=cvs*default delete use-rel-suffix*default compressnetbsd

  选择一个较快的站点下载源码:

  http://www.netbsd.org/mirrors/#cvsup

  下载源码:

  # su - congli# cd /congli/cvsd/NetBSD# cvsup -gL2 cvs-supfile

  注:下载源码时间长短视网速而定,整个源码库大概需要3.8GB左右,包含src,pkgsrc等.

  二.OpenBSD:

  到目录/congli/cvsd/OpenBSD,建cvs-supfile,内容如下:

  # Defaults that apply to all the collections*default release=cvs*default delete use-rel-suffix*default umask=002*default host=cvsup.uk.openbsd.org*default base=/congli/cvsd/OpenBSD*default prefix=/congli/cvsd/OpenBSD# If your network link is a T1 or faster, comment out the following line.*default compressOpenBSD-all#OpenBSD-src#OpenBSD-www#OpenBSD-ports#OpenBSD-x11#OpenBSD-xf4

  选择一个较快的站点下载源码:

  http://www.openbsd.org/cvsup.html

  下载源码:

  # su - congli# cd /congli/cvsd/NetBSD# cvsup -gL2 cvs-supfile

  注:下载源码时间长短视网速而定,整个源码库大概需要2.6GB左右,包含src,ports,x11等.

  到此,所需要的源码已经在本机上,搭配cvsd即可对外提供服务
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,