Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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