Skip to content

Latest commit

 

History

History
51 lines (34 loc) · 2.64 KB

CPAN_USER_DOCUMENTATION.md

File metadata and controls

51 lines (34 loc) · 2.64 KB

CPAN Repositories

Introduction

Proxying CPAN Repositories

You can set up a CPAN proxy repository to access a remote repository location, for example to proxy the official CPAN repository at https://www.cpan.org/

To proxy a CPAN repository, you simply create a new 'cpan (proxy)' as documented in Repository Management in details. Minimal configuration steps are:

  • Define 'Name'
  • Define URL for 'Remote storage' e.g. https://www.cpan.org/
  • Select a 'Blob store' for 'Storage'

Configuring CPAN for use with Nexus Repository

To configure CPAN to use Nexus Repository as a Proxy for remote CPAN sites, there is a great article available here.

To help you out, here's how to set up a site using CPAN on Mac OS X:

  • Start cpan in a terminal
  • Run o conf urllist to show you the current mirrors that are setup
  • Run o conf urllist push http://nexusUrl:nexusPort/repository/cpan-proxy/ to add a CPAN proxy you setup in the previous step

NOTE: CPAN includes other mirror sites by default, you will want to remove these if you intend to proxy solely through Nexus Repository. If you plan on doing so, just run the following command, omitting the push will replace your entire list:

  • o conf urllist http://nexusUrl:nexusPort/repository/cpan-proxy/

After you have done these steps, installs should get routed through Nexus Repository.

Browsing CPAN Repository Packages

You can browse CPAN repositories in the user interface inspecting the components and assets and their details, as described in Browsing Repositories and Repository Groups.