Ad Code

Responsive Advertisement

Ticker

6/recent/ticker-posts

How to use Proxy in YUM

  • This takes effect in the current session. Logging out and then logging in is useless
export http_proxy="http://10.1.1.1:2312"
  • In the yum configuration file, is not affected by logout, does not need to reset each time
nano /etc/yum.conf
Add proxy=http://10.1.1.1:2312