text
stringlengths
0
834k
Prints the name and version of PPM3.
END
sub comp_version {()}
sub run_version {
my $o = shift;
if ($o->mode eq 'SHELL') {
$o->inform(""$NAME version $VERSION\n"");
}
else {
$o->inform(""$SHORT_NAME $VERSION\n"");
}
1;
}
#============================================================================
# Exit:
#============================================================================
sub help_exit { <<'END' }
exit, q, quit -- Exit the program
Synopsis
exit Exit
q Exit
quit Exit
Description
When you leave the PPM environment, the current settings are saved.
END
sub comp_exit {
my $o = shift;
return &comp_query
if $o->{API}{cmd}{run}{name} eq 'q' and @_;
();
}
sub run_exit {
my $o = shift;
# Special case: 'q' with no arguments should mean 'quit', but 'q' with
# arguments should mean 'query'.
if ($o->{API}{cmd}{run}{name} eq 'q' and @_) {
return $o->run('query', @_);
}
$o->stoploop;
}
sub alias_exit { qw(quit q) }
#============================================================================
# Upgrade
# upgrade # lists upgrades available
# upgrade <\d+> # lists upgrades for specified package
# upgrade<pkg> # lists upgrades for named package
#============================================================================
sub smry_upgrade { ""shows availables upgrades for installed packages"" }
sub help_upgrade { <<'END' }
upgrade -- List or install available upgrades
Synopsis
upgrade [*] Lists upgrades available for all installed packages
upgrade <number> Lists upgrades for installed package <number>
upgrade <range> Lists upgrades for a <range> of installed packages
upgrade <package> Lists upgrades for the named <package>
Description
The upgrade command lists package upgrades that are available on the
active repositories for packages installed on your system. To install
available upgrades, use the '--install' option.
If profile tracking is enabled, (see 'help profile'), your profile will
be updated to reflect changes to any packages which are upgraded.
There are several modifiers to the upgrade command:
-install
Installs, rather than lists, available upgrades
-precious
Allows upgrading of ""precious"" packages
-force
See 'help install'
-follow
See 'help install'
By default, 'upgrade' typed by itself only lists the available upgrades.
To actually install all available upgrades, enter
upgrade -install
To enable upgrading ""precious"" packages, enter
upgrade -install -precious
See Also
profile
END
sub comp_upgrade { goto &comp_properties; }
sub run_upgrade {
my $o = shift;
my @args = @_;
trace(1, ""PPM: upgrade @args\n"");
# Get options: