How to cleanly uninstall ansible
Solution 1
Your best bet is to install checkinstall, run the install again under checkinstalls control, and then use dpkg to remove things.
https://wiki.debian.org/CheckInstall
Solution 2
There is a directory list in the source code repo telling you which directories ( and files ) are created. This is used to build the .deb package, but you can easily use it the other way around:
Solution 3
if you have installed on redhat centos based systems you can do below to uninstall ansible cleanly and similar command for ubuntu debian based systems
rpm -qa | grep ansible | xargs rpm -e
rpm -qa | grep -i epel | xargs rpm -e
else yum remove ansible
orion
Opensource Enthusiast. Environment: Emacs on Linux. Stack: Ruby On Rails, AngularJS, Angular. Testing: Xvfb, Capybara, Rspec, JasmineJS, KarmaJS. Deployment: Linux, Ansible, Capistrano, AmazonWebServices
Updated on September 01, 2020Comments
-
orion over 3 years
Running debian jessie
I installed Ansible using the following procedure:
apt-get update sudo apt-get install python-yaml python-pip python-jinja2 python-paramiko pip git clone https://github.com/ansible/ansible.git cd ansible git submodule update --init --recursive sudo make install
Is there a way to cleanly uninstall Ansible that does not involve sifting through my directory tree and deleting?
The aim is to reinstall Ansible version 1.9 instead of the latest 2.1.0
-
Chizl over 3 yearsdoesn't work anymore. rpm: no packages given for erase