Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: yast vs cpan

by Fletch (Bishop)
on Nov 09, 2006 at 16:30 UTC ( [id://583146]=note: print w/replies, xml ) Need Help??


in reply to yast vs cpan

More than likely they'll install to the same locations, so yes there could be problems if you try to install the same modules different ways.

Pros and cons would be:

  • Using the OS' package management would give you an uninstall mechanism
  • It may be slightly easier to use the OS' package manager to install the same set of packages on large numbers of machines
  • You're likely to get more timely updates to packages going straight from CPAN (i.e. you're at SuSE's mercy waiting on them to package a new release; or you'll have to roll your own local package)
  • You're likely to get a wider selection of modules straight from CPAN (you may need Some::Obscure::Module that isn't going to be packaged because there's 7 people on the planet using it)

There's probably more, but that gives you some sort of an idea. It's similar to any other "use OS' package management" versus "compile from source myself" decision.

Update: Very good followup below by Anonymonk, especially the one about compilerless boxen.

Replies are listed 'Best First'.
Re^2: yast vs cpan
by Anonymous Monk on Nov 10, 2006 at 09:39 UTC
    To add to your excellent points
    • CPAN can only solve dependencies on other CPAN modules. The package manager of your OS can solve other dependencies as well (a C library for instance).
    • The package manager or your OS (well, at least most of them) can list which files belong to a certain package, and, given a file, list to which package it belongs. That's much harder with CPAN.
    • The package manager of your OS will usually have pre-compiled binaries available (XS modules in case of Perl). Installing from CPAN requires compiling XS modules yourself. Usually not a problem, but it might not work out of the box. Also, you might have servers that don't have developer tools installed (like a C compiler).
    • The package manager of your OS may check certain resources first, for instance whether you have enough disk space to install something.
    I'm not suggesting one should use CPAN or that one should use the package manager of your OS. I'm not consistent either - on some boxes I use CPAN. On others, I use the package manager of the OS. And on some boxes, I use the package manager of the OS, RPMs (which isn't the native package manager of that OS), and install CPAN modules manually.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://583146]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-26 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found