/
/
Proxying CloudLinux repositories

Proxying CloudLinux repositories

Setting up a proxy can solve the issue of accessing CloudLinux repositories.

Please note!

You'll require a known working proxy server for this configuration.

Instructions

First, create a local cache with a list of mirrors on CloudLinux:

curl -x http://<proxy_server_address> https://repo.cloudlinux.com/cloudlinux/mirrorlists/cln-mirrors -o /etc/mirrorlist

In the [main] section of the file /etc/yum.conf, add the following line:

proxy=http://<proxy_server_address>

In the file /etc/sysconfig/rhn/up2date, change the following lines:

mirrorURL=file:///etc/mirrorlist
enableProxy=1
httpProxy=<proxy_server_address>

To check the availability of the repositories, run the following commands:

yum clean all
yum makecache
yum update

In this article