免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3510 | 回复: 5
打印 上一主题 下一主题

[NetBSD] [NetBSD] 请教如何使用wget作为NetBSD的pkg_add的默认下载工具 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-07 11:05 |只看该作者 |倒序浏览
我在google上搜了半天,也查看了netbsd的邮件列表。只找到这么一个东西(如下英文部分)。这说明只代替了pkgsrc下载。无法代替pkg_add的下载。所以请教如何使用wget作为NetBSD的pkg_add的默认下载工具????

| Hello, Rui
|
| Rui Paulo wrote:
| | I tried to install some binary packages being behind proxy but I didn't
| | succeed. I know about ftp_proxy and http_proxy and set them properly
| | but couldn't make the ftp client work for me. But wget works fine. Is
| | there any way to make pkg_add work with wget? Thanks in advance!
| >
| >Did you tried to fetch some other file with ftp(1) ? Does it work ?
|
| Sure, I did It didn't work either.
|
| >Anyway, for using wget, set the following variables in /etc/mk.conf:
| >FETCH_CMD=wget
| >FETCH_RESUME_ARGS=-c
| >FETCHUTPUT_ARGS=
| >
| >Hope this helps.
|
| Great! I will try this. Thanks for this trick!

Hmm, I'm sorry I didn't tested this first. This will only work when building
packages from source, not with pkg_add(1).

论坛徽章:
0
2 [报告]
发表于 2006-11-07 15:01 |只看该作者
我找到的.
you can't use wget for pkg_add, because all HTTP/FTP fetches
| performed using internal routines (ftpio.c) and pkg_add didn't use any
| external command (even nbftp) to retrive packages.

论坛徽章:
0
3 [报告]
发表于 2006-11-07 15:26 |只看该作者
我是这样想。楼上你找到的虽然这样说。但是既然FETCH可以下载。那么用WGET照理也是可以下载的嘛

论坛徽章:
0
4 [报告]
发表于 2006-11-07 15:50 |只看该作者
编辑/etc/mk.conf,加入
FETCH_CMD=wget
FETCH_BEFORE_ARGS=--passive-ftp
FETCH_RESUME_ARGS=-c
FETCH_OUTPUT_ARGS=-o

论坛徽章:
0
5 [报告]
发表于 2006-11-07 16:01 |只看该作者
没看清,搞错了,这是pkgsrc的

论坛徽章:
0
6 [报告]
发表于 2006-11-07 16:25 |只看该作者
pkg_add没有使用外部命令
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP