Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 ?

share|improve this question

1 Answer 1

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.

share|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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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