Re: YUM Proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxx>
> To: "CentOS mailing list" <centos@xxxxxxxxxx>
> Sent: Monday, July 20, 2009 11:28 AM
> Subject:  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@xxxxxxxxxx
>> http://lists.centos.org/mailman/listinfo/centos 
> 
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> 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.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux