LinuxCommandLibrary

pear

PHP Extension and Application Repository manager

TLDR

Install a package

$ pear install [package]
copy
Upgrade a package
$ pear upgrade [package]
copy
List installed packages
$ pear list
copy
Search for packages
$ pear search [keyword]
copy
Uninstall a package
$ pear uninstall [package]
copy

SYNOPSIS

pear [options] command [command-options] args

DESCRIPTION

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.

PARAMETERS

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.

Install package

pear install Mail

Install from specific channel

pear channel-discover pear.phpunit.de
pear install phpunit/PHPUnit

List outdated packages

pear list-upgrades

Get package info

pear info DB

$
# CHANNELS
copy

Add channel

pear channel-discover pear.example.com

List channels

pear list-channels

$
# CAVEATS

Being superseded by Composer for most use cases. Still used for PHP extensions. Requires root for system-wide installs.

# HISTORY

PEAR was started in 1999 by **Stig Bakken** as part of the PHP project to provide a standard package system.

# SEE ALSO

pecl(1), composer(1), php(1)
copy

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community