Получение менеджера пакетов PEAR (Previous) (Next) Установка с CVS

View this page in Last updated: Mon, 02 Jul 2007
Dutch | Hungarian | Polish | Russian | Spanish | Plain HTML

Установка из командной строки

Замечание

Нижеследующее описание относится к последней версии менеджера пакетов PEAR.

Установка из командной строки - это самый простой способ установить пакеты PEAR в вашей системе: установщик соединяется с сервером PEAR через обычное HTTP-соединение, загружает пакет на вашу машину и устанавливает в указанное место.

Полуавтоматическая установка

Если вы загрузили пакет с pear.php.net в виде *.tar.gz, то вы так же можете установить его локально. Для этого, выполните следующую команду в шелле:


$ pear install <file>.tgz
      

Эта команда автоматически установит пакет без использования соединения с удаленным сервером. <file>.tgz - это имя пакета, который вы загрузили и хотите установить.

Получение менеджера пакетов PEAR (Previous) (Next) Установка с CVS

Download Documentation Last updated: Mon, 02 Jul 2007
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: ricardo@dattatec.com
Actually, the options only show up with the relevant command, i.e if you do 'pear help install' you'll get every option supported by the install command.
Note by: slave@codegrunt.com
For some reason command line flags do not seem appear to be documented in the online manual. Once PEAR is installed however, you can get a list of some (why not all?) of the flags using "pear help options". These include:

Options:
-v increase verbosity level (default 1)
-q be quiet, decrease verbosity level
-c file find user configuration in `file'
-C file find system configuration in `file'
-d foo=bar set user config variable `foo' to `bar'
-D foo=bar set system config variable `foo' to `bar'
-G start in graphical (Gtk) mode
-s store user configuration
-S store system configuration
-u foo unset `foo' in the user configuration
-h, -? display help/usage (this message)
-V version information

There also appears to be some extra undocumented ones though including:

--alldeps (seems obvious)

and

-f (no idea, referenced in the UNL_Event_Publisher documentation)