PEAR_RemoteInstaller
[ class tree: PEAR_RemoteInstaller ] [ index: PEAR_RemoteInstaller ] [ all elements ]

Source for file Remoteinstall-init.php

Documentation is available at Remoteinstall-init.php

  1. <?php
  2. define('PEAR_REMOTEINSTALL_OK'true)// for PEAR_Config
  3. // quick-load, small memory footprint command configuration
  4. $implements = array(
  5.         'remote-install' => array(
  6.             'summary' => 'Install Package',
  7.             'function' => 'doInstall',
  8.             'shortcut' => 'inr',
  9.             'options' => array(
  10.                 'force' => array(
  11.                     'shortopt' => 'f',
  12.                     'doc' => 'will overwrite newer installed packages',
  13.                     ),
  14.                 'nodeps' => array(
  15.                     'shortopt' => 'n',
  16.                     'doc' => 'ignore dependencies, install anyway',
  17.                     ),
  18.                 'register-only' => array(
  19.                     'shortopt' => 'r',
  20.                     'doc' => 'do not install files, only register the package as installed',
  21.                     ),
  22.                 'soft' => array(
  23.                     'shortopt' => 's',
  24.                     'doc' => 'soft install, fail silently, or upgrade if already installed',
  25.                     ),
  26.                 'nobuild' => array(
  27.                     'shortopt' => 'B',
  28.                     'doc' => 'don\'t build C extensions',
  29.                     ),
  30.                 'nocompress' => array(
  31.                     'shortopt' => 'Z',
  32.                     'doc' => 'request uncompressed files when downloading',
  33.                     ),
  34.                 'installroot' => array(
  35.                     'shortopt' => 'R',
  36.                     'arg' => 'DIR',
  37.                     'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)',
  38.                     ),
  39.                 'ignore-errors' => array(
  40.                     'doc' => 'force install even if there were errors',
  41.                     ),
  42.                 'alldeps' => array(
  43.                     'shortopt' => 'a',
  44.                     'doc' => 'install all required and optional dependencies',
  45.                     ),
  46.                 'onlyreqdeps' => array(
  47.                     'shortopt' => 'o',
  48.                     'doc' => 'install all required dependencies',
  49.                     ),
  50.                 'remoteconfig' => array(
  51.                     'shortopt' => 'F',
  52.                     'arg' => 'URL',
  53.                     'doc' => 'also install to ftp site using remote config file (ftp://host.com/pear.conf)'
  54.                     ),
  55.                 'offline' => array(
  56.                     'shortopt' => 'O',
  57.                     'doc' => 'do not attempt to download any urls or contact channels',
  58.                     ),
  59.                 'pretend' => array(
  60.                     'shortopt' => 'p',
  61.                     'doc' => 'Only list the packages that would be downloaded',
  62.                     ),
  63.                 ),
  64.             'doc' => '[channel/]<package> ...
  65. Installs one or more PEAR packages.  You can specify a package to
  66. install in four ways:
  67.  
  68. "Package-1.0.tgz" : installs from a local file
  69.  
  70. "http://example.com/Package-1.0.tgz" : installs from
  71. anywhere on the net.
  72.  
  73. "package.xml" : installs the package described in
  74. package.xml.  Useful for testing, or for wrapping a PEAR package in
  75. another package manager such as RPM.
  76.  
  77. "Package[-version/state][.tar]" : queries your default channel\'s server
  78. ({config master_server}) and downloads the newest package with
  79. the preferred quality/state ({config preferred_state}).
  80.  
  81. To retrieve Package version 1.1, use "Package-1.1," to retrieve
  82. Package state beta, use "Package-beta."  To retrieve an uncompressed
  83. file, append .tar (make sure there is no file by the same name first)
  84.  
  85. To download a package from another channel, prefix with the channel name like
  86. "channel/Package"
  87.  
  88. More than one package may be specified at once.  It is ok to mix these
  89. four ways of specifying packages.
  90. '),
  91.         'remote-upgrade' => array(
  92.             'summary' => 'Upgrade Package',
  93.             'function' => 'doInstall',
  94.             'shortcut' => 'upr',
  95.             'options' => array(
  96.                 'force' => array(
  97.                     'shortopt' => 'f',
  98.                     'doc' => 'overwrite newer installed packages',
  99.                     ),
  100.                 'nodeps' => array(
  101.                     'shortopt' => 'n',
  102.                     'doc' => 'ignore dependencies, upgrade anyway',
  103.                     ),
  104.                 'register-only' => array(
  105.                     'shortopt' => 'r',
  106.                     'doc' => 'do not install files, only register the package as upgraded',
  107.                     ),
  108.                 'nobuild' => array(
  109.                     'shortopt' => 'B',
  110.                     'doc' => 'don\'t build C extensions',
  111.                     ),
  112.                 'nocompress' => array(
  113.                     'shortopt' => 'Z',
  114.                     'doc' => 'request uncompressed files when downloading',
  115.                     ),
  116.                 'installroot' => array(
  117.                     'shortopt' => 'R',
  118.                     'arg' => 'DIR',
  119.                     'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)',
  120.                     ),
  121.                 'ignore-errors' => array(
  122.                     'doc' => 'force install even if there were errors',
  123.                     ),
  124.                 'alldeps' => array(
  125.                     'shortopt' => 'a',
  126.                     'doc' => 'install all required and optional dependencies',
  127.                     ),
  128.                 'onlyreqdeps' => array(
  129.                     'shortopt' => 'o',
  130.                     'doc' => 'install all required dependencies',
  131.                     ),
  132.                 'remoteconfig' => array(
  133.                     'shortopt' => 'F',
  134.                     'arg' => 'URL',
  135.                     'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)'
  136.                     ),
  137.                 'offline' => array(
  138.                     'shortopt' => 'O',
  139.                     'doc' => 'do not attempt to download any urls or contact channels',
  140.                     ),
  141.                 'pretend' => array(
  142.                     'shortopt' => 'p',
  143.                     'doc' => 'Only list the packages that would be downloaded',
  144.                     ),
  145.                 ),
  146.             'doc' => '<package> ...
  147. Upgrades one or more PEAR packages.  See documentation for the
  148. "install" command for ways to specify a package.
  149.  
  150. When upgrading, your package will be updated if the provided new
  151. package has a higher version number (use the -f option if you need to
  152. upgrade anyway).
  153.  
  154. More than one package may be specified at once.
  155. '),
  156.         'remote-upgrade-all' => array(
  157.             'summary' => 'Upgrade All Packages',
  158.             'function' => 'doInstall',
  159.             'shortcut' => 'uar',
  160.             'options' => array(
  161.                 'nodeps' => array(
  162.                     'shortopt' => 'n',
  163.                     'doc' => 'ignore dependencies, upgrade anyway',
  164.                     ),
  165.                 'register-only' => array(
  166.                     'shortopt' => 'r',
  167.                     'doc' => 'do not install files, only register the package as upgraded',
  168.                     ),
  169.                 'nobuild' => array(
  170.                     'shortopt' => 'B',
  171.                     'doc' => 'don\'t build C extensions',
  172.                     ),
  173.                 'nocompress' => array(
  174.                     'shortopt' => 'Z',
  175.                     'doc' => 'request uncompressed files when downloading',
  176.                     ),
  177.                 'installroot' => array(
  178.                     'shortopt' => 'R',
  179.                     'arg' => 'DIR',
  180.                     'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)',
  181.                     ),
  182.                 'ignore-errors' => array(
  183.                     'doc' => 'force install even if there were errors',
  184.                     ),
  185.                 'remoteconfig' => array(
  186.                     'shortopt' => 'F',
  187.                     'arg' => 'URL',
  188.                     'doc' => 'also upgrade on ftp site using remote config file (ftp://host.com/pear.conf)'
  189.                     ),
  190.                 ),
  191.             'doc' => '
  192. Upgrades all packages that have a newer release available.  Upgrades are
  193. done only if there is a release available of the state specified in
  194. "preferred_state" (currently {config preferred_state}), or a state considered
  195. more stable.
  196. '),
  197.         'remote-uninstall' => array(
  198.             'summary' => 'Un-install Package',
  199.             'function' => 'doUninstall',
  200.             'shortcut' => 'unr',
  201.             'options' => array(
  202.                 'nodeps' => array(
  203.                     'shortopt' => 'n',
  204.                     'doc' => 'ignore dependencies, uninstall anyway',
  205.                     ),
  206.                 'register-only' => array(
  207.                     'shortopt' => 'r',
  208.                     'doc' => 'do not remove files, only register the packages as not installed',
  209.                     ),
  210.                 'installroot' => array(
  211.                     'shortopt' => 'R',
  212.                     'arg' => 'DIR',
  213.                     'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)',
  214.                     ),
  215.                 'ignore-errors' => array(
  216.                     'doc' => 'force install even if there were errors',
  217.                     ),
  218.                 'remoteconfig' => array(
  219.                     'shortopt' => 'F',
  220.                     'arg' => 'URL',
  221.                     'doc' => 'also uninstall on ftp site using remote config file (ftp://host.com/pear.conf)'
  222.                     ),
  223.                 'offline' => array(
  224.                     'shortopt' => 'O',
  225.                     'doc' => 'do not attempt to uninstall remotely',
  226.                     ),
  227.                 ),
  228.             'doc' => '[channel/]<package> ...
  229. Uninstalls one or more PEAR packages.  More than one package may be
  230. specified at once.  Prefix with channel name to uninstall from a
  231. channel not in your default channel ({config default_channel})
  232. '),
  233.     );
  234. ?>

Documentation generated on Mon, 11 Mar 2019 14:15:26 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.