Re: pear does not list installed packages.

From: Date: Wed, 18 Feb 2015 09:13:54 +0000
Subject: Re: pear does not list installed packages.
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31991@lists.php.net to get a copy of this message
Hello Anant, > This is what is happening on my RHEL 7 Server. I have installed Horde > Groupware Webmail Edition (HGWE) 5.2.4 > using pear from pear.horde.org. My last upgrade was on 24 January, > 2015. But, now, when I am trying > to run > > pear list -c pear.horde.org > (no packages installed from channel pear.horde.org) > > It does not list any packages installed. It has forgotten everything. > Even it had actually forgotten the discovered channel pear.horde.org, > and I did channel-discover again. Information about installed packages and known channels are stored in two hidden directories in the "php_dir" whose location you can fetch with $ pear config-get php_dir /usr/share/php $ ls -1 /usr/share/php/.channels/ components.ez.no.reg doc.php.net.reg empir.sourceforge.net_pear.reg mediawiki.googlecode.com_svn.reg pear2.php.net.reg .... $ ls -1a /usr/share/php/.registry/ archive_tar.reg cache_lite.reg cache.reg .channel.components.ez.no .channel.doc.php.net .channel.empir.sourceforge.net_pear So what could have happened? Maybe you manually installed/upgraded PEAR above the system-installed PEAR installation. If the configuration was not correct, the update moved the files to different folders, and everything broke. What you can do is try to find the .registry and .channel directories on the hard drive, and then use "pear config-set" to set the php_dir to their parent directory. You might have to set all other config directories ("pear config-show" will list them). -- Regards/Mit freundlichen Grüßen Christian Weiske -=≡ Geeking around in the name of science since 1982 ≡=-

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.general (#31991) next »