Skip to content

Instantly share code, notes, and snippets.

@vindir
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save vindir/45476508e9f8d8bde70a to your computer and use it in GitHub Desktop.

Select an option

Save vindir/45476508e9f8d8bde70a to your computer and use it in GitHub Desktop.
#!/bin/bash
#Remove LDAP Stuff'n'Such
/etc/init.d/slapd stop
cd /usr/local/openldap/etc/openldap/
rpm -qa |grep openldap-ltb |xargs yum remove -y
rm -rf /usr/local/openldap/
#Remove python bits
pip freeze |awk -F '==' '{print $1}' |xargs pip uninstall -y
yum remove python-setuptools-*.el6.noarch python-ldap-*.el6.x86_64 -y
rpm -ev UserControl
rm -rf /tmp/pip_build_root
cd /usr/lib/python2.6/site-packages/
rm -rf UserControl-*.egg-info/ user_control/ pip-*.egg/
rm /etc/user-control.conf
rm -rf flask*
rm -rf Flask*
rm -rf funcparserlib*
rm -rf importlib*
rm -rf itsdangerous*
rm -rf jinja2*
rm -rf Jinja2*
rm -rf meld3*
rm -rf pip*
rm -rf setuptools*
rm -rf sh*
rm -rf werkzeug*
rm -rf Werkzeug*
rm -rf wsgiref*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment