Question

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

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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.