maverick wrote:
Hi guys I recently setup a Fedora 5, this server will provide MySql
to 30 or 40 people.  I will write a simple program that will allow
them to schedule resources in the labs I'm responsible for.  My
problem is that we have a proxy to get out to the internet and IT has
made it difficult to use.  I just wondering if anyone has setup yum
or some other program to do that with the proxy problem and if so
were did you look for samples.  I have looked at a buch on the
internet and have tried most of them with out success.

What kind of proxy do you have? Is it a transparent proxy (i.e uses port 80 on the gateway) or do you have to assign it a specific port on the proxy machine?

yum normally uses regular HTTP 1.1 on port 80 to do all its work. The proxy needs to properly support HTTP 1.1 <http://wiki.linux.duke.edu/YumFaq> (see question 5).

Reading the yum.conf man page shows that you can create an entry for the proxy server as well as a user name and password if needed. The /etc/yum.conf file would look something like this:

<--------------------begin---------------->

[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

proxy=http://192.168.42.10:3228
proxy_username=maverick
proxy_password=mysecrect


# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d


<---------------end----------------->

The proxy line specifies a URL for the proxy. The example I gave uses an IP address and a port. You could also use a name and have DNS resolve it and if you leave off the port it defaults to 80.

Gus


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to