RE: Yum and caching by a proxy server

From: Trevor (trevor_at_gnuguy.com)
Date: 05/26/05

  • Next message: K. Richard Pixley: "Re: OT: What's the deal with Ubuntu?"
    To: "For users of Fedora Core releases" <fedora-list@redhat.com>
    Date: Thu, 26 May 2005 09:28:53 -0600
    
    

    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@redhat.com
    [mailto:fedora-list-bounces@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@lucent.com / styma@swlink.net
    Phone: 623-582-7323
    Company:  http://www.lucent.com
    Personal: http://www.swlink.net/~styma
    --
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: K. Richard Pixley: "Re: OT: What's the deal with Ubuntu?"

    Relevant Pages

    • Using wget to test with a squid proxy server??? (syntax needed).
      ... I have a squid proxy server running. ... The proxy server is sitting on one box ... On another box, I have the GNU wget ... can specify the proxy server. ...
      (comp.unix.solaris)
    • Re: fetch_http problem
      ... >No, don't use proxy server. ... It might be doing some kind of mapping based on the user agent, ... You can tell wget to supply ... a working user-agent header. ...
      (comp.os.vms)
    • RE: translate yum output, please
      ... > I gather that local and remote primary.xml.gz files don't match. ... I see this on a regular basis at work. ... wget --cache=off http://mirror.hiwaay.net/redhat/fedora/linux/extras/3/i386/repodata/primary.xml.gz ... This seems to reload the cache on the proxy server. ...
      (Fedora)
    • Re: Using wget to test with a squid proxy server??? (syntax needed).
      ... > I have a squid proxy server running. ... > The proxy server is sitting on one box ... wget is on Box B to test squid on ... > can specify the proxy server. ...
      (comp.unix.solaris)