Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

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
1  
I believe there is even some option of dpkg to list all the packages that were once installed but removed...? Ah yes, see here: ascending.wordpress.com/2007/04/10/… –  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

 
discard

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.