Question

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

Posted September 5, 2017 9.6k views
UbuntuDigitalOceanControl Panels

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

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.

×
Submit an Answer
1 answer

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.