如何创建脚本 shell 命令

如何创建脚本 shell 命令

大家好,有人可以帮我用 scrit shell 获取这个命令吗?

root@VPS:/work# cpan
Loading internal logger. Log::Log4perl recommended for better logging

CPAN.pm requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.

Would you like to configure as much as possible automatically? [yes] yes


Autoconfiguration complete.

commit: wrote '/root/.cpan/CPAN/MyConfig.pm'

You can re-run configuration any time with 'o conf init' in the CPAN shell
Terminal does not support AddHistory.

To fix enter>  install Term::ReadLine::Perl


cpan shell -- CPAN exploration and modules installation (v2.22)
Enter 'h' for help.

cpan[1]>install Geo::IP

答案1

CPAN 文档您可以使用以下通用语法安装模块:

cpan module_name [ module_name ... ]

就你的情况而言:

cpan Geo::IP

相关内容