- 论坛徽章:
- 0
|
我在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). |
|