Linux 通过代理安装软件
打开
/etc/yum.conf
?
在最后加入:
# 代理服务器 - proxy server:port numberproxy=http://192.168.100.21:3128# 用于 yum 连接的帐户细节#proxy_username=yum-user#proxy_password=qwerty
即可。
如果有密码时,用户名及密码都设置一下就可以了。