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

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

because i had problems with my pure-ftpd i decided to completely remove and reinstall it.

so i did like

apt-get remove pure-ftpd-mysql 
find / -name "pure-ftpd" -exec rm -rf {} \; 

now after reinstalling the init.d script and other pieces are still missing, i wonder how they got there initially...

share|improve this question
You really shouldn't manually go through and delete things when you're using a package manager i.e. your find / -name line. Let the package manager do what it does and manage the files. – Zypher Sep 10 '10 at 20:28
well, i didn't know about apt-get purge ;) – Andreas Linden Sep 12 '10 at 22:10
up vote 2 down vote accepted

When use want a complete removing of a package you need to purge it (usaualy it means removing also config files).

aptitude purge pure-ftpd-mysql

Anyway, when a config file for an installed package is missing, you can use the following command to force dpkg to reinstall original missing configuration files :

dpkg --force-confmiss -i /var/cache/apt/archives/pure-ftpd-mysql_1.0.24-1_i386.deb

Assuming you don't have done an:

apt-get clean

that remove the cache :)

share|improve this answer
thank you very much – Andreas Linden Sep 12 '10 at 22:09

You need to purge it:

apt-get --purge remove pure-ftpd-mysql
apt-get --purge remove pure-ftpd
share|improve this answer

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.