Do the ubuntu repo offer an conglomerate sort of perl pkgs

Harry Putnam reader at newsguy.com
Tue Aug 8 14:40:41 UTC 2017


Joel Roth <joelz at pobox.com> writes:

> Hi Harry,

Harry wrote:

>> I know how to use cpan and have done so quite a few time... only a
>> superficial level of usage though.  I'm pretty sure when I setup cpan
>> and get to the point of installing File::Which I will have a whole
>> pile of pkgs installed... won't even be sure what a lot of them really
>> are.
>> 
>> I'd rather have all that head scratching done by apt or aptitude.

Joel R replied:

> The Debian Perl Team does an outstanding job of testing
> and packaging perl modules. Ubuntu inherits all that.
>
> In your case try, 'apt-cache search libfile-which-perl'.
> If it exists, an install will pull all dependencies.

First:
Many thanks for your helpful input, well unappreciated here

How did you know the name to search on?

I got back:

  reader > apt-cache search libfile-which-perl

  libfile-which-perl - Perl module for searching paths for executable
  programs hobbit-plugins - plugins for the Xymon network monitor

Then:
  reader > sudo aptitude install hobbit-plugins
  
  The following NEW packages will be installed:
  dctrl-tools{a} hobbit-plugins libsort-naturally-perl{a}
  libyaml-tiny-perl{a}  xymon-client{a}
  
  0 packages upgraded, 5 newly installed, 0 to remove and 0 not
  upgraded.  Need to get 376 kB of archives. After unpacking 1,862 kB
  will be used.

  Do you want to continue? [Y/n/?]

Wasn't really looking to install a `Xymon' network monitor or related
dependencies.

> Mixing CPAN installation with system perl involves
> a few uncertainties. One approach is local::lib, which lets
> you install CPAN modules to your home directory. I prefer
> that to installing with root privileges to /usr/local.

Do you mean a whole other perl version ... to get File::Which

But seems likely it would not be in a different version either, no? 

> Another approach is install separate perl versions. Perlbrew
> is fairly easy to set up, plenv is a bit more featureful.

I'm a lot on the dim side... looked at perlbrew once and thought it
looked complicated and a pain to mess with.

So, it seems the case then that the softest line of resistance is
just install it with aptitude, who knows, maybe I'll like Xymon...







More information about the ubuntu-users mailing list