+ -
当前位置:首页 → 问答吧 → slapt-get怎么设置**

slapt-get怎么设置**

时间:2005-09-01

来源:互联网

这种没有图形界面的工具如何设置**
请教
不要叫我看man
我的英语不太好
请帮帮忙吧

作者: sumargin   发布时间: 2005-09-01

为什么没人回,是因为这个问题太白痴,大家都不屑回答,还是slap-get根本为支持**

作者: sumargin   发布时间: 2005-09-01

如果是http**就用这个
export http_proxy="http://proxy_ip: proxy_port"
需要用户名密码则:
export http_proxy="username: password@http://proxy_ip: proxy_port"
上面的每次启动一个终端都要重新输入
我不知道把它写进rc.local是不是可行,你可以试试,如果可以就上来告诉大家一声

这个是debian apt-get的方法,如果不行,那就只能man了,呵呵

作者: failsafe   发布时间: 2005-09-01

写进 ~/.bashrc 就可以了。

作者: shadkong   发布时间: 2005-09-01

24. How do I specify proxy settings?

slapt-get takes advantage of the normal http_proxy and ftp_proxy shell
variables. Here are some examples:

# setting the env variables for the entire session
$ export http_proxy=http://host:port
$ export ftp_proxy=ftp://host:port
# just setting them for the current command invocation
$ http_proxy=http://host:port slapt-get --update

If you are using ~/.netrc, libcurl automatically picks up your preferences.
See the netrc(5) manpage for more information.

作者: fei   发布时间: 2005-09-01

热门下载

更多