[CentOS] YUM Proxy

Marcelo M. Garcia marcelo.maia.garcia at googlemail.com
Mon Jul 20 16:38:23 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.
> 
> Saludos Fraternales
> _____________________________
> Atte.
> Alberto García Gómez M:.M:.
> Administrador de Redes/Webmaster
> IPI "Carlos Marx", Matanzas. Cuba.
> ----- Original Message ----- 
> From: "Sean Carolan" <scarolan at gmail.com>
> To: "CentOS mailing list" <centos at centos.org>
> Sent: Monday, July 20, 2009 11:28 AM
> Subject: [CentOS] Limit RAM used by a perl script
> 
> 
>> I have a perl script which runs from a cron job.  How would you limit
>> the amount of RAM that this script is allowed to consume?  Is there a
>> ulimit setting that will accomplish this?  If so does ulimit have to
>> be run each time the script is run, or is there a way to set it
>> permanently?
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org
>> http://lists.centos.org/mailman/listinfo/centos 
> 
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos

Hi

To use yum with proxy you have to configure 3 files:
/etc/yum.conf: add the line
    proxy=http://xxx.xxx.xxx.xxx:yyy
where yyy is the port.

/etc/wgetrc: There are 2 lines that you have to edit:
    http_proxy=http://xxxx(...):yyy
    ftp_proxy=http://xxx.(...):yyy

/root/.bash_profile
    export http_proxy=http://xxx(...):yyyy
    export ftp_proxy=http://xxx(...):yyyy

Regards

mg.



More information about the CentOS mailing list