The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.

2.6.1 Clearing the Proxy Cache

If required to clear up package provisioning problems, you can clear the proxy cache as follows:

  1. Stop the httpd and squid services.

    For Oracle Linux 6, type the following commands:

    # service httpd stop
    # service squid stop

    For Oracle Linux 7, type the following commands:

    # systemctl stop httpd
    # systemctl stop squid
  2. Delete the contents of the cache as follows:

    # rm -Rf /var/cache/rhn/*
  3. Restart the squid and httpd services.

    For Oracle Linux 6, type the following commands:

    # service squid start
    # service httpd start

    For Oracle Linux 7, type the following commands:

    # systemctl start squid
    # systemctl start httpd