| 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).作者: ground 时间: 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.作者: jazzly 时间: 2006-11-07 15:26
我是这样想。楼上你找到的虽然这样说。但是既然FETCH可以下载。那么用WGET照理也是可以下载的嘛作者: small_bee 时间: 2006-11-07 15:50
编辑/etc/mk.conf,加入
FETCH_CMD=wget
FETCH_BEFORE_ARGS=--passive-ftp
FETCH_RESUME_ARGS=-c
FETCH_OUTPUT_ARGS=-o作者: small_bee 时间: 2006-11-07 16:01
没看清,搞错了,这是pkgsrc的作者: ground 时间: 2006-11-07 16:25
pkg_add没有使用外部命令