Voytek Eymont wrote:

what's the best way to update php and it's dependencies with rpm ?


General Rule:  Installed-First ; removed-Last.

# rpm -U php-4.3.8-1.mortenp.rh73.i386.rpm

Command means remove php-older-version(php-4.3.4) and install 'php-4.3.8-1.mortenp.rh73.i386.rpm'

error: failed dependencies:
       php = 4.3.4 is needed by php-standalone-4.3.4-3.mortenp.rh73

You can't remove php-older-verion (php-4.3.4) because you have packages that are dependent upon it. This is unless you use --force option. Using --force option is not advisable (As this may result in lose of software functionality at the very least or even lose of employment under extreme circumstances.).

Solution: Remove the package(s) that depends on php-older-version first and try to UPGRADE again. If some more packages are dependent, remove them and Upgrade. (Caution backup your data before removing).

Before removing packages, it is advisable to analyse (there is no magic formula. rely on your analytical abilities,i.e., anticipate what happens if this or that is removed.) the results of:

rpm -ql --requires <package-name>

In the specific case above,

rpm -ql --requires php-standalone-4.3.4-3.mortenp.rh73


       php = 4.3.4 is needed by php-mysql-4.3.4-3.mortenp.rh73
       php = 4.3.4 is needed by mod_php-4.3.4-3.mortenp.rh73
       php = 4.3.4 is needed by php-gd-4.3.4-3.mortenp.rh73
       php = 4.3.4 is needed by php-ftp-4.3.4-3.mortenp.rh73

Hope this helps.

O Plameras

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to