[CentOS] YUM Proxy

Les Mikesell lesmikesell at gmail.com
Mon Jul 20 17:31:51 UTC 2009


Alberto García Gómez wrote:
> Dear Fellows:
>
> I'm under a proxy server (squid) and I need to update my centos but every 
> time that I run yum -y update tells me that I can no find a file that 
> exists. The problems is that this machine that I'm trying to update has no 
> graphic shell, so I need to make all by console.
>
>   
Yum respects the standard environment variables for proxy settings, so 
from the command line you can:

http_proxy=http://my_proxy:3128 ftp_proxy=http://my_proxy:3128 yum -y update
where my_proxy is the name or address of your squid server.
Or you can edit the yum configuration to add a proxy setting.

-- 
  Les Mikesell
    lesmikesell at gmail.com




More information about the CentOS mailing list