LinuxQuestions.org
Help answer threads with 0 replies.
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 04-27-2004, 09:20 PM   #1
dhammika
Member
 
Registered: Dec 2003
Location: Colombo. (Sri Lanka)
Distribution: RH 9, RH AS 3, Fedora Core
Posts: 65

Rep: Reputation: 15
Unhappy How to uninstall httpd & PHP


Hello



I on RH9 system. Simply I want to uninstall my httpd(1.3.22) service and PHP(4.2.2). I need help.




Last edited by dhammika; 04-27-2004 at 09:21 PM.
 
Old 04-27-2004, 10:04 PM   #2
tmorton
Member
 
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198

Rep: Reputation: 31
Hi,
Do you want to get rid of apache+php? If so, run:
Code:
rpm -e httpd
rpm -e php
rpm -e php-devel
I think :|...
See what rpm -q --what-provides /usr/sbin/apachectl.
Run that through rpm -e.

If you just want to disable it, cd to /etc/rc.d/rc.3 and remove the S*httpd file.
HTH, Taj
 
Old 04-27-2004, 10:18 PM   #3
dhammika
Member
 
Registered: Dec 2003
Location: Colombo. (Sri Lanka)
Distribution: RH 9, RH AS 3, Fedora Core
Posts: 65

Original Poster
Rep: Reputation: 15
Thanks for your quick reply

But I got

[root@keg-ora /]# rpm -e httpd
error: Failed dependencies:
httpd-mmn = 20020628 is needed by (installed) mod_perl-1.99_07-5
httpd-mmn = 20020628 is needed by (installed) mod_python-3.0.1-3
httpd-mmn = 20020628 is needed by (installed) mod_ssl-2.0.40-21
httpd-mmn = 20020628 is needed by (installed) php-4.2.2-17
libapr.so.0 is needed by (installed) mod_perl-1.99_07-5
libaprutil.so.0 is needed by (installed) mod_perl-1.99_07-5
webserver is needed by (installed) webalizer-2.01_10-11
httpd >= 2.0.40 is needed by (installed) mod_perl-1.99_07-5
httpd >= 2.0.40 is needed by (installed) mod_python-3.0.1-3
httpd is needed by (installed) mod_ssl-2.0.40-21
httpd is needed by (installed) redhat-config-httpd-1.0.1-18


[root@keg-ora /]# rpm -e php
error: Failed dependencies:
php = 4.2.2-17 is needed by (installed) php-imap-4.2.2-17
php = 4.2.2-17 is needed by (installed) php-ldap-4.2.2-17

How to avoid dependencies
 
Old 04-27-2004, 10:47 PM   #4
tmorton
Member
 
Registered: Jan 2003
Location: In front of my computer in Oregon, USA
Distribution: Slackware
Posts: 198

Rep: Reputation: 31
Hi,
Well you could append the --no-deps option to httpd and PHP. For example:
rpm -e --no-deps httpd-*
rpm -e --no-deps php-*

Note the *'s. These should remove most of the other packages that httpd and PHP require.
--Taj
 
Old 04-27-2004, 11:30 PM   #5
dhammika
Member
 
Registered: Dec 2003
Location: Colombo. (Sri Lanka)
Distribution: RH 9, RH AS 3, Fedora Core
Posts: 65

Original Poster
Rep: Reputation: 15
Thanks and It works.

little change
according to man --no-deps should be --nodeps

rpm -e --nodeps httpd-*
rpm -e --nodeps php-*
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Need to uninstall SuSe 8.1 & there is no uninstall jwhibdon Linux - Software 10 10-26-2006 11:57 AM
Uninstall httpd treotan Fedora 2 12-09-2004 08:45 AM
HTTPD won't start with PHP 4.3.4 BarkingBonefish Linux - Software 0 03-03-2004 12:20 PM
PHP/MySQL/httpd jefx Linux - Newbie 4 05-27-2003 09:58 PM
PHP and httpd.conf adcripps Linux - Newbie 8 05-18-2002 04:23 PM

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

All times are GMT -5. The time now is 03:43 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