Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 8th December 2009, 14:44
happz happz is offline
Senior Member
 
Join Date: Feb 2008
Location: Nashville, TN
Posts: 261
Thanks: 35
Thanked 6 Times in 5 Posts
Default Repositories- IP and just how do they work

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
Reply With Quote
Sponsored Links
  #2  
Old 9th December 2009, 08:59
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

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
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 11th December 2009, 04:25
happz happz is offline
Senior Member
 
Join Date: Feb 2008
Location: Nashville, TN
Posts: 261
Thanks: 35
Thanked 6 Times in 5 Posts
Default Great info

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!!


hAppz
Reply With Quote
  #4  
Old 11th December 2009, 07:59
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Yes ping get the ip and provide them with the ip address, as for php 5.2, that is in the centos testing repo http://dev.centos.org/centos/5/CentOS-Testing.repo
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
The Following User Says Thank You to topdog For This Useful Post:
happz (11th December 2009)
Reply

Bookmarks

Tags
firewall, mirror, urlopen

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 18:32.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.