LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1089|回复: 4

slapt-get怎么设置代理

[复制链接]
发表于 2005-8-31 22:13:01 | 显示全部楼层 |阅读模式
这种没有图形界面的工具如何设置代理
请教
不要叫我看man
我的英语不太好
请帮帮忙吧
 楼主| 发表于 2005-9-1 11:20:20 | 显示全部楼层
为什么没人回,是因为这个问题太白痴,大家都不屑回答,还是slap-get根本为支持代理
回复 支持 反对

使用道具 举报

发表于 2005-9-1 12:10:48 | 显示全部楼层
如果是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了,呵呵
回复 支持 反对

使用道具 举报

发表于 2005-9-1 12:17:40 | 显示全部楼层
写进 ~/.bashrc 就可以了。
回复 支持 反对

使用道具 举报

发表于 2005-9-1 13:05:30 | 显示全部楼层
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.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表