I am behind a firewall at work and running CENTOS5.4. I wanted to update php from 5.xx to 5.2 and found that I am unable to get what i need to complete the task because of what i believe is our firewall at work. I get ..."Trying other mirror...."and "urlopen error timed out"....
I contacted corp and they would be willing to let me hit certain IP from the IP of my centos ispconfig servers. My problem is that I can't give the IP because when i yum install xxxxxxx, it tries so many site (and mirrors) that I can't possibly research all IP. What am I doing wrong or what can someone teach me to help me behind the firewall....?
hAppz
Last edited by happz; 8th December 2009 at 14:45.
Reason: typo
Posts: 1,352
Thanks: 0
Thanked 148 Times in 145 Posts
You can configure yum to use a specific mirror, choose one close to you and edit /etc/yum.repos.d/CentOS-Base.repo and use it as the baseurl, commenting out the mirrorlist option.
Here is an example.
Code:
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://centos.mirror.ac.za/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
They want me to give them the IP address so they can open it on the firewall. Should I ping the mirror's to get the IP and submit that or is there something else i need to do? I have read somewhere about a repo that many are using to get php 5.2 as centos does not come with the newest php version. How would i add that repo using this method and how would i be sure of the IP to relay?
Just want to make sure i cover as many question as might come up...thanks!!
Recent comments
1 day 1 hour ago
1 day 6 hours ago
1 day 10 hours ago
1 day 12 hours ago
2 days 2 hours ago
2 days 2 hours ago
2 days 7 hours ago
2 days 14 hours ago
2 days 15 hours ago
2 days 16 hours ago