Yum and caching by a proxy server

Trevor trevor at gnuguy.com
Thu May 26 15:28:53 UTC 2005


Yes, we have to use the wget hack to make it work, as well.  But it does
work reliably.

---

# Hack for forcing non-cached data for fetching header data
/usr/bin/wget -q --cache=off -P /tmp
http://www.domainname.com/yum/updates/headers/header.info
rm -rf /tmp/header.inf*

if [ -f /var/lock/subsys/yum ]; then
/usr/bin/yum -y update
fi

---

Trevor

-----Original Message-----
From: fedora-list-bounces at redhat.com
[mailto:fedora-list-bounces at redhat.com]On Behalf Of STYMA, ROBERT E
(ROBERT)
Sent: Thursday, May 26, 2005 9:07 AM
To: For users of Fedora Core releases
Subject: Yum and caching by a proxy server


My FC3 machine at work has been having issues
using yum.  It's the old "metadata does not
match checksum" issue which has been discussed before.
In my case I believe I have tracked it down to
caching on the part of the company proxy server.

The wget command has a feature to tell the server
to turn off caching for a particular request.  I
have been searching the documentation and internet
and cannot find a way of having yum do the same thing.

If not, an alternative would be to find a way to
algorithmically derive the url for each checksum file
and use wget to try to recache the value.

Robert E. Styma
Principal Engineer (DMTS)
Lucent Technologies, Phoenix
Email: stymar at lucent.com / styma at swlink.net
Phone: 623-582-7323
Company:  http://www.lucent.com
Personal: http://www.swlink.net/~styma

--
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list




More information about the fedora-list mailing list