HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Technical (http://www.howtoforge.com/forums/forumdisplay.php?f=8)
-   -   Repositories- IP and just how do they work (http://www.howtoforge.com/forums/showthread.php?t=41645)

happz 8th December 2009 14:44

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

topdog 9th December 2009 08:59

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


happz 11th December 2009 04:25

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

topdog 11th December 2009 07:59

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


All times are GMT +2. The time now is 21:01.

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