LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-31-2007, 05:20 AM   #1
Buddhike G
Member
 
Registered: Jun 2007
Distribution: RHEL, CentOS, Solaris
Posts: 63

Rep: Reputation: 16
uninstall defalt php


Hi

Im using RH enterprise Linux 4 and i installed php during system installation (by default) now i want to remove that version. But I have no experience in removing/uninstalling a software from a linux system. So can any body please tel me clearly how to uninstall existing php(php-4.3.9-3.6) from the system.

Thanx in advance !

Buddhike G
 
Old 08-31-2007, 05:28 AM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by Buddhike G View Post
Hi

Im using RH enterprise Linux 4 and i installed php during system installation (by default) now i want to remove that version. But I have no experience in removing/uninstalling a software from a linux system. So can any body please tel me clearly how to uninstall existing php(php-4.3.9-3.6) from the system.

Thanx in advance !

Buddhike G
To remove a package type: rpm -e (package name). There is no need to remove the older package if you are adding a newer version. Simply type: rpm -Uvh (package name) to upgrade your older version to the newer version.
 
Old 08-31-2007, 06:31 AM   #3
Buddhike G
Member
 
Registered: Jun 2007
Distribution: RHEL, CentOS, Solaris
Posts: 63

Original Poster
Rep: Reputation: 16
Thanx for the reply.

I typed the following command to get the existing version of php

rpm -qa |grep php

Is it correct ?

that command gave the following result

php-4.3.9-3.6
php-pgsql-4.3.9-3.6
php-mysql-4.3.9-3.6
php-odbc-4.3.9-3.6
php-pear-4.3.9-3.6
php-ldap-4.3.9-3.6


I tried to remove it using rpm -e php-4.3.9-3.6
but it gave the following error message.

error: Failed dependencies:
php = 4.3.9-3.6 is needed by (installed) php-ldap-4.3.9-3.6.i386
php = 4.3.9-3.6 is needed by (installed) php-mysql-4.3.9-3.6.i386
php = 4.3.9-3.6 is needed by (installed) php-odbc-4.3.9-3.6.i386
php = 4.3.9-3.6 is needed by (installed) php-pear-4.3.9-3.6.i386
php = 4.3.9-3.6 is needed by (installed) php-pgsql-4.3.9-3.6.i386


so i used following commands to remove dependencies

[root@localhost etc]# rpm -e php-ldap-4.3.9-3.6
[root@localhost etc]# rpm -e php-mysql-4.3.9-3.6
[root@localhost etc]# rpm -e php-odbc-4.3.9-3.6
[root@localhost etc]# rpm -e php-pgsql-4.3.9-3.6
[root@localhost etc]# rpm -e php-pear-4.3.9-3.6

but the last one gave the following error;

error: Failed dependencies:
php-pear is needed by (installed) php-4.3.9-3.6.i386


so i tried following but faild


[root@localhost etc]# rpm -e php-4.3.9-3.6.i386
error: Failed dependencies:
php = 4.3.9-3.6 is needed by (installed) php-pear-4.3.9-3.6.i386
[root@localhost etc]# rpm -e php-pear-4.3.9-3.6.i386
error: Failed dependencies:
php-pear is needed by (installed) php-4.3.9-3.6.i386

It seems to be recursive.


Any suggestions.

Buddhike G.
 
Old 08-31-2007, 07:13 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Try
Code:
#rpm -e php php-pgsql php-mysql php-odbc php-pear php-ldap
 
Old 09-03-2007, 10:58 PM   #5
Buddhike G
Member
 
Registered: Jun 2007
Distribution: RHEL, CentOS, Solaris
Posts: 63

Original Poster
Rep: Reputation: 16
Yes It workd !

Thanx a lot !

Buddhike G.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
screen saver at defalt on suse 10.2 stasik SUSE / openSUSE 2 12-16-2006 01:14 PM
uninstall php TenEighty Linux - Software 1 12-26-2005 10:20 AM
GRUB and Defalt boot surfduke Fedora 6 02-27-2005 07:39 AM
php uninstall bnumark Linux - Software 1 06-28-2003 04:19 AM
Kmail defalt browser tied2 Linux - Software 1 03-03-2003 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration