title: Installing Perl modules to a specific location
body: <p>I have several Linux machines that run Perl programs and other programs and tools.</p>
  
  <p>I want to keep all tools between machines synchronized, so I have shared the <code>/usr/local</code> directory between one machine (Main) and the others.</p>
  
  <p>Now I would like to keep all my Perl modules and their dependencies synchronized as well in <code>/usr/local/&lt;path to modules&gt;</code>.</p>
  
  <p>I have found the <a href="https://metacpan.org/pod/local::lib" rel="nofollow noreferrer"><code>local::lib</code></a> module, but that is intended to install modules to your home directory.</p>
  
  <p>How can I set up CPAN (or CPAN alternatives) to install all modules and dependencies to one location? And how can I set up Perl on other machines to use that location to find modules?</p>