How can I install Perl module without using CPAN.pm?

后端 未结 10 1586
庸人自扰
庸人自扰 2021-02-01 21:27

Is it possible?

10条回答
  •  佛祖请我去吃肉
    2021-02-01 21:55

    If you are on a Linux box, a very large portion of the packages can usually be obtained using the built in package manager. For instance, on an Ubuntu system, if you want to install the PostgreSQL Perl module you'd simple do:

    sudo apt-get install libpg-perl
    

    You can see a list of the modules for Ubuntu here: http://packages.ubuntu.com/hardy/perl/

    I find I can often guess at the names myself. Not sure if this helps at all, but for myself I often find this easier to use than CPAN as it does a lot better at resolving dependencies.

提交回复
热议问题