Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Centos 5.4 here and I have two machines on the same network but only one has access to the outside world. I want to install software using yum on one machine, and rather than download the packages and copy them over manually, I'd like to set it up so it can use the other machine as a gateway.

Any tips on tips on how to do this?

share|improve this question
up vote 6 down vote accepted

install squid on the one that has access to the internet, and on the one that is NAT'd, configure yum.conf to use the other host as a proxy.

share|improve this answer
That seems to work cheers – justinhj Apr 15 '10 at 21:02

mrepo can do what you need:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.