使用Pear安装程序时-a和-o选项有什么区别?

时间:2020-12-02 13:26:05

When you use the Pear installer, like

当你使用Pear安装程序时,比如

pear install DB

you can use the '-a' option or the '-o' option.

您可以使用'-a'选项或'-o'选项。

What is the difference between them?

它们之间有什么区别?


@Ólafur Waage

I want to ask the difference between all and only.

我想问一下所有和唯一的区别。

I cannot understand what they are.

我无法理解它们是什么。


What are the 'all' dependencies and what the 'only' dependencies?

什么是“所有”依赖项以及“唯一”依赖项是什么?

Are there any differences between them?

它们之间有什么不同吗?

My brain cannot distinguish them.

我的大脑无法区分它们。


OK, then, should I use the '-a' option?

那么,我应该使用'-a'选项吗?

1 个解决方案

#1


I believe they are the short form of --alldeps and --onlyreqdeps

我相信它们是--alldeps和--onlyreqdeps的缩写形式

The PEAR installer has full support for dependencies; it can automatically install required and/or optional dependencies if you wish so.

PEAR安装程序完全支持依赖项;如果您愿意,它可以自动安装必需和/或可选的依赖项。

Here's the PEAR Install command manual

这是PEAR Install命令手册

EDIT:

What each does is in the manual, but here's the blurb.

每个人都做了什么在手册中,但这里是模糊。

You have several choices:

你有几个选择:

  • Install dependent packages by hand

    手动安装依赖包

  • Let PEAR automatically install necessary dependencies only

    让PEAR仅自动安装必要的依赖项

  • Let PEAR automatically install necessary and optional dependencies

    让PEAR自动安装必要和可选的依赖项

The first method can be a painful and daunting process, because dependent packages itself can have dependencies.

第一种方法可能是一个痛苦而艰巨的过程,因为依赖包本身可能具有依赖性。

Both other methods just require a switch to the install command, either --onlyreqdeps (install required dependencies only) or --alldeps (install all dependencies).

其他两种方法只需要切换到install命令,可以是--onlyreqdeps(仅安装所需的依赖项)或--alldeps(安装所有依赖项)。

#1


I believe they are the short form of --alldeps and --onlyreqdeps

我相信它们是--alldeps和--onlyreqdeps的缩写形式

The PEAR installer has full support for dependencies; it can automatically install required and/or optional dependencies if you wish so.

PEAR安装程序完全支持依赖项;如果您愿意,它可以自动安装必需和/或可选的依赖项。

Here's the PEAR Install command manual

这是PEAR Install命令手册

EDIT:

What each does is in the manual, but here's the blurb.

每个人都做了什么在手册中,但这里是模糊。

You have several choices:

你有几个选择:

  • Install dependent packages by hand

    手动安装依赖包

  • Let PEAR automatically install necessary dependencies only

    让PEAR仅自动安装必要的依赖项

  • Let PEAR automatically install necessary and optional dependencies

    让PEAR自动安装必要和可选的依赖项

The first method can be a painful and daunting process, because dependent packages itself can have dependencies.

第一种方法可能是一个痛苦而艰巨的过程,因为依赖包本身可能具有依赖性。

Both other methods just require a switch to the install command, either --onlyreqdeps (install required dependencies only) or --alldeps (install all dependencies).

其他两种方法只需要切换到install命令,可以是--onlyreqdeps(仅安装所需的依赖项)或--alldeps(安装所有依赖项)。