如何干净地卸载ansible

ori*_*ion 5 python linux pip uninstallation ansible

运行 Debian 杰西

我使用以下过程安装了 Ansible:

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 
Run Code Online (Sandbox Code Playgroud)

有没有一种方法可以干净地卸载 Ansible,而不涉及筛选我的目录树并删除?

目的是重新安装 Ansible 版本 1.9 而不是最新的 2.1.0

tin*_*ink 2

最好的选择是安装checkinstall,在 checkinstalls 控制下再次运行安装,然后使用 dpkg 删除内容。

https://wiki.debian.org/CheckInstall