2016-04-15 93 views
1

运行Debian杰西如何干净地卸载ansible

我使用以下步骤安装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 

有没有干净地卸载Ansible不涉及通过我的目录树和删除筛选?

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

回答

1

没有在源代码回购目录列表,告诉你哪个目录(和文件)创建的。这是用于构建.deb软件包,但你可以很容易地使用它周围的其他方法:

packaging/debian/ansible.dirs

1

如果您已经安装在RedHat的CentOS的系统 你可以做下面ansible干净和类似卸载命令为基于Ubuntu Debian的系统

rpm -qa | grep ansible | xargs rpm -e

rpm -qa | grep -i epel | xargs的转-e

其他百胜删除ansible

0

我已经建立ansible 2.1.1从源代码,然后想用yum降级到2.1.0。我学到的技巧是去/lib/python2.7/site-packages并删除ansible-2.1.1.0-py2.7.egg-info目录。在我的情况下,使用yum正确地将文件添加到/ etc/ansible和/ usr/bin,但只要旧的(新版本号)鸡蛋在那里,然后ansible --version继续显示较新的版本号。