Offline PEAR install in DAB Makefile

apmuthu

Member
Feb 26, 2009
744
3
18
Chennai - India & Singapore
For a Wheezy DAB Template the following lines were used to install PEAR and the Horde-Pear Packages needed:
Code:
    # Start of PEAR Manual Install
    mkdir -p ${BASEDIR}/usr/src/pear
    unzip -o pear-pkgs.zip -d ${BASEDIR}/usr/src/pear
#    dab exec pear install /usr/src/pear/Archive_Tar-1.3.12.tgz /usr/src/pear/Console_Getopt-1.3.1.tgz /usr/src/pear/XML_Util-1.2.3.tgz
#    # Ignore Console_GetoptPlus_beta for now even though it does not break anything as yet
    dab exec pear upgrade --force /usr/src/pear/*.tgz
    rm -rf ${BASEDIR}/usr/src/pear
    install -m 0700 PEAR-1.9.5.tgz ${BASEDIR}/root/PEAR-1.9.5.tgz
    dab exec pear upgrade -f /root/PEAR-1.9.5.tgz
    rm -f ${BASEDIR}/root/PEAR-1.9.5.tgz
#    # wget http://pear.horde.org/channel.xml -O horde-channel.xml
    install -m 0755 horde-channel.xml ${BASEDIR}/usr/src/horde-channel.xml
    dab exec pear channel-add /usr/src/horde-channel.xml
    rm -f ${BASEDIR}/usr/src/horde-channel.xml
    mkdir -p ${BASEDIR}/usr/src/horde
    unzip -o pear-horde-pkgs.zip -d ${BASEDIR}/usr/src/horde
    dab exec pear install -f /usr/src/horde/*.tgz
    rm -rf ${BASEDIR}/usr/src/horde
    # End of PEAR Manual Install
    dab exec ln -s /usr/share/php /usr/share/pear
References:
http://php.net/manual/en/install.pecl.php
http://forum.proxmox.com/threads/12623-pear-install-thru-dab
http://pear.php.net/manual/en/guide.users.commandline.installing.php
http://forum.proxmox.com/threads/12623-pear-install-thru-dab
http://pear.php.net/manual/en/guide.users.commandline.installing.php
http://php.net/manual/en/install.pecl.php
https://pve.proxmox.com/mediawiki/i...l_PECL_Extensions_in_OpenVZ_Debian_Appliances
http://yuval.bar-or.org/blog/2009/11/offline-installation-of-pear-packages/
http://www.siteground.com/tutorials/php-mysql/pear_modules.htm
http://christian.roy.name/blog/install-pear-without-network-no-internet-accessoffline

IPs:
pear.php.net => euk1.php.net => 5.77.39.20
pear.horde.org => ftp.horde.org => 200.46.208.218
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE and Proxmox Mail Gateway. We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.

Buy now!