OpenAthens LA support ended on 31 March 2020

Search

Skip to end of metadata
Go to start of metadata

This section describes how to configure yum to use a proxy, which will allow connections to both the standard repositories and the OpenAthens repository.

Standard Repositories

All the standard repositories which are enabled by default are connected to via http, e.g. the CentOS-Base and CentOS-Media repositories.

To connect to these we can add the proxy details directly to the yum.conf configuration file:

sudo nano /etc/yum.conf

... and then add the following line or lines

proxy = http://YOUR_PROXY_ADDRESS:YOUR_PROXY_PORT
# If your proxy requires authentication, uncomment and update the next two lines
# proxy_username=USERNAME
# proxy_password=PASSWORD

OpenAthens Repository

The OpenAthens Repository requires authentication so is connected to via httpS which means we need to override the proxy details in the main yum config file for the openathens.repo to use a secure path:

sudo nano /etc/yum.repos.d/openathens.repo

... and then add the following line or lines

proxy = https://YOUR_PROXY_ADDRESS:YOUR_PROXY_PORT 
# If your proxy requires authentication, uncomment and update the next two lines
# proxy_username=USERNAME
# proxy_password=PASSWORD

Testing

To check this has all worked run the following commands:

sudo yum clean all
sudo yum update

What you should see is output similar to:

Loaded plugins: fastestmirror
Determining fastest mirrors
 * addons: anorien.csc.warwick.ac.uk
 * base: anorien.csc.warwick.ac.uk
 * extras: anorien.csc.warwick.ac.uk
 * updates: anorien.csc.warwick.ac.uk
addons                    | 951 B 00:00
addons/primary            | 202 B 00:00
base                      | 2.1 kB 00:00
base/primary_db           | 1.6 MB 00:00
extras                    | 2.1 kB 00:00
extras/primary_db         | 181 kB 00:00
openathens                | 951 B 00:00
openathens/primary        | 6.0 kB 00:00
openathens  37/37
openathens-dev            | 951 B 00:00
openathens-dev/primary    | 8.7 kB 00:00
openathens-dev  53/53
updates                   | 1.9 kB 00:00
updates/primary_db        | 915 kB 00:00
.....................
  • No labels