Perl graphical package management tool ppm learning notes

Time:2021-11-27

Ppm (programmer’s package manager) is a graphical management tool that comes with ActivePerl. With this tool, it is very convenient to upgrade, update and remove Perl packages. Just enter ppm or ppm GUI to open the graphical interface. After all, if you use cpanm to install, you must also know the name of the module to be installed. It is not very convenient and troublesome to query. You should check it on the cpan special web page.

Copy codeThe code is as follows:

C:\>ppm 


perhaps

Copy codeThe code is as follows:

C:\>ppm gui 

 

Perl graphical package management tool ppm learning notes

The horizontal menu is described as follows:

Perl graphical package management tool ppm learning notes

You can use filters to filter:

Perl graphical package management tool ppm learning notes

You can view specific installation package information:

Package name: package name.
Area: where is this package installed.
Installed: the version number of the installation package.
Available: the version number of the package in the PPM warehouse.
Abstract:   A short description of the package.
Author: the name and email address of the author of the package.

How to install packages:
1. Select the package with gray icon, right click or select the icon in the upper right corner.
Perl graphical package management tool ppm learning notes

2. Then execute the following icon.

Perl graphical package management tool ppm learning notes

Other removal operations and upgrade operations are similar. No more details.
Of course, you can also execute ppm — version to view the version and ppm help to view the help information.

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
C:\Windows\System32>ppm --version
ppm 4.17 (ActivePerl 1603)
Copyright (C) 2012 ActiveState Software Inc. All rights reserved.
 
C:\Windows\System32>ppm help
NAME
  ppm - Perl Package Manager, version 4.17
 
SYNOPSIS
  Invoke the graphical user interface:
 
    ppm
    ppm gui
 
  Install, upgrade and remove packages:
 
    ppm install [--area <area>] [--force] <pkg> ...
    ppm install [--area <area>] [--force] <module> ...
    ppm install [--area <area>] <url>
    ppm install [--area <area>] <file>.ppmx
    ppm install [--area <area>] <file>.ppd
    ppm install [--area <area>] <num>
    ppm upgrade [--install]
    ppm upgrade <pkg>
    ppm upgrade <module>
    ppm remove [--area <area>] [--force] <pkg>
 
  Manage and search install areas:
 
    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>]

For example, to install a package, you can:

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
C:\Windows\System32>ppm install Acme-what
Downloading Acme-What-0.002...done
Downloading Devel-Declare-0.006014...done
Downloading B-Hooks-OP-Check-0.19...done
Downloading B-Hooks-EndOfScope-0.13...done
Downloading ExtUtils-Depends-0.305...done
Downloading Sub-Exporter-Progressive-0.001011...done
Downloading Variable-Magic-0.53...done
Downloading Devel-Hide-0.0009...done
Unpacking Acme-What-0.002...done
Unpacking Devel-Declare-0.006014...done
Unpacking B-Hooks-OP-Check-0.19...done
Unpacking B-Hooks-EndOfScope-0.13...done
Unpacking ExtUtils-Depends-0.305...done
Unpacking Sub-Exporter-Progressive-0.001011...done
Unpacking Variable-Magic-0.53...done