← 返回命令列表

Linux command

pear 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Install a package

pear install [package]

Upgrade a package

pear upgrade [package]

List installed packages

pear list

Search for packages

pear search [keyword]

Uninstall a package

pear uninstall [package]

说明

pear is the PHP Extension and Application Repository manager. It installs, upgrades, and manages PHP packages and extensions, predating Composer as PHP's primary package manager.

参数

install
Install packages.
upgrade
Upgrade packages.
uninstall
Remove packages.
list
List installed packages.
search
Search for packages.
info
Package information.
channel-discover
Add new channel.

FAQ

What is the pear command used for?

pear is the PHP Extension and Application Repository manager. It installs, upgrades, and manages PHP packages and extensions, predating Composer as PHP's primary package manager.

How do I run a basic pear example?

Run `pear install [package]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does install do in pear?

Install packages.