Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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'm new to Linux/Ubuntu - and I'm wondering if the behaviour I'm seeing is as designed. I have installed vsftpd:

 sudo apt-get install vsftpd

Then I remove:

 sudo apt-get remove vsftpd

However, looking in /etc I can see that vsftpd.conf is still present. Can someone explain why this is happening (I am assuming the remove would remove all files relating to vsftpd) ?

share|improve this question
I thought you had to purge it – Dr_Bunsen Jun 6 '12 at 14:19

Use sudo apt-get purge <program> instead, to remove config files as well.

share|improve this answer

You're looking for purge:

sudo apt-get purge vsftpd

will also delete the config files. You can do this even after you've already removed the package.

share|improve this answer
I believe there is even some option of dpkg to list all the packages that were once installed but removed...? Ah yes, see here:… – codeling Jun 6 '12 at 14:03
Cool, thanks @nyarlathotep! – JW. Jun 6 '12 at 15:22
Does sudo apt-get remove --purge <program> have the same effect? – asymptotically Dec 26 '12 at 21:47
@asymptotically Yes. Quoting the apt-get man page: "remove --purge is equivalent to the purge command". If you want to know everything about the apt-get command, run man apt-get. – JW. Dec 28 '12 at 16:26

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.