Re: Pkg

From: Date: Tue, 10 Sep 2002 08:02:37 +0000
Subject: Re: Pkg
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-8990@lists.php.net to get a copy of this message
Hi, The PEAR installer was written with RPM and other packaging systems in mind. You can create an RPM package where RPM installs all the files, and in the "post" RPM script run "pear install -r package.xml" to register the package as installed (and likewise "pear uninstall -r Package" in "postun"). When using CPAN on RedHat boxes, I often don't bother getting the RH packages for CPAN stuff, but use the CPAN installer directly instead. This isn't a very good solution though, and IMHO PEAR should play nice with other package systems. For people who want to make sure all their packages are maintained through RPM (or another system such as APT or PKG), it could be interesting to add a config parameter that requires that the -r/--register-only option is used during install. For example: mybox$ pear config-set package_manager rpm mybox$ pear install Foo pear: This PEAR installation is managed through the external package manager "rpm". 'register-only' option is required. If the -r/--register-only option is used, the install command goes through. This is just to remind forgetful or unknowing users that an external package manager is wanted. I guess there should be an option to override if a package really, really has to be upgraded and there is no RPM yet (--force or --no-package-manager). - Stig On Mon, 2002-09-09 at 18:30, Eric wrote: > > The .pkg files are maintained by Sun/Cobalt and are specific to Cobalt > machines. You probably will not find such a thing unless Sun releases it.. > However, CobaltOS is merely a modified redhat installation. If PEAR > releases packages as RPMs, it may be possible to use the RPM installation > for pear packages. > > - eric > > On Mon, 9 Sep 2002 m@xime.ca wrote: > > > Hi, > > i have a cobalt server and i would like to know > > where i can found a *.pkg file of PEAR. > > http://pear.php.net/ > > > > Tanx in advance > > Max > > > > > > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Stig Sæther Bakken, Fast Search & Transfer ASA, Trondheim, Norway http://pear.php.net/wishlist.php/ssb

« previous php.pear.dev (#8990) next »