yum 使用代理的设置

By: Zhiqiang Ma In: Linux

方法一:
如果使用wget下载包的话:
(1)su或用root登录

(2)设置环境变量
export http_proxy=http://IP:PORT
实际这是wget使用的代理设置。

(3)yum时最好不使用插件:
yum –noplugins

方法二:
使用yum自带的方式下载包。
(1)设置文件:
/etc/yum.conf

加入这样一行:
proxy=http://IP:PORT

若要求使用用户句和密码:
proxy_username=USERNAME
proxy_password=PASSWORD

(2)yum时最好不使用插件并在root终端下:
su
yum update –noplugins

Author: Zhiqiang Ma Posted on: Aug 16, 2008 Views: 198
Tags: , , ,
Like this post? Subscribe full-text feeds from all Fclose.com blogs:
Add your comments, share your thoughts

Be nice. Keep it clean. Stay on topic. No spam.