Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use ActivePerl's PPM 4 from the command line?

Tags:

perl

The version of PPM (4.06, and I run it under Windows) directly puts me into a GUI which is a nice but since I'm quite comfortable with the command-line prompt so I still want to find a way to get a command-line prompt instead of a GUI.

like image 721
Haiyuan Zhang Avatar asked Dec 20 '09 05:12

Haiyuan Zhang


People also ask

How do I run ActivePerl?

Open the command prompt (cmd.exe) and run state activate ActiveState/ActivePerl-5.28 . This command downloads the runtime environment from the ActiveState Platform, configures it, and creates an “activated state”, an isolated environment for you to work in.

How do I install Active Perl modules?

The easiest way to install additional modules into ActivePerl is by using PPM, the Perl Package Manager. But on each platform there is also a free native C compiler available that can be used to build modules locally if that turns out to be necessary.

Where is ActivePerl installed?

Perl is installed by default in C:\Perl . The default drive " C " selected will be the same drive that the operating system is installed on, or the drive that has the largest amount of space available.


1 Answers

If you call ppm without arguments or as ppm gui, then it will be used the GUI. If you use other parameters, then the GUI will not be used.

The list of the arguments accepted by the command includes

ppm install [--area <area>] [--force] <pkg>
ppm install [--area <area>] [--force] <module>
ppm install [--area <area>] <url>
ppm upgrade [--install]
ppm upgrade <pkg>
ppm upgrade <module>
ppm remove [--area <area>] [--force] <pkg>
ppm area list [--csv] [--no-header]
ppm area sync
ppm list [--fields <fieldnames>] [--csv]
ppm list <area> [--fields <fieldnames>] [--csv]
ppm files <pkg>
ppm verify [<pkg>]

You can find the complete list at ActivePerl.

like image 195
apaderno Avatar answered Oct 28 '22 10:10

apaderno