why can't I upgrade php?
Craig White
craigwhite at azapple.com
Sun Nov 30 20:50:35 UTC 2003
On Sun, 2003-11-30 at 13:00, linbox wrote:
> I am trying to upgrade to the latest stable php, and I get the following
> message with rpm -Uvh php-4.3.4-1.1.i386.rpm (even if I try the --force
> tag).
>
> warning: php-4.3.4-1.1.i386.rpm: V3 DSA signature: NOKEY, key ID 30c9ecf8
> error: Failed dependencies:
> php = 4.3.3-6 is needed by (installed) php-imap-4.3.3-6
> php = 4.3.3-6 is needed by (installed) php-ldap-4.3.3-6
> php = 4.3.3-6 is needed by (installed) php-mysql-4.3.3-6
> php = 4.3.3-6 is needed by (installed) php-odbc-4.3.3-6
> php = 4.3.3-6 is needed by (installed) php-pgsql-4.3.3-6
> php = 4.3.3-6 is needed by (installed) php-domxml-4.3.3-6
> php = 4.3.3-6 is needed by (installed) php-snmp-4.3.3-6
> php = 4.3.3-6 is needed by (installed) php-xmlrpc-4.3.3-6
>
> I get a similar error if I try to erase (rpm -e) the old php file.
>
----
best to use yum / up2date or apt if you don't know what you're doing -
it makes it easy because it resolves any dependencies for you.
Anyway, assuming that you have all the parts & pieces downloaded...
rpm -Uvh php-*4.3.4-1.1*
would simultaneously install
php-4.3.4-1.1.i386.rpm
php-imap-4.3.4-1.1.i386.rpm
php-ldap-4.3.4-1.1.i386.rpm
php-mysql-4.3.4-1.1.i386.rpm
php-odbc-4.3.4-1.1.i386.rpm
php-pgsql-4.3.4-1.1.i386.rpm
php-domxml-4.3.4-1.1.i386.rpm
php-snmp-4.3.4-1.1.i386.rpm
php-xmlrpc-4.3.4-1.1.i386.rpm
likewise, you can remove them all on the same line...
rpm -e php-imap-4.3.3-6 php-ldap-4.3.3-6 and so on and then finally
php-4.3.3-1
--force is always a bad idea - UNLESS you know what you are doing and
why.
Lastly, it seems like you have done one of those 'install everything'
installs which is probably not the brightest idea if you intend to
update everything manually (I wouldn't recommend this on anything except
an isolated, play box to learn anyway). It seems highly illogical that
you would be running a mysql db, postgreSQL db, windows db, and then not
know how to do some basic rpm commands.
Craig
More information about the fedora-list
mailing list