text stringlengths 0 834k |
|---|
}); |
print ""$pkg_o->{name}: ""; |
$area->uninstall($pkg_o->{name}); |
}; |
if ($@) { |
print clean_err($@) . ""\n""; |
} |
else { |
print ""uninstalled\n""; |
$removed_count++; |
} |
} |
if ($removed_count) { |
update_html_toc(); |
} |
else { |
die ""No packages uninstalled""; |
} |
} |
sub do_profile { |
my $cmd = shift(@ARGV) || ""save""; |
AGAIN: |
if ($cmd eq ""save"") { |
$USAGE = ""profile save [<file>]""; |
my $file = shift(@ARGV); |
usage() if @ARGV; |
my $fh; |
if ($file && $file ne ""-"") { |
open($fh, "">"", $file) || die ""Can't create $file: $!""; |
} |
else { |
$fh = *STDOUT; |
} |
print $fh $ppm->profile_xml; |
} |
elsif ($cmd eq ""restore"") { |
$USAGE = ""profile restore [<file>]""; |
my $file = shift(@ARGV); |
usage() if @ARGV; |
my $fh; |
if ($file && $file ne ""-"") { |
open($fh, ""<"", $file) || die ""Can't open $file: $!""; |
} |
else { |
$file = ""stdin""; |
$fh = *STDIN; |
} |
my $xml = do { local $/; <$fh> }; |
die ""No profile data found in $file"" unless $xml =~ /<PPMPROFILE\b/; |
$ppm->profile_xml_restore($xml); |
} |
else { |
$cmd = _try_abbrev(""profile"", $cmd, qw(save restore)); |
goto AGAIN; |
} |
} |
BEGIN { |
# aliases for PPM3 compatibility (mostly) |
*do_update = \&do_upgrade; |
*do_uninstall = \&do_remove; |
} |
__END__ |
=head1 NAME |
ppm - Perl Package Manager, version 4 |
=head1 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] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.