Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am quite new to Linux and I though it would be better to ask here before making something wrong.
I have a CentOS Linux server with preinstalled PHP4. I read some documents on www and finally I decided to uninstall this PHP and install PHP5.
I noticed that my existing php verion was installed from a RPM.
When I try to uninstall it I get this:
rpm -e php-4.3.9-3.22.5
error: Failed dependencies:
php = 4.3.9-3.22.5 is needed by (installed) php-mbstring-4.3.9-3.22.5.i386
php = 4.3.9-3.22.5 is needed by (installed) php-snmp-4.3.9-3.22.5.i386
php = 4.3.9-3.22.5 is needed by (installed) php-devel-4.3.9-3.22.5.i386
php = 4.3.9-3.22.5 is needed by (installed) php-xmlrpc-4.3.9-3.22.5.i386
php = 4.3.9-3.22.5 is needed by (installed) php-imap-4.3.9-3.22.5.i386
php = 4.3.9-3.22.5 is needed by (installed) php-gd-4.3.9-3.22.5.i386
php = 4.3.9-3.22.5 is needed by (installed) php-ncurses-4.3.9-3.22.5.i386
php = 4.3.9-3.22.5 is needed by (installed) php-pear-4.3.9-3.22.5.i386
php = 4.3.9-3.22.5 is needed by (installed) php-domxml-4.3.9-3.22.5.i386
php = 4.3.9-3.22.5 is needed by (installed) php-odbc-4.3.9-3.22.5.i386
php = 4.3.9-3.22.5 is needed by (installed) php-ldap-4.3.9-3.22.5.i386
php >= 4.0.4 is needed by (installed) squirrelmail-1.4.8-4.0.1.el4.centos.noarch
php = 4.3.9-3.22.5 is needed by (installed) php-pgsql-4.3.9-3.22.5.i386
php >= 4.2.0 is needed by (installed) phpPgAdmin-4.1.3-1.gdg.noarch
php = 4.3.9-3.22.5 is needed by (installed) php-mysql-4.3.9-3.22.5.i386
php >= 4.1.0 is needed by (installed) phpMyAdmin-2.10.3-1.gdg.noarch
/usr/bin/php is needed by (installed) phpPgAdmin-4.1.3-1.gdg.noarch
I don't want to uninstall all these. Which is the best course of action? For PHP5 I found a rpm file. Is it ok or should I compile the sources?
Those packages won't work with php5, so you probably should uninstall them and install their php5 equivalents. PHP5 is in the centosplus repo, so you could do
So I should uninstall all packages them install the new ones. Will I install them using yum or download the rpms and install each of them manually? What was that yum command for?
That would update the packages on your system including php to the latest ones which are in the centos plus repository. PHP5 is in the centos plus repository.
That would update the packages on your system including php to the latest ones which are in the centos plus repository. PHP5 is in the centos plus repository.
I tried that and it seems the entire system is updated. I really don't see why should I update gcc and httpd when I only need php. How can I update only php?
This is what I've tried and among dependencies was gcc and httpd. Maybe they really need to be updated.
But the real problem was that from 44 dependencies, only one failed to download from repository (libpng ... ). Is there a way to search it myself and then add the path to YUM config ? As a mirror site I mean.
Thanks for the link. But let's say I find that missing dependency, how can I use it and still let YUM update all dependencies. Should I modify some config file to update the mirror sites?
You could try using the localinstall option in YUM e.g.
[code]yum localinstall somerpm[code]
If the package has any dependencies, yum will search for them in the online repos.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.