text stringlengths 0 834k |
|---|
install <url> Installs the package located at <url> |
Description |
The install command is used to install packages from the repository. |
Install packages by name or number (the number is given by the |
repository or search request), or set a default package using the |
describe command. You can specify a full URL to a PPD file; the URL may |
point to a PPD file on your computer. |
If you have profile tracking enabled, (see 'help profile') the current |
profile will be updated to include the newly installed package(s). |
The following modifiers can be used with the install command: |
* -force |
* -noforce |
* -follow |
* -nofollow |
The force and follow switches determine how packages are installed: |
FORCE FOLLOW RESULT |
false false Checks to see if the package is installed and |
if it is, installation stops. If there are any |
missing prerequisites, the installation will |
fail. |
false true Checks to see if the package is installed and |
if it is, installation stops. If there are any |
missing prerequisites, they are automatically |
installed. NOTE: this is the default setting |
when PPM is first installed. |
true false If the package is installed, PPM will |
reinstall the package. If there are any |
missing prerequisites, the installation will |
fail. |
true true If the package is installed, PPM will |
reinstall the package. All prerequisites are |
installed, missing or not. |
If you do not specify any options, install uses the default settings. |
Set or view the current defaults using the 'settings' command. |
For example: |
install foo |
will install the package named ""foo"", using the default settings. |
Over-ride the defaults using the install modifiers described above. |
For example: |
install foo -force |
will install the ""foo"" package, even if it has already been installed. |
If both -force and -follow are set to ""true"", all the prerequisites for |
any package you install will also be installed. For example, the |
installation of a tk-related package, like ""tk-ach"" which is 8.4 kB will |
be preceded by the installation of Tk, which is 1.7 MB. |
You can also install by package number. Package numbers are based on the |
current repository or current search request. For example: |
install 6 |
installs package number 6. You can install more than one package at one |
time: |
install 3-5 |
installs packages 3, 4 and 5. You can also type install 3-6,8 to install |
packages 3,4,5,6 and 8. |
See Also |
profile |
END |
sub comp_install { goto &comp_describe } |
sub run_install { |
my $o = shift; |
my @args = @_; |
trace(1, ""PPM: install @args\n""); |
# Get the install options |
my %opts = ( |
force => $o->conf('force-install'), |
follow => $o->conf('follow-install'), |
dryrun => 0, |
); |
{ |
local @ARGV = @args; |
GetOptions('force!' => \$opts{force}, |
'follow!' => \$opts{follow}, |
'dryrun' => \$opts{dryrun}, |
); |
@args = @ARGV; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.