On Wed, 29 Apr 2015, Michael J. Campbell wrote: > Hi! > I've installed fail2ban, using the provided setup.py. > As I want to use fail2ban from the debian repository instead of the > previously installed one, I assumed it would be best practice to remove > the current installation.
smth like find /usr/local -iname fail2ban\* | xargs rm -rf would be the most thorough > Unfortunately I found no remove or uninstall parameter for the setup.py. > So I've reinstalled fail2ban on a vm, rediricting all the output, in order > to get a list of the created files. > Using that list I wrote this tiny bash script to remove the created files. > Maybe someone else may use it as well, criticism very welcome! > #!/bin/bash > echo "removing /usr/local/lib/python2.7/dist-packages/" > rm -rf /usr/local/lib/python2.7/dist-packages/fail2ban > echo "removing /usr/local/bin/fail2ban" > rm -rf /usr/local/bin/fail2ban* > echo "removing /etc/fail2ban" > rm -rf /etc/fail2ban > echo "removing /var/lib/fail2ban" > rm -rf /var/lib/fail2ban > echo "removing /usr/share/doc/fail2ban" > rm -rf /usr/share/doc/fail2ban ah -- so you even solved it -- should work as well, thanks ;) -- Yaroslav O. Halchenko, Ph.D. http://neuro.debian.net http://www.pymvpa.org http://www.fail2ban.org Research Scientist, Psychological and Brain Sciences Dept. Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755 Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419 WWW: http://www.linkedin.com/in/yarik ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Fail2ban-users mailing list Fail2ban-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fail2ban-users