Report this

What is the reason for this report?

[UBUNTU] How to completely remove EVERYTHING from 1 specific package?

Posted on September 5, 2017

I want to completely remove ProFTPd and all it’s files from my droplet, how do I do so from the Ubuntu console?

I have tried sudo apt-get remove and purge, but didn’t seem to do anything.

I just need a 100% fresh installation from that package



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

If running as root, this will work. If not, add sudo before the commands.

apt-get remove --purge --auto-remove proftpd

Then you can search your droplet for the left over directories and files with these commands.

find -type d -name proftp
find -type f -name proftp

This will remove the directory and everything inside.

rm -rf /path/to/directory

Remove a single file.

rm /path/to/file

I hope this helps.

PS: Please take a snapshot first. Removing things from your droplet can be risky in some situations. If you delete the wrong directory or file, the world could come crashing down for you.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.