Building my own CPAN repository


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Building my own CPAN repository
# 1  
Old 03-17-2010
Building my own CPAN repository

Hi there , im not sure whether im in the right section, but because im talking about perl, i guess this is the right place :-)

I have a whole host (thousands in fact) of Solaris machines that are running different versions of perl with different module sets etc.


I wanted to know whether it was possible for me to set up my own 'internal' CPAN mirror that i can update with all 5.x modules so that i can go to each of my hosts and point it to my new CPAN repository to get updated or new modules ? (regardless if the host is running perl 5.005_03 or 5.10.0) As you can guess, my machines do not have direct access to the internet

I guess the other question would be, Can i use this internal CPAN mirror to actually upgrade perl on my system? i have a few machines that are running

Code:
This is perl, version 5.005_03 built for sun4-solaris

It would be nice if i could get them all to the latest 5.10 perl without major hassle?

is any of this possible
# 2  
Old 03-17-2010
Why can't you download & install the necessary pm's in a repository in one server and make that filesystem NFS mounted on other servers? Add the necessary additions in the PATH for the local perl installed in the server(whichever version it may be)

I guess that will be efficient and more suitable for your requirement.

Last edited by dennis.jacob; 03-17-2010 at 01:46 PM..
# 3  
Old 03-17-2010
You can mirror CPAN using either rsync as detailed in How do I mirror CPAN? in the CPAN FAQ, or by using the CPAN::Mini module (and the minicpan utility). Both will mirror down the sources for Perl (minicpan only the most current version), but from there you'll have to build it yourself.
# 4  
Old 03-17-2010
Quote:
Originally Posted by pludi
You can mirror CPAN using either rsync as detailed in How do I mirror CPAN? in the CPAN FAQ, or by using the CPAN::Mini module (and the minicpan utility). Both will mirror down the sources for Perl (minicpan only the most current version), but from there you'll have to build it yourself.
That is just the first part .ie, making it sync with the cpan mirror in one server. But even if he make it sync, he needs to have that installed modules available to all other servers.
# 5  
Old 03-17-2010
Well, part of the requirement was to have access to CPAN from machines without an internet connection. These 2 approaches make that possible.

The parallel distribution of software to multiple machines can be solved completely independent from Perl, eg. by automated SSH connections.
# 6  
Old 03-18-2010
Quote:
Originally Posted by pludi
Well, part of the requirement was to have access to CPAN from machines without an internet connection. These 2 approaches make that possible.

The parallel distribution of software to multiple machines can be solved completely independent from Perl, eg. by automated SSH connections.
Absolutely..Smilie
# 7  
Old 03-18-2010
thanks guys, its given me a start
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to install CPAN without using yum on Linux?

Hi all, I am on Linux box where CPAN is not working for downloading any perl modules. When I try "perl -MCPAN -e shell" as root as well as a user, I get following error: Can't locate CPAN.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl... (2 Replies)
Discussion started by: pat_pramod
2 Replies

2. Red Hat

Error: Cannot retrieve repository metadata (repomd.xml) for repository: InstallMedia.

Most of my commands are returning this error on RHEL 6 64 bit: Also I tried installing many sofwtares, but it fails to correctly work. For example I treid installing dos2unix: # rpm -ivh dos2unix-5.3.3-5.ram0.98.src.rpm 1:dos2unix warning: user mockbuild does not... (0 Replies)
Discussion started by: India_2014
0 Replies

3. Shell Programming and Scripting

Unable to install module using cpan

Hi, I am unable to install module using cpan. It says 407 Proxy Authentication Required I did setup proxy server and given username and password in .bashrc file and apt.conf file. export http_proxy=http://username:password@proxyserver:portno/ However, still unable to install... (1 Reply)
Discussion started by: Anjan1
1 Replies

4. Shell Programming and Scripting

cpan installation

Hi All, I need to install perl module using cpan, so befor that i checked cpan is installed or not . i tried , and got below output.but it is not clear to me. can u plz explain me. I dont know what the exactly cpan is useful. and in below why it is trying to create directory. $ cpan... (2 Replies)
Discussion started by: aish11
2 Replies

5. UNIX for Dummies Questions & Answers

Problem to upgrade CPAN

Hi all, Since yesterday, I'm trying to upgrade CPAN on my Synology sevrer, because I have the next message in CPAN shell : cpan> install cpan CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Going to read /root/.cpan/sources/authors/01mailrc.txt.gz CPAN: Compress::Zlib... (2 Replies)
Discussion started by: mikael2235
2 Replies

6. Shell Programming and Scripting

Error while trying to install from CPAN

Hi i was trying to install Text::CSV from cpan... it seemed to have downloaded everythign properly but was not able to run the make file... do u have any idea as to why this happened?? Install: ============================= If you install Text::CSV_XS v.0.70, it makes Text::CSV faster. ... (5 Replies)
Discussion started by: VGR
5 Replies

7. Shell Programming and Scripting

Automating CPAN on FreeBSD

When using CPAN for the first time, a number of questions are prompted to the user, thereby halting the process. Since I am running FreeBSD I was wondering whether the inclusion of the port instead leads to the same result. So instead of having the following: perl -MCPAN -e "install DBD::SQLite"... (12 Replies)
Discussion started by: figaro
12 Replies

8. Shell Programming and Scripting

CPAN: using only wget to d/l modules?

Is there a way to tell CPAN not to use Net::Ftp and the ftp binary? I want to only use wget to download perl modules. (2 Replies)
Discussion started by: dangral
2 Replies

9. UNIX for Dummies Questions & Answers

CYGWIN/CPAN install of Expect.pm

I am attempting to install a Perl Expect module via the CPAN . CPAN goes through the process but nothing happens, sample perl scripts can not find the Expect Module. CPAN was configured via the Default process " Are you ready for manual configuration? " answered "no". CPAN install seemed to find... (1 Reply)
Discussion started by: white222
1 Replies
Login or Register to Ask a Question