Skip to content
/ MiniPear Public

MiniPear creates local pear channel mirrors for offline usage.

Notifications You must be signed in to change notification settings

c9s/MiniPear

Repository files navigation

MiniPear - PEAR Channel Local Mirror Tool

MiniPear can create local pear channel mirrors for offline usage.


Requirement

  • PHP 5.3+
  • php curl extension

Install

wget --no-check-certificate https://github.com/c9s/MiniPear/raw/master/minipear
chmod +x minipear

Usage

To create a mirror:

$ minipear mirror {channel host}

Print verbose / debug messages:

$ minipear -d mirror {channel host}

Mirror without maintainer info section if you need:

$ minipear mirror --no-info {channel host}

Channel sites will be mirrored into ~/.minipear/pear/channels.

The channel host will be replaced by {alias}-local, you can install packages from these local pear hosts when you are offline, for example,

$ minipear -d mirror pear.php.net

Install the hostname:

vim /etc/hosts

Add 127.0.0.1 pear-local

127.0.0.1 pear-local

Install your virtual host to the hostname pear-local.

Then use pear to channel-discover:

$ sudo pear channel-discover pear-local

Install through the pear-local:

$ sudo pear install pear-local/Archive_Tar

Contribution

Fork this project and send me the pull request.

Required development dependencies:

pear channel-discover pear.corneltek.com
pear install corneltek/PHPUnit_TestMore
pear install corneltek/Universal

Author

Yo-An Lin yoanlin93@gmail.com

LICENSE

MIT License

About

MiniPear creates local pear channel mirrors for offline usage.

Resources

Stars

Watchers

Forks

Packages

No packages published