I am trying to remove apache completely from my server,which is a ec2 instance, running Amazonian linux v2.6xx.

Lets assume I have a file in /etc/httpd/conf/xyz.txt

I am using the following code :

yum remove httpd

when I try to cd /etc/httpd I get "there is no such directory" error.

Next, if I install httpd again, using this : yum install httpd, and then if I look in /etc/httpd/conf/ I still have that file as it is.. untouched..

How is this possible ?

How do I "Clean" this ?

link|improve this question

feedback

1 Answer

up vote 3 down vote accepted

yum/rpm will not remove things it did not put into place (unless someone does it in the scripts, but only ISVs with a few screws loose do that). I highly suspect that you typoed your cd command, and that the directory did actually exist.

link|improve this answer
I "CD"ed into proper directory, I repeated it many times (install/remove) and confirmed that it was happening.. So no chance of typos.. And I confirm that the directory wasn't there.. (I tried winscp to browse through to it..) – Shrinath Dec 31 '10 at 7:10
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.