All Projects → c9s → Minipear

c9s / Minipear

MiniPear creates local pear channel mirrors for offline usage.

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 [email protected]

LICENSE

MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].