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 would like to uninstall some packages, but I find that after I run the sudo apt-get remove <package-name> command I still have log files or other types of files running around. Is there a way I can just remove everything associated? I even had nginx installed and after I removed it I found that the process was still starting on reboot :S Am I doing something wrong? I've used the --purge parameter too and autoremove, but I am still finding folders and files belonging to packages I had uninstalled.

share|improve this question
add comment

1 Answer 1

up vote 11 down vote accepted

That is the proper way, there is no better way available.

Files created into your home dir, or other files created during normal package working, as i.e. log files, do not get removed, and there is no easy way to do so, if the preremove and postremove script do not do so themself. Obviously the problem is not in the removing, but in the individuation of such files.

The fact that the service you talk about keep on starting on boot is strange, it is perhaps present in another package? What dpkg -l | grep nginx returns?

share|improve this answer
    
ok did a reboot and its ok now. Ebox installed a lot of stuff which didn't go away when I uninstalled it, so I checked out the running processes and removed them one by one. –  drtanz Jul 13 '11 at 22:05
    
Sometimes --purge doesn't work as I would expect. It's probably a good idea to run dpkg -S $(which PROGRAM) where program is the binary you're trying to uninstall. That'll tell you what packages to aptitude remove. –  jrhorn424 Sep 11 '13 at 0:48
add comment

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.