Re: [PEAR] pear does not list installed packages.

[email protected] (Christian Weiske) Wed, 18 Feb 2015 10:13:54 +0100
Newsgroups php.pear.general
Message-ID <20150218101354.4aaca880@bogo>
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 ≡=-
signature.asc (application/pgp-signature, 181 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlTkV9IACgkQFMhaCCTq+COlJQCffULOjcdXdfKT/0QbmOIFkews
BhcAoMHS48aDmuJR92ec8ZtE/FLd/10a
=UiLm
-----END PGP SIGNATURE-----